| Modifier and Type | Field and Description |
|---|---|
| private Handler | |
| private final ConnectionBase | |
| private final ContextInternal | |
| private Handler | |
| private Handler | |
| private Handler | |
| private final ReadStream | |
| private final WriteStream |
| Access | Constructor and Description |
|---|---|
| private | HttpNetSocket(ConnectionBase conn, ContextInternal context, ReadStream<Buffer> readStream, WriteStream<Buffer> writeStream)
|
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public Future | |
| public void | close(Handler<AsyncResult<Void>> handler)
Implements io. Close the NetSocket and notify the |
| public NetSocket | |
| pack-priv Handler | |
| public NetSocket | |
| public Future | end(Buffer
the data to write data)Overrides default io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Same as |
| public void | end(Buffer buffer, Handler<AsyncResult<Void>> handler)
Overrides default io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Same as |
| public Future | |
| public void | |
| public synchronized NetSocket | endHandler(Handler<Void> handler)
Implements io.
This handler might be called after the close handler when the socket is paused and there are still buffers to deliver. |
| pack-priv synchronized Handler | |
| public synchronized NetSocket | exceptionHandler(Handler<Throwable> handler)
Implements io.
|
| pack-priv synchronized Handler | |
| public NetSocket | fetch(long amount)
Implements io. Fetch the specified |
| private void | handleData(Buffer buf)
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private void | |
| private void | |
| public synchronized NetSocket | |
| pack-priv synchronized Handler | |
| public String | indicatedServerName()
Implements io. Returns the SNI server name presented during the SSL handshake by the client. |
| public boolean | |
| public SocketAddress | |
| public SocketAddress | localAddress(boolean real)
Implements io. Like |
| pack-priv static HttpNetSocket | netSocket(ConnectionBase conn, ContextInternal context, ReadStream<Buffer> readStream, WriteStream<Buffer> writeStream)
|
| public NetSocket | pause()
Implements io. Pause the |
| public X509Certificate[] | peerCertificateChain()
Implements io.
References Deprecated
X509Certificate is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public List | |
| public SocketAddress | |
| public SocketAddress | remoteAddress(boolean real)
Implements io. Like |
| public NetSocket | resume()
Implements io. Resume reading, and sets the buffer in |
| public Future | sendFile(String
file name of the file to send filename, long offset offset, long length length)Implements io. Tell the operating system to stream a file as specified by |
| public NetSocket | sendFile(String
file name of the file to send filename, long offset offset, long length length, Handler<AsyncResult<Void>> handler resultHandler)Implements io. Same as |
| public NetSocket | setWriteQueueMaxSize(int
the max size of the write stream maxSize)Implements io. Set the maximum size of the write queue to |
| public SSLSession | |
| public NetSocket | upgradeToSsl(Handler<AsyncResult<Void>>
the handler will be notified when it's upgraded handler)Implements io. Upgrade channel to use SSL/TLS. |
| public NetSocket | upgradeToSsl(String
the server name serverName, Handler<AsyncResult<Void>> the handler will be notified when it's upgraded handler)Implements io. Upgrade channel to use SSL/TLS. |
| public Future | upgradeToSsl()
Implements io. Like |
| public Future | upgradeToSsl(String serverName)
Implements io. Like |
| public Future | write(Buffer
the data to write data)Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Write some data to the stream. |
| public void | write(Buffer data, Handler<AsyncResult<Void>> handler)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Like |
| public Future | write(String
the string to write str, String the encoding to use enc)Implements io. Write a |
| public void | write(String str, String enc, Handler<AsyncResult<Void>> handler)
Implements io. Same as |
| public Future | write(String
the string to write str)Implements io. Write a |
| public void | write(String str, Handler<AsyncResult<Void>> handler)
Implements io. Same as |
| public String | writeHandlerID()
Implements io. When a |
| public boolean | writeQueueFull()
Implements io. This will return |
| closeHandler | back to summary |
|---|---|
| private Handler<Void> closeHandler | |
| conn | back to summary |
|---|---|
| private final ConnectionBase conn | |
| context | back to summary |
|---|---|
| private final ContextInternal context | |
| dataHandler | back to summary |
|---|---|
| private Handler<Buffer> dataHandler | |
| endHandler | back to summary |
|---|---|
| private Handler<Void> endHandler | |
| exceptionHandler | back to summary |
|---|---|
| private Handler<Throwable> exceptionHandler | |
| readStream | back to summary |
|---|---|
| private final ReadStream<Buffer> readStream | |
| writeStream | back to summary |
|---|---|
| private final WriteStream<Buffer> writeStream | |
| HttpNetSocket | back to summary |
|---|---|
| private HttpNetSocket(ConnectionBase conn, ContextInternal context, ReadStream<Buffer> readStream, WriteStream<Buffer> writeStream) | |
| applicationLayerProtocol | back to summary |
|---|---|
| public String applicationLayerProtocol() Implements io.
| |
| close | back to summary |
|---|---|
| public Future Implements io. Doc from io. Close the NetSocket | |
| close | back to summary |
|---|---|
| public void close(Handler<AsyncResult<Void>> handler) Implements io. Doc from io. Close the NetSocket and notify the
| |
| closeHandler | back to summary |
|---|---|
public NetSocket closeHandler(@Nullable Handler<Void> handler)
| |
| closeHandler | back to summary |
|---|---|
| pack-priv Handler | |
| drainHandler | back to summary |
|---|---|
| public NetSocket drainHandler(Handler<Void> handler) Implements io.
| |
| end | back to summary |
|---|---|
| public Future Overrides default io. Doc from io. References Deprecated
See corresponding docs for further information. Same as | |
| end | back to summary |
|---|---|
| public void end(Buffer buffer, Handler<AsyncResult<Void>> handler) Overrides default io. Doc from io. References Deprecated
See corresponding docs for further information. Same as
| |
| end | back to summary |
|---|---|
| public Future Implements io. Doc from io. Calls | |
| end | back to summary |
|---|---|
| public void end(Handler<AsyncResult<Void>> handler) Implements io. Doc from io. Calls
| |
| endHandler | back to summary |
|---|---|
| public synchronized NetSocket endHandler(Handler<Void> handler) Implements io. Doc from io.
This handler might be called after the close handler when the socket is paused and there are still buffers to deliver.
| |
| endHandler | back to summary |
|---|---|
| pack-priv synchronized Handler | |
| exceptionHandler | back to summary |
|---|---|
| public synchronized NetSocket exceptionHandler(Handler<Throwable> handler) Implements io.
| |
| exceptionHandler | back to summary |
|---|---|
| pack-priv synchronized Handler | |
| fetch | back to summary |
|---|---|
| public NetSocket fetch(long amount) Implements io. Doc from io. Fetch the specified | |
| handleData | back to summary |
|---|---|
| private void handleData(Buffer buf)
References Deprecated
See corresponding docs for further information. | |
| handleEnd | back to summary |
|---|---|
| private void handleEnd(Void v) | |
| handleException | back to summary |
|---|---|
| private void handleException(Throwable cause) | |
| handler | back to summary |
|---|---|
| public synchronized NetSocket handler(Handler<Buffer> handler) Implements io.
| |
| handler | back to summary |
|---|---|
| pack-priv synchronized Handler | |
| indicatedServerName | back to summary |
|---|---|
| public String indicatedServerName() Implements io. Doc from io. Returns the SNI server name presented during the SSL handshake by the client. | |
| isSsl | back to summary |
|---|---|
| public boolean isSsl() Implements io.
| |
| localAddress | back to summary |
|---|---|
| public SocketAddress localAddress() Implements io.
| |
| localAddress | back to summary |
|---|---|
| public SocketAddress localAddress(boolean real) Implements io. Doc from io. Like
| |
| netSocket | back to summary |
|---|---|
| pack-priv static HttpNetSocket netSocket(ConnectionBase conn, ContextInternal context, ReadStream<Buffer> readStream, WriteStream<Buffer> writeStream) | |
| pause | back to summary |
|---|---|
| public NetSocket pause() Implements io. Doc from io. Pause the
While it's paused, no data will be sent to the data | |
| peerCertificateChain | back to summary |
|---|---|
| public X509Certificate[] peerCertificateChain() throws SSLPeerUnverifiedException Implements io. References Deprecated
See corresponding docs for further information.
| |
| peerCertificates | back to summary |
|---|---|
| public List Implements io.
| |
| remoteAddress | back to summary |
|---|---|
| public SocketAddress remoteAddress() Implements io.
| |
| remoteAddress | back to summary |
|---|---|
| public SocketAddress remoteAddress(boolean real) Implements io. Doc from io. Like
| |
| resume | back to summary |
|---|---|
| public NetSocket resume() Implements io. Doc from io. Resume reading, and sets the buffer in
If the | |
| sendFile | back to summary |
|---|---|
| public Future Implements io. Doc from io. Tell the operating system to stream a file as specified by | |
| sendFile | back to summary |
|---|---|
| public NetSocket sendFile(String filename, long offset, long length, Handler<AsyncResult<Void>> resultHandler) Implements io. Doc from io. Same as | |
| setWriteQueueMaxSize | back to summary |
|---|---|
| public NetSocket setWriteQueueMaxSize(int maxSize) Implements io. Doc from io. Set the maximum size of the write queue to
The value is defined by the implementation of the stream, e.g in bytes for a
| |
| sslSession | back to summary |
|---|---|
| public SSLSession sslSession() Implements io.
| |
| upgradeToSsl | back to summary |
|---|---|
| public NetSocket upgradeToSsl(Handler<AsyncResult<Void>> handler) Implements io. Doc from io. Upgrade channel to use SSL/TLS. Be aware that for this to work SSL must be configured.
| |
| upgradeToSsl | back to summary |
|---|---|
| public NetSocket upgradeToSsl(String serverName, Handler<AsyncResult<Void>> handler) Implements io. Doc from io. Upgrade channel to use SSL/TLS. Be aware that for this to work SSL must be configured. | |
| upgradeToSsl | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| upgradeToSsl | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| write | back to summary |
|---|---|
| public Future Implements io. Doc from io. References Deprecated
See corresponding docs for further information. Write some data to the stream. The data is usually put on an internal write queue, and the write actually happens
asynchronously. To avoid running out of memory by putting too much on the write queue,
check the When the | |
| write | back to summary |
|---|---|
| public void write(Buffer data, Handler<AsyncResult<Void>> handler) Implements io. Doc from io. References Deprecated
See corresponding docs for further information. Like
| |
| write | back to summary |
|---|---|
| public Future Implements io. Doc from io. Write a | |
| write | back to summary |
|---|---|
| public void write(String str, String enc, Handler<AsyncResult<Void>> handler) Implements io. Doc from io. Same as
| |
| write | back to summary |
|---|---|
| public Future Implements io. Doc from io. Write a | |
| write | back to summary |
|---|---|
| public void write(String str, Handler<AsyncResult<Void>> handler) Implements io. Doc from io. Same as
| |
| writeHandlerID | back to summary |
|---|---|
| public String writeHandlerID() Implements io. Doc from io. When a
By default, no handler is registered, the feature must be enabled via Given this ID, a different event loop can send a buffer to that event handler using the event bus and that buffer will be received by this instance in its own event loop and written to the underlying connection. This allows you to write data to other connections which are owned by different event loops. | |
| writeQueueFull | back to summary |
|---|---|
| public boolean writeQueueFull() Implements io. Doc from io. This will return
| |