Class InternalRequestExecutor

  • All Implemented Interfaces:
    org.apache.http.nio.NHttpClientEventHandler

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

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void closed​(org.apache.http.nio.NHttpClientConnection conn)  
      void connected​(org.apache.http.nio.NHttpClientConnection conn, java.lang.Object attachment)  
      void endOfInput​(org.apache.http.nio.NHttpClientConnection conn)  
      void exception​(org.apache.http.nio.NHttpClientConnection conn, java.lang.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 Detail

      • log

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

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

      • InternalRequestExecutor

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

      • connected

        public void connected​(org.apache.http.nio.NHttpClientConnection conn,
                              java.lang.Object attachment)
                       throws java.io.IOException,
                              org.apache.http.HttpException
        Specified by:
        connected in interface org.apache.http.nio.NHttpClientEventHandler
        Throws:
        java.io.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 java.io.IOException,
                                 org.apache.http.HttpException
        Specified by:
        requestReady in interface org.apache.http.nio.NHttpClientEventHandler
        Throws:
        java.io.IOException
        org.apache.http.HttpException
      • inputReady

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

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

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

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

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

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