java.lang.Object
net.i2p.i2ptunnel.I2PTunnelHTTPClientBase.OnTimeout
All Implemented Interfaces:
I2PTunnelRunner.FailCallback
Enclosing class:
I2PTunnelHTTPClientBase

protected class I2PTunnelHTTPClientBase.OnTimeoutextends Object implements I2PTunnelRunner.FailCallback
Callback for timeout events.
  • Field Details

    • _socket

      private final Socket _socket
      The browser socket being served.
    • _out

      private final OutputStream _out
      Stream the response is written to.
    • _target

      private final String _target
      The request target URL.
    • _usingProxy

      private final boolean _usingProxy
      True when an outproxy serves the request.
    • _wwwProxy

      private final String _wwwProxy
      The proxy chosen for the request, may be null.
    • _requestId

      private final long _requestId
      Id pairing the request with its logs.
    • _targetHost

      private final String _targetHost
      The host name being requested.
    • _isSSL

      private final boolean _isSSL
      True if the request arrived over SSL.
  • Constructor Details

    • OnTimeout

      public OnTimeout(Socket s, OutputStream out, String target, boolean usingProxy, String wwwProxy, long id)
      Create a timeout callback.
      Parameters:
      s - the client socket
      out - the output stream
      target - the URI for an HTTP request, or the host name for CONNECT
      usingProxy - whether a WWW outproxy is in use
      wwwProxy - the outproxy destination
      id - the request identifier
    • OnTimeout

      public OnTimeout(Socket s, OutputStream out, String target, boolean usingProxy, String wwwProxy, long id, String targetHost, boolean isSSL)
      Create a timeout callback with host tracking.
      Parameters:
      s - the client socket
      out - the output stream
      target - the URI for an HTTP request, or the host name for CONNECT
      usingProxy - whether a WWW outproxy is in use
      wwwProxy - the outproxy destination
      id - the request identifier
      targetHost - if non-null, call I2PTunnelHTTPClientBase.noteProxyResult(String, String, boolean, boolean) with this as host
      isSSL - to pass to noteProxyResult(). FALSE for ConnectClient.
  • Method Details