Package io.undertow.protocols.ssl
Class SslConduit
java.lang.Object
io.undertow.protocols.ssl.SslConduit
- All Implemented Interfaces:
org.xnio.conduits.Conduit,org.xnio.conduits.SinkConduit,org.xnio.conduits.SourceConduit,org.xnio.conduits.StreamSinkConduit,org.xnio.conduits.StreamSourceConduit
public class SslConduit
extends Object
implements org.xnio.conduits.StreamSourceConduit, org.xnio.conduits.StreamSinkConduit
Conduit for SSL connections.
- Author:
- Stuart Douglas, Flavia Rainone
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidawaitReadable(long time, TimeUnit timeUnit) voidvoidawaitWritable(long time, TimeUnit timeUnit) voidclose()forcibly closes the connectionbooleanflush()org.xnio.XnioIoThreadorg.xnio.XnioWorkerorg.xnio.XnioIoThreadbooleanbooleanbooleanbooleanintread(ByteBuffer dst) longread(ByteBuffer[] dsts, int offs, int len) voidvoidvoidsetReadReadyHandler(org.xnio.conduits.ReadReadyHandler handler) voidsetSslEngine(SSLEngine engine) voidsetWriteReadyHandler(org.xnio.conduits.WriteReadyHandler handler) voidvoidvoidvoidvoidtoString()longtransferFrom(FileChannel src, long position, long count) longtransferFrom(org.xnio.channels.StreamSourceChannel source, long count, ByteBuffer throughBuffer) longtransferTo(long position, long count, FileChannel target) longtransferTo(long count, ByteBuffer throughBuffer, org.xnio.channels.StreamSinkChannel target) voidvoidvoidintwrite(ByteBuffer src) longwrite(ByteBuffer[] srcs, int offs, int len) intwriteFinal(ByteBuffer src) longwriteFinal(ByteBuffer[] srcs, int offset, int length)
-
Field Details
-
MAX_READ_LISTENER_INVOCATIONS
public static final int MAX_READ_LISTENER_INVOCATIONS -
EMPTY_BUFFER
-
-
Method Details
-
terminateReads
- Specified by:
terminateReadsin interfaceorg.xnio.conduits.SourceConduit- Throws:
IOException
-
isReadShutdown
public boolean isReadShutdown()- Specified by:
isReadShutdownin interfaceorg.xnio.conduits.SourceConduit
-
resumeReads
public void resumeReads()- Specified by:
resumeReadsin interfaceorg.xnio.conduits.SourceConduit
-
suspendReads
public void suspendReads()- Specified by:
suspendReadsin interfaceorg.xnio.conduits.SourceConduit
-
wakeupReads
public void wakeupReads()- Specified by:
wakeupReadsin interfaceorg.xnio.conduits.SourceConduit
-
isReadResumed
public boolean isReadResumed()- Specified by:
isReadResumedin interfaceorg.xnio.conduits.SourceConduit
-
awaitReadable
- Specified by:
awaitReadablein interfaceorg.xnio.conduits.SourceConduit- Throws:
IOException
-
awaitReadable
- Specified by:
awaitReadablein interfaceorg.xnio.conduits.SourceConduit- Throws:
IOException
-
getReadThread
public org.xnio.XnioIoThread getReadThread()- Specified by:
getReadThreadin interfaceorg.xnio.conduits.SourceConduit
-
setReadReadyHandler
public void setReadReadyHandler(org.xnio.conduits.ReadReadyHandler handler) - Specified by:
setReadReadyHandlerin interfaceorg.xnio.conduits.SourceConduit
-
transferFrom
- Specified by:
transferFromin interfaceorg.xnio.conduits.StreamSinkConduit- Throws:
IOException
-
transferFrom
public long transferFrom(org.xnio.channels.StreamSourceChannel source, long count, ByteBuffer throughBuffer) throws IOException - Specified by:
transferFromin interfaceorg.xnio.conduits.StreamSinkConduit- Throws:
IOException
-
write
- Specified by:
writein interfaceorg.xnio.conduits.StreamSinkConduit- Throws:
IOException
-
write
- Specified by:
writein interfaceorg.xnio.conduits.StreamSinkConduit- Throws:
IOException
-
writeFinal
- Specified by:
writeFinalin interfaceorg.xnio.conduits.StreamSinkConduit- Throws:
IOException
-
writeFinal
- Specified by:
writeFinalin interfaceorg.xnio.conduits.StreamSinkConduit- Throws:
IOException
-
terminateWrites
- Specified by:
terminateWritesin interfaceorg.xnio.conduits.SinkConduit- Throws:
IOException
-
isWriteShutdown
public boolean isWriteShutdown()- Specified by:
isWriteShutdownin interfaceorg.xnio.conduits.SinkConduit
-
resumeWrites
public void resumeWrites()- Specified by:
resumeWritesin interfaceorg.xnio.conduits.SinkConduit
-
suspendWrites
public void suspendWrites()- Specified by:
suspendWritesin interfaceorg.xnio.conduits.SinkConduit
-
wakeupWrites
public void wakeupWrites()- Specified by:
wakeupWritesin interfaceorg.xnio.conduits.SinkConduit
-
isWriteResumed
public boolean isWriteResumed()- Specified by:
isWriteResumedin interfaceorg.xnio.conduits.SinkConduit
-
awaitWritable
- Specified by:
awaitWritablein interfaceorg.xnio.conduits.SinkConduit- Throws:
IOException
-
awaitWritable
- Specified by:
awaitWritablein interfaceorg.xnio.conduits.SinkConduit- Throws:
IOException
-
getWriteThread
public org.xnio.XnioIoThread getWriteThread()- Specified by:
getWriteThreadin interfaceorg.xnio.conduits.SinkConduit
-
setWriteReadyHandler
public void setWriteReadyHandler(org.xnio.conduits.WriteReadyHandler handler) - Specified by:
setWriteReadyHandlerin interfaceorg.xnio.conduits.SinkConduit
-
truncateWrites
- Specified by:
truncateWritesin interfaceorg.xnio.conduits.SinkConduit- Throws:
IOException
-
flush
- Specified by:
flushin interfaceorg.xnio.conduits.SinkConduit- Throws:
IOException
-
transferTo
- Specified by:
transferToin interfaceorg.xnio.conduits.StreamSourceConduit- Throws:
IOException
-
transferTo
public long transferTo(long count, ByteBuffer throughBuffer, org.xnio.channels.StreamSinkChannel target) throws IOException - Specified by:
transferToin interfaceorg.xnio.conduits.StreamSourceConduit- Throws:
IOException
-
read
- Specified by:
readin interfaceorg.xnio.conduits.StreamSourceConduit- Throws:
IOException
-
read
- Specified by:
readin interfaceorg.xnio.conduits.StreamSourceConduit- Throws:
IOException
-
getWorker
public org.xnio.XnioWorker getWorker()- Specified by:
getWorkerin interfaceorg.xnio.conduits.Conduit
-
startHandshake
- Throws:
SSLException
-
getSslSession
-
getSSLEngine
-
close
public void close()forcibly closes the connection -
setSslEngine
-
toString
-