public class FakeNetSocket
extends java.lang.Object
implements io.vertx.core.net.NetSocket
| Constructor and Description |
|---|
FakeNetSocket(io.vertx.core.Vertx vx,
io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer> writeHandler) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
applicationLayerProtocol() |
io.vertx.core.Future<java.lang.Void> |
close() |
void |
close(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler) |
io.vertx.core.net.NetSocket |
closeHandler(io.vertx.core.Handler<java.lang.Void> handler) |
io.vertx.core.net.NetSocket |
drainHandler(io.vertx.core.Handler<java.lang.Void> handler) |
io.vertx.core.Future<java.lang.Void> |
end() |
void |
end(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler) |
io.vertx.core.net.NetSocket |
endHandler(io.vertx.core.Handler<java.lang.Void> endHandler) |
io.vertx.core.net.NetSocket |
exceptionHandler(io.vertx.core.Handler<java.lang.Throwable> handler) |
io.vertx.core.net.NetSocket |
fetch(long amount) |
io.vertx.core.net.NetSocket |
handler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler) |
java.lang.String |
indicatedServerName() |
boolean |
isSsl() |
io.vertx.core.net.SocketAddress |
localAddress() |
io.vertx.core.net.NetSocket |
pause() |
javax.security.cert.X509Certificate[] |
peerCertificateChain() |
java.util.List<java.security.cert.Certificate> |
peerCertificates() |
io.vertx.core.net.SocketAddress |
remoteAddress() |
io.vertx.core.net.NetSocket |
resume() |
io.vertx.core.Future<java.lang.Void> |
sendFile(java.lang.String filename) |
io.vertx.core.net.NetSocket |
sendFile(java.lang.String filename,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> resultHandler) |
io.vertx.core.Future<java.lang.Void> |
sendFile(java.lang.String filename,
long offset,
long length) |
io.vertx.core.net.NetSocket |
sendFile(java.lang.String filename,
long offset,
long length,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> resultHandler) |
io.vertx.core.net.NetSocket |
setWriteQueueMaxSize(int maxSize) |
javax.net.ssl.SSLSession |
sslSession() |
io.vertx.core.Future<java.lang.Void> |
upgradeToSsl() |
io.vertx.core.net.NetSocket |
upgradeToSsl(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler) |
io.vertx.core.Future<java.lang.Void> |
upgradeToSsl(java.lang.String serverName) |
io.vertx.core.net.NetSocket |
upgradeToSsl(java.lang.String serverName,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler) |
io.vertx.core.Future<java.lang.Void> |
write(io.vertx.core.buffer.Buffer data) |
void |
write(io.vertx.core.buffer.Buffer message,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler) |
io.vertx.core.Future<java.lang.Void> |
write(java.lang.String str) |
void |
write(java.lang.String str,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler) |
io.vertx.core.Future<java.lang.Void> |
write(java.lang.String str,
java.lang.String enc) |
void |
write(java.lang.String str,
java.lang.String enc,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler) |
java.lang.String |
writeHandlerID() |
boolean |
writeQueueFull() |
public FakeNetSocket(io.vertx.core.Vertx vx,
io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer> writeHandler)
public io.vertx.core.net.NetSocket endHandler(io.vertx.core.Handler<java.lang.Void> endHandler)
endHandler in interface io.vertx.core.net.NetSocketendHandler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>public io.vertx.core.net.NetSocket handler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler)
handler in interface io.vertx.core.net.NetSockethandler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>public io.vertx.core.net.NetSocket pause()
pause in interface io.vertx.core.net.NetSocketpause in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>public io.vertx.core.net.NetSocket resume()
resume in interface io.vertx.core.net.NetSocketresume in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>public io.vertx.core.net.NetSocket exceptionHandler(io.vertx.core.Handler<java.lang.Throwable> handler)
exceptionHandler in interface io.vertx.core.net.NetSocketexceptionHandler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>exceptionHandler in interface io.vertx.core.streams.StreamBaseexceptionHandler in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>public io.vertx.core.net.NetSocket setWriteQueueMaxSize(int maxSize)
setWriteQueueMaxSize in interface io.vertx.core.net.NetSocketsetWriteQueueMaxSize in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>public boolean writeQueueFull()
writeQueueFull in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>public io.vertx.core.net.NetSocket drainHandler(io.vertx.core.Handler<java.lang.Void> handler)
drainHandler in interface io.vertx.core.net.NetSocketdrainHandler in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>public java.lang.String writeHandlerID()
writeHandlerID in interface io.vertx.core.net.NetSocketpublic io.vertx.core.Future<java.lang.Void> write(io.vertx.core.buffer.Buffer data)
write in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>public io.vertx.core.Future<java.lang.Void> write(java.lang.String str)
write in interface io.vertx.core.net.NetSocketpublic io.vertx.core.Future<java.lang.Void> write(java.lang.String str,
java.lang.String enc)
write in interface io.vertx.core.net.NetSocketpublic io.vertx.core.Future<java.lang.Void> sendFile(java.lang.String filename)
sendFile in interface io.vertx.core.net.NetSocketpublic io.vertx.core.net.NetSocket sendFile(java.lang.String filename,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> resultHandler)
sendFile in interface io.vertx.core.net.NetSocketpublic io.vertx.core.net.SocketAddress remoteAddress()
remoteAddress in interface io.vertx.core.net.NetSocketpublic io.vertx.core.net.SocketAddress localAddress()
localAddress in interface io.vertx.core.net.NetSocketpublic io.vertx.core.Future<java.lang.Void> close()
close in interface io.vertx.core.net.NetSocketpublic io.vertx.core.net.NetSocket closeHandler(io.vertx.core.Handler<java.lang.Void> handler)
closeHandler in interface io.vertx.core.net.NetSocketpublic boolean isSsl()
isSsl in interface io.vertx.core.net.NetSocketpublic io.vertx.core.net.NetSocket fetch(long amount)
fetch in interface io.vertx.core.net.NetSocketfetch in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>public void write(java.lang.String str,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)
write in interface io.vertx.core.net.NetSocketpublic void write(java.lang.String str,
java.lang.String enc,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)
write in interface io.vertx.core.net.NetSocketpublic void write(io.vertx.core.buffer.Buffer message,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)
write in interface io.vertx.core.net.NetSocketwrite in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>public io.vertx.core.Future<java.lang.Void> sendFile(java.lang.String filename,
long offset,
long length)
sendFile in interface io.vertx.core.net.NetSocketpublic io.vertx.core.net.NetSocket sendFile(java.lang.String filename,
long offset,
long length,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> resultHandler)
sendFile in interface io.vertx.core.net.NetSocketpublic io.vertx.core.Future<java.lang.Void> end()
end in interface io.vertx.core.net.NetSocketend in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>public void end(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)
end in interface io.vertx.core.net.NetSocketend in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>public void close(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)
close in interface io.vertx.core.net.NetSocketpublic javax.net.ssl.SSLSession sslSession()
sslSession in interface io.vertx.core.net.NetSocketpublic javax.security.cert.X509Certificate[] peerCertificateChain()
throws javax.net.ssl.SSLPeerUnverifiedException
peerCertificateChain in interface io.vertx.core.net.NetSocketjavax.net.ssl.SSLPeerUnverifiedExceptionpublic java.lang.String indicatedServerName()
indicatedServerName in interface io.vertx.core.net.NetSocketpublic io.vertx.core.net.NetSocket upgradeToSsl(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)
upgradeToSsl in interface io.vertx.core.net.NetSocketpublic io.vertx.core.Future<java.lang.Void> upgradeToSsl()
upgradeToSsl in interface io.vertx.core.net.NetSocketpublic io.vertx.core.net.NetSocket upgradeToSsl(java.lang.String serverName,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)
upgradeToSsl in interface io.vertx.core.net.NetSocketpublic io.vertx.core.Future<java.lang.Void> upgradeToSsl(java.lang.String serverName)
upgradeToSsl in interface io.vertx.core.net.NetSocketpublic java.util.List<java.security.cert.Certificate> peerCertificates()
throws javax.net.ssl.SSLPeerUnverifiedException
peerCertificates in interface io.vertx.core.net.NetSocketjavax.net.ssl.SSLPeerUnverifiedExceptionpublic java.lang.String applicationLayerProtocol()
applicationLayerProtocol in interface io.vertx.core.net.NetSocketCopyright © 2022. All Rights Reserved.