|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jetty.io.nio.ChannelEndPoint org.eclipse.jetty.io.nio.SelectChannelEndPoint org.eclipse.jetty.io.nio.SslSelectChannelEndPoint
public class SslSelectChannelEndPoint
SslSelectChannelEndPoint
A SelectChannelEndPoint that uses an SSLEngine
to handle an
SSL connection.
There is a named logger "org.eclipse.jetty.http.ssl"
Field Summary |
---|
Fields inherited from class org.eclipse.jetty.io.nio.ChannelEndPoint |
---|
_channel, _gather2, _local, _maxIdleTime, _remote, _socket |
Constructor Summary | |
---|---|
SslSelectChannelEndPoint(Buffers buffers,
SocketChannel channel,
SelectorManager.SelectSet selectSet,
SelectionKey key,
SSLEngine engine)
|
|
SslSelectChannelEndPoint(Buffers buffers,
SocketChannel channel,
SelectorManager.SelectSet selectSet,
SelectionKey key,
SSLEngine engine,
int maxIdleTime)
|
Method Summary | |
---|---|
void |
close()
Close any backing stream associated with the endpoint |
void |
dump()
|
int |
fill(Buffer buffer)
Fill the buffer with unencrypted bytes. |
void |
flush()
Flush any buffered output. |
int |
flush(Buffer buffer)
Flush the buffer from the current getIndex to it's putIndex using whatever byte sink is backing the buffer. |
int |
flush(Buffer header,
Buffer buffer,
Buffer trailer)
Flush the buffer from the current getIndex to it's putIndex using whatever byte sink is backing the buffer. |
SSLEngine |
getSSLEngine()
|
boolean |
isAllowRenegotiate()
|
boolean |
isBufferingInput()
|
boolean |
isBufferingOutput()
|
boolean |
isBufferred()
|
boolean |
isInputShutdown()
|
boolean |
isOutputShutdown()
|
void |
scheduleWrite()
Schedule a write dispatch. |
void |
setAllowRenegotiate(boolean allowRenegotiate)
Set if SSL re-negotiation is allowed. |
void |
shutdownInput()
Shutdown any backing input stream associated with the endpoint |
void |
shutdownOutput()
Shutdown any backing output stream associated with the endpoint |
String |
toString()
|
Methods inherited from class org.eclipse.jetty.io.nio.SelectChannelEndPoint |
---|
blockReadable, blockWritable, cancelIdle, checkIdleTimestamp, dispatch, getConnection, getSelectionKey, getSelectManager, getSelectSet, handle, idleExpired, isReadyForDispatch, schedule, scheduleIdle, setConnection, setMaxIdleTime, undispatch |
Methods inherited from class org.eclipse.jetty.io.nio.ChannelEndPoint |
---|
gatheringFlush, getChannel, getLocalAddr, getLocalHost, getLocalPort, getMaxIdleTime, getRemoteAddr, getRemoteHost, getRemotePort, getTransport, isBlocking, isOpen |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.jetty.io.EndPoint |
---|
getLocalAddr, getLocalHost, getLocalPort, getMaxIdleTime, getRemoteAddr, getRemoteHost, getRemotePort, getTransport, isBlocking, isOpen |
Constructor Detail |
---|
public SslSelectChannelEndPoint(Buffers buffers, SocketChannel channel, SelectorManager.SelectSet selectSet, SelectionKey key, SSLEngine engine, int maxIdleTime) throws IOException
IOException
public SslSelectChannelEndPoint(Buffers buffers, SocketChannel channel, SelectorManager.SelectSet selectSet, SelectionKey key, SSLEngine engine) throws IOException
IOException
Method Detail |
---|
public boolean isAllowRenegotiate()
public void setAllowRenegotiate(boolean allowRenegotiate)
allowRenegotiate
- true if re-negotiation is allowed (default false)public void dump()
public boolean isOutputShutdown()
isOutputShutdown
in interface EndPoint
isOutputShutdown
in class ChannelEndPoint
public boolean isInputShutdown()
isInputShutdown
in interface EndPoint
isInputShutdown
in class ChannelEndPoint
public void shutdownInput() throws IOException
EndPoint
shutdownInput
in interface EndPoint
shutdownInput
in class ChannelEndPoint
IOException
public void shutdownOutput() throws IOException
EndPoint
shutdownOutput
in interface EndPoint
shutdownOutput
in class ChannelEndPoint
IOException
public void close() throws IOException
EndPoint
close
in interface EndPoint
close
in class SelectChannelEndPoint
IOException
public int fill(Buffer buffer) throws IOException
fill
in interface EndPoint
fill
in class ChannelEndPoint
int
value indicating the number of bytes
filled or -1 if EOF is reached.
IOException
public int flush(Buffer buffer) throws IOException
EndPoint
flush
in interface EndPoint
flush
in class SelectChannelEndPoint
buffer
- The buffer to flush. This buffers getIndex is updated.
IOException
public int flush(Buffer header, Buffer buffer, Buffer trailer) throws IOException
EndPoint
flush
in interface EndPoint
flush
in class SelectChannelEndPoint
header
- A buffer to write before flushing this buffer. This buffers getIndex is updated.buffer
- The buffer to flush. This buffers getIndex is updated.trailer
- A buffer to write after flushing this buffer. This buffers getIndex is updated.
IOException
public void flush() throws IOException
EndPoint
flush
in interface EndPoint
flush
in class ChannelEndPoint
IOException
public boolean isBufferingInput()
isBufferingInput
in interface EndPoint
isBufferingInput
in class ChannelEndPoint
public boolean isBufferingOutput()
isBufferingOutput
in interface EndPoint
isBufferingOutput
in class ChannelEndPoint
public boolean isBufferred()
isBufferred
in interface EndPoint
isBufferred
in class ChannelEndPoint
public SSLEngine getSSLEngine()
public void scheduleWrite()
AsyncEndPoint
scheduleWrite
in interface AsyncEndPoint
scheduleWrite
in class SelectChannelEndPoint
public String toString()
toString
in class SelectChannelEndPoint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |