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

    Modifier and Type
    Method
    Description
    boolean
    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 Details

    • 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