Package org.apache.http.nio.conn
Class NoopIOSessionStrategy
- java.lang.Object
-
- org.apache.http.nio.conn.NoopIOSessionStrategy
-
- All Implemented Interfaces:
SchemeIOSessionStrategy
public class NoopIOSessionStrategy extends java.lang.Object implements SchemeIOSessionStrategy
Noop implementation for protocol schemes that have no transport level security.- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description static NoopIOSessionStrategyINSTANCE
-
Constructor Summary
Constructors Constructor Description NoopIOSessionStrategy()
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Field Detail
-
INSTANCE
public static final NoopIOSessionStrategy INSTANCE
-
-
Method Detail
-
upgrade
public org.apache.http.nio.reactor.IOSession upgrade(org.apache.http.HttpHost host, org.apache.http.nio.reactor.IOSession iosession)Description copied from interface:SchemeIOSessionStrategyDecorates the originalIOSessionwith a transport level security protocol implementation.- Specified by:
upgradein interfaceSchemeIOSessionStrategy- Parameters:
host- the target host.iosession- the I/O session.- Returns:
- upgraded I/O session.
-
isLayeringRequired
public boolean isLayeringRequired()
Description copied from interface:SchemeIOSessionStrategyDetermines whether or not protocol layering is required. If this method returnsfalsetheupgrademethod is expected to have no effect and should not be called.- Specified by:
isLayeringRequiredin interfaceSchemeIOSessionStrategy
-
-