Class ContextNetSocket

java.lang.Object
net.bluemind.lib.vertx.ContextNetSocket
All Implemented Interfaces:
io.vertx.core.net.NetSocket, io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>, io.vertx.core.streams.StreamBase, io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>

public class ContextNetSocket extends Object implements io.vertx.core.net.NetSocket
  • Constructor Details

    • ContextNetSocket

      public ContextNetSocket(io.vertx.core.Context context, io.vertx.core.net.NetSocket ns)
  • Method Details

    • write

      public io.vertx.core.Future<Void> write(io.vertx.core.buffer.Buffer data)
      Specified by:
      write in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
    • writeQueueFull

      public boolean writeQueueFull()
      Specified by:
      writeQueueFull in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
    • exceptionHandler

      public io.vertx.core.net.NetSocket exceptionHandler(io.vertx.core.Handler<Throwable> handler)
      Specified by:
      exceptionHandler in interface io.vertx.core.net.NetSocket
      Specified by:
      exceptionHandler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
      Specified by:
      exceptionHandler in interface io.vertx.core.streams.StreamBase
      Specified by:
      exceptionHandler in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
    • handler

      public io.vertx.core.net.NetSocket handler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler)
      Specified by:
      handler in interface io.vertx.core.net.NetSocket
      Specified by:
      handler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
    • pause

      public io.vertx.core.net.NetSocket pause()
      Specified by:
      pause in interface io.vertx.core.net.NetSocket
      Specified by:
      pause in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
    • resume

      public io.vertx.core.net.NetSocket resume()
      Specified by:
      resume in interface io.vertx.core.net.NetSocket
      Specified by:
      resume in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
    • fetch

      public io.vertx.core.net.NetSocket fetch(long amount)
      Specified by:
      fetch in interface io.vertx.core.net.NetSocket
      Specified by:
      fetch in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
    • endHandler

      public io.vertx.core.net.NetSocket endHandler(io.vertx.core.Handler<Void> endHandler)
      Specified by:
      endHandler in interface io.vertx.core.net.NetSocket
      Specified by:
      endHandler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
    • setWriteQueueMaxSize

      public io.vertx.core.net.NetSocket setWriteQueueMaxSize(int maxSize)
      Specified by:
      setWriteQueueMaxSize in interface io.vertx.core.net.NetSocket
      Specified by:
      setWriteQueueMaxSize in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
    • drainHandler

      public io.vertx.core.net.NetSocket drainHandler(io.vertx.core.Handler<Void> handler)
      Specified by:
      drainHandler in interface io.vertx.core.net.NetSocket
      Specified by:
      drainHandler in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
    • writeHandlerID

      public String writeHandlerID()
      Specified by:
      writeHandlerID in interface io.vertx.core.net.NetSocket
    • write

      public void write(String str, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
      Specified by:
      write in interface io.vertx.core.net.NetSocket
    • write

      public io.vertx.core.Future<Void> write(String str)
      Specified by:
      write in interface io.vertx.core.net.NetSocket
    • write

      public void write(String str, String enc, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
      Specified by:
      write in interface io.vertx.core.net.NetSocket
    • write

      public io.vertx.core.Future<Void> write(String str, String enc)
      Specified by:
      write in interface io.vertx.core.net.NetSocket
    • write

      public void write(io.vertx.core.buffer.Buffer message, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
      Specified by:
      write in interface io.vertx.core.net.NetSocket
      Specified by:
      write in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
    • sendFile

      public io.vertx.core.Future<Void> sendFile(String filename, long offset, long length)
      Specified by:
      sendFile in interface io.vertx.core.net.NetSocket
    • sendFile

      public io.vertx.core.net.NetSocket sendFile(String filename, long offset, long length, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
      Specified by:
      sendFile in interface io.vertx.core.net.NetSocket
    • remoteAddress

      public io.vertx.core.net.SocketAddress remoteAddress()
      Specified by:
      remoteAddress in interface io.vertx.core.net.NetSocket
    • remoteAddress

      public io.vertx.core.net.SocketAddress remoteAddress(boolean real)
      Specified by:
      remoteAddress in interface io.vertx.core.net.NetSocket
    • localAddress

      public io.vertx.core.net.SocketAddress localAddress()
      Specified by:
      localAddress in interface io.vertx.core.net.NetSocket
    • localAddress

      public io.vertx.core.net.SocketAddress localAddress(boolean real)
      Specified by:
      localAddress in interface io.vertx.core.net.NetSocket
    • end

      public io.vertx.core.Future<Void> end()
      Specified by:
      end in interface io.vertx.core.net.NetSocket
      Specified by:
      end in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
    • end

      public void end(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
      Specified by:
      end in interface io.vertx.core.net.NetSocket
      Specified by:
      end in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
    • close

      public io.vertx.core.Future<Void> close()
      Specified by:
      close in interface io.vertx.core.net.NetSocket
    • close

      public void close(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
      Specified by:
      close in interface io.vertx.core.net.NetSocket
    • closeHandler

      public io.vertx.core.net.NetSocket closeHandler(io.vertx.core.Handler<Void> handler)
      Specified by:
      closeHandler in interface io.vertx.core.net.NetSocket
    • upgradeToSsl

      public io.vertx.core.net.NetSocket upgradeToSsl(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
      Specified by:
      upgradeToSsl in interface io.vertx.core.net.NetSocket
    • upgradeToSsl

      public io.vertx.core.Future<Void> upgradeToSsl()
      Specified by:
      upgradeToSsl in interface io.vertx.core.net.NetSocket
    • upgradeToSsl

      public io.vertx.core.net.NetSocket upgradeToSsl(String serverName, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
      Specified by:
      upgradeToSsl in interface io.vertx.core.net.NetSocket
    • upgradeToSsl

      public io.vertx.core.Future<Void> upgradeToSsl(String serverName)
      Specified by:
      upgradeToSsl in interface io.vertx.core.net.NetSocket
    • isSsl

      public boolean isSsl()
      Specified by:
      isSsl in interface io.vertx.core.net.NetSocket
    • sslSession

      public SSLSession sslSession()
      Specified by:
      sslSession in interface io.vertx.core.net.NetSocket
    • peerCertificateChain

      public X509Certificate[] peerCertificateChain() throws SSLPeerUnverifiedException
      Specified by:
      peerCertificateChain in interface io.vertx.core.net.NetSocket
      Throws:
      SSLPeerUnverifiedException
    • peerCertificates

      public List<Certificate> peerCertificates() throws SSLPeerUnverifiedException
      Specified by:
      peerCertificates in interface io.vertx.core.net.NetSocket
      Throws:
      SSLPeerUnverifiedException
    • indicatedServerName

      public String indicatedServerName()
      Specified by:
      indicatedServerName in interface io.vertx.core.net.NetSocket
    • applicationLayerProtocol

      public String applicationLayerProtocol()
      Specified by:
      applicationLayerProtocol in interface io.vertx.core.net.NetSocket