|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 | |
|---|---|
static Logger |
__log
|
| 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 |
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 |
shutdownOutput()
Shutdown any backing output stream associated with the endpoint |
protected void |
sslClose()
|
String |
toString()
|
| Methods inherited from class org.eclipse.jetty.io.nio.SelectChannelEndPoint |
|---|
blockReadable, blockWritable, cancelIdle, checkIdleTimestamp, dispatch, getConnection, getIdleTimestamp, 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, shutdownInput |
| 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, shutdownInput |
| Field Detail |
|---|
public static final Logger __log
| 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 boolean isOutputShutdown()
isOutputShutdown in interface EndPointisOutputShutdown in class ChannelEndPointpublic boolean isInputShutdown()
isInputShutdown in interface EndPointisInputShutdown in class ChannelEndPoint
public void shutdownOutput()
throws IOException
EndPoint
shutdownOutput in interface EndPointshutdownOutput in class ChannelEndPointIOException
protected void sslClose()
throws IOException
IOException
public void close()
throws IOException
EndPoint
close in interface EndPointclose in class SelectChannelEndPointIOException
public int fill(Buffer buffer)
throws IOException
fill in interface EndPointfill in class ChannelEndPointint 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 EndPointflush in class SelectChannelEndPointbuffer - 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 EndPointflush in class SelectChannelEndPointheader - 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 EndPointflush in class ChannelEndPointIOExceptionpublic boolean isBufferingInput()
isBufferingInput in interface EndPointisBufferingInput in class ChannelEndPointpublic boolean isBufferingOutput()
isBufferingOutput in interface EndPointisBufferingOutput in class ChannelEndPointpublic boolean isBufferred()
isBufferred in interface EndPointisBufferred in class ChannelEndPointpublic SSLEngine getSSLEngine()
public void scheduleWrite()
AsyncEndPoint
scheduleWrite in interface AsyncEndPointscheduleWrite in class SelectChannelEndPointpublic String toString()
toString in class SelectChannelEndPoint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||