Package org.apache.http.nio.conn
Interface SchemeIOSessionStrategy
-
- All Known Implementing Classes:
NoopIOSessionStrategy,SSLIOSessionStrategy
public interface SchemeIOSessionStrategyI/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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisLayeringRequired()Determines whether or not protocol layering is required.org.apache.http.nio.reactor.IOSessionupgrade(org.apache.http.HttpHost host, org.apache.http.nio.reactor.IOSession iosession)Decorates the originalIOSessionwith a transport level security protocol implementation.
-
-
-
Method Detail
-
isLayeringRequired
boolean isLayeringRequired()
Determines whether or not protocol layering is required. If this method returnsfalsetheupgrademethod 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 java.io.IOExceptionDecorates the originalIOSessionwith a transport level security protocol implementation.- Parameters:
host- the target host.iosession- the I/O session.- Returns:
- upgraded I/O session.
- Throws:
java.io.IOException
-
-