Package 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 originalIOSession
with a transport level security protocol implementation.
-
-
-
Method Detail
-
isLayeringRequired
boolean isLayeringRequired()
Determines whether or not protocol layering is required. If this method returnsfalse
theupgrade
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 originalIOSession
with a transport level security protocol implementation.- Parameters:
host
- the target host.iosession
- the I/O session.- Returns:
- upgraded I/O session.
- Throws:
IOException
-
-