Class AsyncCompletionHandler

java.lang.Object
org.asynchttpclient.AsyncCompletionHandler<org.asynchttpclient.Response>
org.asynchttpclient.AsyncCompletionHandlerBase
net.bluemind.core.rest.http.internal.AsyncCompletionHandler
All Implemented Interfaces:
org.asynchttpclient.AsyncHandler<org.asynchttpclient.Response>, org.asynchttpclient.handler.ProgressAsyncHandler<org.asynchttpclient.Response>

public class AsyncCompletionHandler extends org.asynchttpclient.AsyncCompletionHandlerBase
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.asynchttpclient.AsyncHandler

    org.asynchttpclient.AsyncHandler.State
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.asynchttpclient.AsyncHandler.State
    onBodyPartReceived(org.asynchttpclient.HttpResponseBodyPart content)
     
    org.asynchttpclient.Response
    onCompleted(org.asynchttpclient.Response response)
     
    org.asynchttpclient.AsyncHandler.State
    onHeadersReceived(io.netty.handler.codec.http.HttpHeaders headers)
     
    org.asynchttpclient.AsyncHandler.State
    onStatusReceived(org.asynchttpclient.HttpResponseStatus status)
     
    void
     

    Methods inherited from class org.asynchttpclient.AsyncCompletionHandler

    onCompleted, onContentWriteProgress, onContentWritten, onHeadersWritten, onTrailingHeadersReceived

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.asynchttpclient.AsyncHandler

    onConnectionOffer, onConnectionPoolAttempt, onConnectionPooled, onHostnameResolutionAttempt, onHostnameResolutionFailure, onHostnameResolutionSuccess, onRequestSend, onRetry, onTcpConnectAttempt, onTcpConnectFailure, onTcpConnectSuccess, onTlsHandshakeAttempt, onTlsHandshakeFailure, onTlsHandshakeSuccess
  • Constructor Details

  • Method Details

    • onHeadersReceived

      public org.asynchttpclient.AsyncHandler.State onHeadersReceived(io.netty.handler.codec.http.HttpHeaders headers) throws Exception
      Specified by:
      onHeadersReceived in interface org.asynchttpclient.AsyncHandler<org.asynchttpclient.Response>
      Overrides:
      onHeadersReceived in class org.asynchttpclient.AsyncCompletionHandler<org.asynchttpclient.Response>
      Throws:
      Exception
    • onBodyPartReceived

      public org.asynchttpclient.AsyncHandler.State onBodyPartReceived(org.asynchttpclient.HttpResponseBodyPart content) throws Exception
      Specified by:
      onBodyPartReceived in interface org.asynchttpclient.AsyncHandler<org.asynchttpclient.Response>
      Overrides:
      onBodyPartReceived in class org.asynchttpclient.AsyncCompletionHandler<org.asynchttpclient.Response>
      Throws:
      Exception
    • onStatusReceived

      public org.asynchttpclient.AsyncHandler.State onStatusReceived(org.asynchttpclient.HttpResponseStatus status) throws Exception
      Specified by:
      onStatusReceived in interface org.asynchttpclient.AsyncHandler<org.asynchttpclient.Response>
      Overrides:
      onStatusReceived in class org.asynchttpclient.AsyncCompletionHandler<org.asynchttpclient.Response>
      Throws:
      Exception
    • onCompleted

      public org.asynchttpclient.Response onCompleted(org.asynchttpclient.Response response) throws Exception
      Overrides:
      onCompleted in class org.asynchttpclient.AsyncCompletionHandlerBase
      Throws:
      Exception
    • onThrowable

      public void onThrowable(Throwable t)
      Specified by:
      onThrowable in interface org.asynchttpclient.AsyncHandler<org.asynchttpclient.Response>
      Overrides:
      onThrowable in class org.asynchttpclient.AsyncCompletionHandler<org.asynchttpclient.Response>