Package com.adaptris.core.http.apache5
Class ResponseHandlerFactoryImpl.ResponseHandlerImpl
- java.lang.Object
-
- com.adaptris.core.http.apache5.ResponseHandlerFactoryImpl.ResponseHandlerImpl
-
- All Implemented Interfaces:
org.apache.hc.core5.http.io.HttpClientResponseHandler<AdaptrisMessage>
- Enclosing class:
- ResponseHandlerFactoryImpl
protected abstract class ResponseHandlerFactoryImpl.ResponseHandlerImpl extends java.lang.Object implements org.apache.hc.core5.http.io.HttpClientResponseHandler<AdaptrisMessage>
-
-
Field Summary
Fields Modifier and Type Field Description protected HttpProducerowner
-
Constructor Summary
Constructors Modifier Constructor Description protectedResponseHandlerImpl(HttpProducer owner)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringcontentEncoding(org.apache.hc.core5.http.HttpEntity entity)protected voidexceptionBreakout(int status, org.apache.hc.core5.http.HttpEntity entity)AdaptrisMessagehandleResponse(org.apache.hc.core5.http.ClassicHttpResponse response)protected voidlogAndThrow(int status, org.apache.hc.core5.http.HttpEntity entity)protected abstract voidprocessEntity(org.apache.hc.core5.http.HttpEntity entity, java.lang.String encoding, AdaptrisMessage msg)
-
-
-
Field Detail
-
owner
protected HttpProducer owner
-
-
Constructor Detail
-
ResponseHandlerImpl
protected ResponseHandlerImpl(HttpProducer owner)
-
-
Method Detail
-
logAndThrow
protected void logAndThrow(int status, org.apache.hc.core5.http.HttpEntity entity) throws java.io.IOException- Throws:
java.io.IOException
-
exceptionBreakout
protected void exceptionBreakout(int status, org.apache.hc.core5.http.HttpEntity entity) throws java.io.IOException- Throws:
java.io.IOException
-
contentEncoding
protected java.lang.String contentEncoding(org.apache.hc.core5.http.HttpEntity entity)
-
handleResponse
public AdaptrisMessage handleResponse(org.apache.hc.core5.http.ClassicHttpResponse response) throws org.apache.hc.client5.http.ClientProtocolException, java.io.IOException
- Specified by:
handleResponsein interfaceorg.apache.hc.core5.http.io.HttpClientResponseHandler<AdaptrisMessage>- Throws:
org.apache.hc.client5.http.ClientProtocolExceptionjava.io.IOException
-
processEntity
protected abstract void processEntity(org.apache.hc.core5.http.HttpEntity entity, java.lang.String encoding, AdaptrisMessage msg) throws java.io.IOException- Throws:
java.io.IOException
-
-