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.HttpResponseThe HTTP client response. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecode()Decode message data from the source and store it so that it may be retrieved viaMessageDecoder.getMessageContext().protected voidprotected voidorg.apache.http.HttpResponseGet the HTTP client response on which to operate.voidsetHttpResponse(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, setMessageContextMethods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.utilities.java.support.component.DestructableComponent
destroy, isDestroyedMethods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitializedMethods 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:
getHttpResponsein 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:
setHttpResponsein 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:
decodein interfaceMessageDecoder- Overrides:
decodein classAbstractMessageDecoder- Throws:
MessageDecodingException- if there is a problem decoding the message context
-
doDestroy
protected void doDestroy()- Overrides:
doDestroyin classAbstractMessageDecoder
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-