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:
net.shibboleth.utilities.java.support.component.Component,net.shibboleth.utilities.java.support.component.DestructableComponent,net.shibboleth.utilities.java.support.component.InitializableComponent,net.shibboleth.utilities.java.support.component.UnmodifiableComponent,HttpClientResponseMessageDecoder,MessageDecoder
- Direct Known Subclasses:
BaseHttpClientResponseXMLMessageDecoder
public abstract class AbstractHttpClientResponseMessageDecoder extends AbstractMessageDecoder implements HttpClientResponseMessageDecoder
Abstract implementation ofHttpClientResponseMessageDecoder.
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.http.HttpResponseresponseThe HTTP client response.
-
Constructor Summary
Constructors Constructor Description AbstractHttpClientResponseMessageDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecode()Decode message data from the source and store it so that it may be retrieved viaMessageDecoder.getMessageContext().protected voiddoDestroy()protected voiddoInitialize()org.apache.http.HttpResponsegetHttpResponse()Get 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, 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
-
-
-
-
Method Detail
-
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
public void decode() throws MessageDecodingExceptionDecode 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
protected void doInitialize() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException- Overrides:
doInitializein classnet.shibboleth.utilities.java.support.component.AbstractInitializableComponent- Throws:
net.shibboleth.utilities.java.support.component.ComponentInitializationException
-
-