org.apache.http.nio.conn
Interface SchemeIOSessionStrategy

All Known Implementing Classes:
NoopIOSessionStrategy, SSLIOSessionStrategy

public interface SchemeIOSessionStrategy

I/O session layering strategy for complex protocol schemes, which employ a transport level security protocol to secure HTTP communication (in other words those schemes 'layer' HTTP on top of a transport level protocol such as TLS/SSL).

Since:
4.0

Method Summary
 boolean isLayeringRequired()
          Determines whether or not protocol layering is required.
 org.apache.http.nio.reactor.IOSession upgrade(org.apache.http.HttpHost host, org.apache.http.nio.reactor.IOSession ioSession)
          Decorates the original IOSession with a transport level security protocol implementation.
 

Method Detail

isLayeringRequired

boolean isLayeringRequired()
Determines whether or not protocol layering is required. If this method returns false the upgrade method is expected to have no effect and should not be called.


upgrade

org.apache.http.nio.reactor.IOSession upgrade(org.apache.http.HttpHost host,
                                              org.apache.http.nio.reactor.IOSession ioSession)
                                              throws IOException
Decorates the original IOSession with a transport level security protocol implementation.

Parameters:
host - the target host.
ioSession - the I/O session.
Returns:
upgraded I/O session.
Throws:
IOException


Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.