org.glassfish.grizzly.ssl
Class SSLStreamWriter

java.lang.Object
  extended by org.glassfish.grizzly.streams.AbstractStreamWriter
      extended by org.glassfish.grizzly.streams.TransformerStreamWriter
          extended by org.glassfish.grizzly.ssl.SSLStreamWriter
All Implemented Interfaces:
java.io.Closeable, Stream, StreamWriter

public class SSLStreamWriter
extends TransformerStreamWriter

SSL aware StreamWriter implementation, which work like a wrapper over existing StreamWriter.

Author:
Alexey Stashok
See Also:
SSLStreamReader

Nested Class Summary
protected static class SSLStreamWriter.HandshakeCompletionHandler
           
protected static class SSLStreamWriter.SSLHandshakeCondition
           
 
Nested classes/interfaces inherited from class org.glassfish.grizzly.streams.AbstractStreamWriter
AbstractStreamWriter.DisposeBufferCompletionHandler
 
Field Summary
 
Fields inherited from class org.glassfish.grizzly.streams.AbstractStreamWriter
isOutputBuffered, logger, output, ZERO, ZERO_READY_FUTURE
 
Constructor Summary
SSLStreamWriter(StreamWriter underlyingWriter)
           
 
Method Summary
 java.util.concurrent.Future<javax.net.ssl.SSLEngine> handshake(SSLStreamReader sslStreamReader, SSLEngineConfigurator configurator)
           
 java.util.concurrent.Future<javax.net.ssl.SSLEngine> handshake(SSLStreamReader sslStreamReader, SSLEngineConfigurator configurator, CompletionHandler<javax.net.ssl.SSLEngine> completionHandler)
           
 
Methods inherited from class org.glassfish.grizzly.streams.AbstractStreamWriter
close, close, encode, encode, flush, flush, getConnection, getTimeout, isClosed, setTimeout, writeBoolean, writeBooleanArray, writeBuffer, writeByte, writeByteArray, writeByteArray, writeChar, writeCharArray, writeDouble, writeDoubleArray, writeFloat, writeFloatArray, writeInt, writeIntArray, writeLong, writeLongArray, writeShort, writeShortArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLStreamWriter

public SSLStreamWriter(StreamWriter underlyingWriter)
Method Detail

handshake

public java.util.concurrent.Future<javax.net.ssl.SSLEngine> handshake(SSLStreamReader sslStreamReader,
                                                                      SSLEngineConfigurator configurator)
                                                               throws java.io.IOException
Throws:
java.io.IOException

handshake

public java.util.concurrent.Future<javax.net.ssl.SSLEngine> handshake(SSLStreamReader sslStreamReader,
                                                                      SSLEngineConfigurator configurator,
                                                                      CompletionHandler<javax.net.ssl.SSLEngine> completionHandler)
                                                               throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2012 Oracle Corporation. All Rights Reserved.