org.xnio.conduits.Conduit, org.xnio.conduits.SinkConduit, org.xnio.conduits.SourceConduit, org.xnio.conduits.StreamSinkConduit, org.xnio.conduits.StreamSourceConduitpublic class SslConduit
extends java.lang.Object
implements org.xnio.conduits.StreamSourceConduit, org.xnio.conduits.StreamSinkConduit
| Modifier and Type | Field | Description |
|---|---|---|
static java.nio.ByteBuffer |
EMPTY_BUFFER |
|
static int |
MAX_READ_LISTENER_INVOCATIONS |
| Modifier and Type | Method | Description |
|---|---|---|
void |
awaitReadable() |
|
void |
awaitReadable(long time,
java.util.concurrent.TimeUnit timeUnit) |
|
void |
awaitWritable() |
|
void |
awaitWritable(long time,
java.util.concurrent.TimeUnit timeUnit) |
|
void |
close() |
forcibly closes the connection
|
boolean |
flush() |
|
org.xnio.XnioIoThread |
getReadThread() |
|
javax.net.ssl.SSLEngine |
getSSLEngine() |
|
javax.net.ssl.SSLSession |
getSslSession() |
|
org.xnio.XnioWorker |
getWorker() |
|
org.xnio.XnioIoThread |
getWriteThread() |
|
boolean |
isReadResumed() |
|
boolean |
isReadShutdown() |
|
boolean |
isWriteResumed() |
|
boolean |
isWriteShutdown() |
|
int |
read(java.nio.ByteBuffer dst) |
|
long |
read(java.nio.ByteBuffer[] dsts,
int offs,
int len) |
|
void |
resumeReads() |
|
void |
resumeWrites() |
|
void |
setReadReadyHandler(org.xnio.conduits.ReadReadyHandler handler) |
|
void |
setSslEngine(javax.net.ssl.SSLEngine engine) |
|
void |
setWriteReadyHandler(org.xnio.conduits.WriteReadyHandler handler) |
|
void |
startHandshake() |
|
void |
suspendReads() |
|
void |
suspendWrites() |
|
void |
terminateReads() |
|
void |
terminateWrites() |
|
java.lang.String |
toString() |
|
long |
transferFrom(java.nio.channels.FileChannel src,
long position,
long count) |
|
long |
transferFrom(org.xnio.channels.StreamSourceChannel source,
long count,
java.nio.ByteBuffer throughBuffer) |
|
long |
transferTo(long position,
long count,
java.nio.channels.FileChannel target) |
|
long |
transferTo(long count,
java.nio.ByteBuffer throughBuffer,
org.xnio.channels.StreamSinkChannel target) |
|
void |
truncateWrites() |
|
void |
wakeupReads() |
|
void |
wakeupWrites() |
|
int |
write(java.nio.ByteBuffer src) |
|
long |
write(java.nio.ByteBuffer[] srcs,
int offs,
int len) |
|
int |
writeFinal(java.nio.ByteBuffer src) |
|
long |
writeFinal(java.nio.ByteBuffer[] srcs,
int offset,
int length) |
public static final int MAX_READ_LISTENER_INVOCATIONS
public static final java.nio.ByteBuffer EMPTY_BUFFER
public void terminateReads()
throws java.io.IOException
terminateReads in interface org.xnio.conduits.SourceConduitjava.io.IOExceptionpublic boolean isReadShutdown()
isReadShutdown in interface org.xnio.conduits.SourceConduitpublic void resumeReads()
resumeReads in interface org.xnio.conduits.SourceConduitpublic void suspendReads()
suspendReads in interface org.xnio.conduits.SourceConduitpublic void wakeupReads()
wakeupReads in interface org.xnio.conduits.SourceConduitpublic boolean isReadResumed()
isReadResumed in interface org.xnio.conduits.SourceConduitpublic void awaitReadable()
throws java.io.IOException
awaitReadable in interface org.xnio.conduits.SourceConduitjava.io.IOExceptionpublic void awaitReadable(long time,
java.util.concurrent.TimeUnit timeUnit)
throws java.io.IOException
awaitReadable in interface org.xnio.conduits.SourceConduitjava.io.IOExceptionpublic org.xnio.XnioIoThread getReadThread()
getReadThread in interface org.xnio.conduits.SourceConduitpublic void setReadReadyHandler(org.xnio.conduits.ReadReadyHandler handler)
setReadReadyHandler in interface org.xnio.conduits.SourceConduitpublic long transferFrom(java.nio.channels.FileChannel src,
long position,
long count)
throws java.io.IOException
transferFrom in interface org.xnio.conduits.StreamSinkConduitjava.io.IOExceptionpublic long transferFrom(org.xnio.channels.StreamSourceChannel source,
long count,
java.nio.ByteBuffer throughBuffer)
throws java.io.IOException
transferFrom in interface org.xnio.conduits.StreamSinkConduitjava.io.IOExceptionpublic int write(java.nio.ByteBuffer src)
throws java.io.IOException
write in interface org.xnio.conduits.StreamSinkConduitjava.io.IOExceptionpublic long write(java.nio.ByteBuffer[] srcs,
int offs,
int len)
throws java.io.IOException
write in interface org.xnio.conduits.StreamSinkConduitjava.io.IOExceptionpublic int writeFinal(java.nio.ByteBuffer src)
throws java.io.IOException
writeFinal in interface org.xnio.conduits.StreamSinkConduitjava.io.IOExceptionpublic long writeFinal(java.nio.ByteBuffer[] srcs,
int offset,
int length)
throws java.io.IOException
writeFinal in interface org.xnio.conduits.StreamSinkConduitjava.io.IOExceptionpublic void terminateWrites()
throws java.io.IOException
terminateWrites in interface org.xnio.conduits.SinkConduitjava.io.IOExceptionpublic boolean isWriteShutdown()
isWriteShutdown in interface org.xnio.conduits.SinkConduitpublic void resumeWrites()
resumeWrites in interface org.xnio.conduits.SinkConduitpublic void suspendWrites()
suspendWrites in interface org.xnio.conduits.SinkConduitpublic void wakeupWrites()
wakeupWrites in interface org.xnio.conduits.SinkConduitpublic boolean isWriteResumed()
isWriteResumed in interface org.xnio.conduits.SinkConduitpublic void awaitWritable()
throws java.io.IOException
awaitWritable in interface org.xnio.conduits.SinkConduitjava.io.IOExceptionpublic void awaitWritable(long time,
java.util.concurrent.TimeUnit timeUnit)
throws java.io.IOException
awaitWritable in interface org.xnio.conduits.SinkConduitjava.io.IOExceptionpublic org.xnio.XnioIoThread getWriteThread()
getWriteThread in interface org.xnio.conduits.SinkConduitpublic void setWriteReadyHandler(org.xnio.conduits.WriteReadyHandler handler)
setWriteReadyHandler in interface org.xnio.conduits.SinkConduitpublic void truncateWrites()
throws java.io.IOException
truncateWrites in interface org.xnio.conduits.SinkConduitjava.io.IOExceptionpublic boolean flush()
throws java.io.IOException
flush in interface org.xnio.conduits.SinkConduitjava.io.IOExceptionpublic long transferTo(long position,
long count,
java.nio.channels.FileChannel target)
throws java.io.IOException
transferTo in interface org.xnio.conduits.StreamSourceConduitjava.io.IOExceptionpublic long transferTo(long count,
java.nio.ByteBuffer throughBuffer,
org.xnio.channels.StreamSinkChannel target)
throws java.io.IOException
transferTo in interface org.xnio.conduits.StreamSourceConduitjava.io.IOExceptionpublic int read(java.nio.ByteBuffer dst)
throws java.io.IOException
read in interface org.xnio.conduits.StreamSourceConduitjava.io.IOExceptionpublic long read(java.nio.ByteBuffer[] dsts,
int offs,
int len)
throws java.io.IOException
read in interface org.xnio.conduits.StreamSourceConduitjava.io.IOExceptionpublic org.xnio.XnioWorker getWorker()
getWorker in interface org.xnio.conduits.Conduitpublic void startHandshake()
throws javax.net.ssl.SSLException
javax.net.ssl.SSLExceptionpublic javax.net.ssl.SSLSession getSslSession()
public javax.net.ssl.SSLEngine getSSLEngine()
public void close()
public void setSslEngine(javax.net.ssl.SSLEngine engine)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018. All rights reserved.