org.glassfish.grizzly.ssl
Class SSLStreamReader
java.lang.Object
org.glassfish.grizzly.streams.AbstractStreamReader
org.glassfish.grizzly.streams.StreamReaderDecorator
org.glassfish.grizzly.ssl.SSLStreamReader
- All Implemented Interfaces:
- Closeable, StreamReader
public class SSLStreamReader
- extends StreamReaderDecorator
SSL aware StreamReader implementation, which work like a wrapper over
existing StreamReader.
- Author:
- Alexey Stashok
- See Also:
SSLStreamWriter
| Methods inherited from class org.glassfish.grizzly.streams.AbstractStreamReader |
append, availableDataSize, close, current, ensureRead, ensureRead, finishBuffer, getBuffer, getBufferSize, getTimeout, isClosed, newBuffer, notifyAvailable, notifyAvailable, notifyCondition, poll, pollBuffer, prepend, prependBuffer, readBoolean, readBooleanArray, readBuffer, readByte, readByteArray, readByteArray, readBytes, readChar, readCharArray, readDouble, readDoubleArray, readFloat, readFloatArray, readInt, readIntArray, readLong, readLongArray, readShort, readShortArray, setBufferSize, setConnection, setTimeout |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sslAttribute
public static Attribute<LinkedList> sslAttribute
SSLStreamReader
public SSLStreamReader()
SSLStreamReader
public SSLStreamReader(StreamReader underlyingReader)
setUnderlyingReader
public void setUnderlyingReader(StreamReader underlyingReader)
- Overrides:
setUnderlyingReader in class StreamReaderDecorator
appendBuffer
public boolean appendBuffer(Buffer buffer)
- Description copied from class:
AbstractStreamReader
- Add more data to the end of the stream.
- Specified by:
appendBuffer in interface StreamReader- Overrides:
appendBuffer in class AbstractStreamReader
- Returns:
- true, if buffer was appended to the
StreamReader,
or false otherwise
getSSLEngine
public SSLEngine getSSLEngine()
attach
protected void attach()
- Attach state, saved in
Connection to this SSLStreamReader.
detach
protected void detach()
- Save state of this
SSLStreamReader into Connection.
read0
protected Buffer read0()
throws IOException
- Specified by:
read0 in class AbstractStreamReader
- Throws:
IOException
wrap
protected final Object wrap(Buffer buffer)
- Specified by:
wrap in class AbstractStreamReader
unwrap
protected Buffer unwrap(Object data)
- Specified by:
unwrap in class AbstractStreamReader
Copyright © 2009 SUN Microsystems. All Rights Reserved.