Class AbstractHttpClientResponseMessageDecoder
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
org.opensaml.messaging.decoder.AbstractMessageDecoder
org.opensaml.messaging.decoder.httpclient.AbstractHttpClientResponseMessageDecoder
- All Implemented Interfaces:
Component
,DestructableComponent
,InitializableComponent
,UnmodifiableComponent
,HttpClientResponseMessageDecoder
,MessageDecoder
- Direct Known Subclasses:
BaseHttpClientResponseXMLMessageDecoder
public abstract class AbstractHttpClientResponseMessageDecoder
extends AbstractMessageDecoder
implements HttpClientResponseMessageDecoder
Abstract implementation of
HttpClientResponseMessageDecoder
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.http.HttpResponse
The HTTP client response. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
decode()
Decode message data from the source and store it so that it may be retrieved viaMessageDecoder.getMessageContext()
.protected void
protected void
org.apache.http.HttpResponse
Get the HTTP client response on which to operate.void
setHttpResponse
(org.apache.http.HttpResponse clientResponse) Set the HTTP client response on which to operate.Methods inherited from class org.opensaml.messaging.decoder.AbstractMessageDecoder
doDecode, getMessageContext, setMessageContext
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, initialize, isDestroyed, isInitialized
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.shibboleth.utilities.java.support.component.DestructableComponent
destroy, isDestroyed
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
Methods inherited from interface org.opensaml.messaging.decoder.MessageDecoder
getMessageContext
-
Field Details
-
response
private org.apache.http.HttpResponse responseThe HTTP client response.
-
-
Constructor Details
-
AbstractHttpClientResponseMessageDecoder
public AbstractHttpClientResponseMessageDecoder()
-
-
Method Details
-
getHttpResponse
@Nullable public org.apache.http.HttpResponse getHttpResponse()Get the HTTP client response on which to operate.- Specified by:
getHttpResponse
in interfaceHttpClientResponseMessageDecoder
- Returns:
- the HTTP client response
-
setHttpResponse
public void setHttpResponse(@Nullable org.apache.http.HttpResponse clientResponse) Set the HTTP client response on which to operate.- Specified by:
setHttpResponse
in interfaceHttpClientResponseMessageDecoder
- Parameters:
clientResponse
- the HTTP client response
-
decode
Decode message data from the source and store it so that it may be retrieved viaMessageDecoder.getMessageContext()
.- Specified by:
decode
in interfaceMessageDecoder
- Overrides:
decode
in classAbstractMessageDecoder
- Throws:
MessageDecodingException
- if there is a problem decoding the message context
-
doDestroy
protected void doDestroy()- Overrides:
doDestroy
in classAbstractMessageDecoder
-
doInitialize
- Overrides:
doInitialize
in classAbstractInitializableComponent
- Throws:
ComponentInitializationException
-