Class InternalRequestExecutor

java.lang.Object
org.apache.http.impl.nio.client.InternalRequestExecutor
All Implemented Interfaces:
org.apache.http.nio.NHttpClientEventHandler

class InternalRequestExecutor extends Object implements org.apache.http.nio.NHttpClientEventHandler
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.apache.http.nio.NHttpClientEventHandler
     
    private final org.apache.commons.logging.Log
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    InternalRequestExecutor(org.apache.commons.logging.Log log, org.apache.http.nio.NHttpClientEventHandler handler)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    closed(org.apache.http.nio.NHttpClientConnection conn)
     
    void
    connected(org.apache.http.nio.NHttpClientConnection conn, Object attachment)
     
    void
    endOfInput(org.apache.http.nio.NHttpClientConnection conn)
     
    void
    exception(org.apache.http.nio.NHttpClientConnection conn, Exception ex)
     
    void
    inputReady(org.apache.http.nio.NHttpClientConnection conn, org.apache.http.nio.ContentDecoder decoder)
     
    void
    outputReady(org.apache.http.nio.NHttpClientConnection conn, org.apache.http.nio.ContentEncoder encoder)
     
    void
    requestReady(org.apache.http.nio.NHttpClientConnection conn)
     
    void
    responseReceived(org.apache.http.nio.NHttpClientConnection conn)
     
    void
    timeout(org.apache.http.nio.NHttpClientConnection conn)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • log

      private final org.apache.commons.logging.Log log
    • handler

      private final org.apache.http.nio.NHttpClientEventHandler handler
  • Constructor Details

    • InternalRequestExecutor

      public InternalRequestExecutor(org.apache.commons.logging.Log log, org.apache.http.nio.NHttpClientEventHandler handler)
  • Method Details

    • connected

      public void connected(org.apache.http.nio.NHttpClientConnection conn, Object attachment) throws IOException, org.apache.http.HttpException
      Specified by:
      connected in interface org.apache.http.nio.NHttpClientEventHandler
      Throws:
      IOException
      org.apache.http.HttpException
    • closed

      public void closed(org.apache.http.nio.NHttpClientConnection conn)
      Specified by:
      closed in interface org.apache.http.nio.NHttpClientEventHandler
    • requestReady

      public void requestReady(org.apache.http.nio.NHttpClientConnection conn) throws IOException, org.apache.http.HttpException
      Specified by:
      requestReady in interface org.apache.http.nio.NHttpClientEventHandler
      Throws:
      IOException
      org.apache.http.HttpException
    • inputReady

      public void inputReady(org.apache.http.nio.NHttpClientConnection conn, org.apache.http.nio.ContentDecoder decoder) throws IOException, org.apache.http.HttpException
      Specified by:
      inputReady in interface org.apache.http.nio.NHttpClientEventHandler
      Throws:
      IOException
      org.apache.http.HttpException
    • outputReady

      public void outputReady(org.apache.http.nio.NHttpClientConnection conn, org.apache.http.nio.ContentEncoder encoder) throws IOException, org.apache.http.HttpException
      Specified by:
      outputReady in interface org.apache.http.nio.NHttpClientEventHandler
      Throws:
      IOException
      org.apache.http.HttpException
    • responseReceived

      public void responseReceived(org.apache.http.nio.NHttpClientConnection conn) throws org.apache.http.HttpException, IOException
      Specified by:
      responseReceived in interface org.apache.http.nio.NHttpClientEventHandler
      Throws:
      org.apache.http.HttpException
      IOException
    • timeout

      public void timeout(org.apache.http.nio.NHttpClientConnection conn) throws org.apache.http.HttpException, IOException
      Specified by:
      timeout in interface org.apache.http.nio.NHttpClientEventHandler
      Throws:
      org.apache.http.HttpException
      IOException
    • exception

      public void exception(org.apache.http.nio.NHttpClientConnection conn, Exception ex)
      Specified by:
      exception in interface org.apache.http.nio.NHttpClientEventHandler
    • endOfInput

      public void endOfInput(org.apache.http.nio.NHttpClientConnection conn) throws IOException
      Specified by:
      endOfInput in interface org.apache.http.nio.NHttpClientEventHandler
      Throws:
      IOException