|
||||||||||
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 |
---|
Fields inherited from class org.eclipse.jetty.io.nio.ChannelEndPoint |
---|
_channel, _gather2, _local, _maxIdleTime, _remote, _socket |
Constructor Summary | |
---|---|
SslSelectChannelEndPoint(Buffers buffers,
java.nio.channels.SocketChannel channel,
SelectorManager.SelectSet selectSet,
java.nio.channels.SelectionKey key,
javax.net.ssl.SSLEngine engine)
|
|
SslSelectChannelEndPoint(Buffers buffers,
java.nio.channels.SocketChannel channel,
SelectorManager.SelectSet selectSet,
java.nio.channels.SelectionKey key,
javax.net.ssl.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. |
javax.net.ssl.SSLEngine |
getSSLEngine()
|
boolean |
isAllowRenegotiate()
|
boolean |
isBufferingInput()
|
boolean |
isBufferingOutput()
|
boolean |
isBufferred()
|
void |
setAllowRenegotiate(boolean allowRenegotiate)
Set if SSL re-negotiation is allowed. |
void |
shutdownOutput()
Shutdown any backing output stream associated with the endpoint |
java.lang.String |
toString()
|
Methods inherited from class org.eclipse.jetty.io.nio.SelectChannelEndPoint |
---|
blockReadable, blockWritable, cancelIdle, checkIdleTimestamp, dispatch, getConnection, getSelectionKey, getSelectManager, getSelectSet, idleExpired, isReadyForDispatch, schedule, scheduleIdle, scheduleWrite, setConnection, setMaxIdleTime, setWritable |
Methods inherited from class org.eclipse.jetty.io.nio.ChannelEndPoint |
---|
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, java.nio.channels.SocketChannel channel, SelectorManager.SelectSet selectSet, java.nio.channels.SelectionKey key, javax.net.ssl.SSLEngine engine, int maxIdleTime) throws java.io.IOException
java.io.IOException
public SslSelectChannelEndPoint(Buffers buffers, java.nio.channels.SocketChannel channel, SelectorManager.SelectSet selectSet, java.nio.channels.SelectionKey key, javax.net.ssl.SSLEngine engine) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public boolean isAllowRenegotiate()
public void setAllowRenegotiate(boolean allowRenegotiate)
allowRenegotiate
- true if re-negotiation is allowed (default false)public void dump()
public void shutdownOutput() throws java.io.IOException
EndPoint
shutdownOutput
in interface EndPoint
shutdownOutput
in class ChannelEndPoint
java.io.IOException
public void close() throws java.io.IOException
EndPoint
close
in interface EndPoint
close
in class SelectChannelEndPoint
java.io.IOException
public int fill(Buffer buffer) throws java.io.IOException
fill
in interface EndPoint
fill
in class ChannelEndPoint
int
value indicating the number of bytes
filled or -1 if EOF is reached.
java.io.IOException
public int flush(Buffer buffer) throws java.io.IOException
EndPoint
flush
in interface EndPoint
flush
in class SelectChannelEndPoint
buffer
- The buffer to flush. This buffers getIndex is updated.
java.io.IOException
public int flush(Buffer header, Buffer buffer, Buffer trailer) throws java.io.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.
java.io.IOException
public void flush() throws java.io.IOException
EndPoint
flush
in interface EndPoint
flush
in class ChannelEndPoint
java.io.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 javax.net.ssl.SSLEngine getSSLEngine()
public java.lang.String toString()
toString
in class SelectChannelEndPoint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |