MessageType - the message type of the message context on which to operatepublic class HttpClientResponseSOAP11Decoder<MessageType extends org.opensaml.core.xml.XMLObject>
extends org.opensaml.messaging.decoder.httpclient.BaseHttpClientResponseXMLMessageDecoder<MessageType>
HttpResponse.
This decoder takes a mandatory MessageHandler instance which is used to
populate the message that is returned as the MessageContext.getMessage().
A SOAP message oriented message exchange style might just populate the Envelope as the message. An application-specific payload-oriented message exchange would handle a specific type of payload structure.
| Modifier and Type | Field and Description |
|---|---|
private org.opensaml.messaging.handler.MessageHandler<MessageType> |
bodyHandler
Message handler to use in processing the message body.
|
private Logger |
log
Logger.
|
| Constructor and Description |
|---|
HttpClientResponseSOAP11Decoder() |
| Modifier and Type | Method and Description |
|---|---|
protected org.opensaml.messaging.decoder.MessageDecodingException |
buildFaultException(org.apache.http.HttpResponse response)
Build an exception by processing a fault response, i.e.
|
protected void |
doDecode() |
protected void |
doInitialize() |
org.opensaml.messaging.handler.MessageHandler<MessageType> |
getBodyHandler()
Get the configured body handler MessageHandler.
|
protected Fault |
getFault(Envelope soapMessage)
Return the Fault element from the SOAP message, if any.
|
protected org.opensaml.core.xml.XMLObject |
getMessageToLog() |
protected void |
processSuccessResponse(org.apache.http.HttpResponse httpResponse,
SOAP11Context soapContext)
Process a successful response, i.e.
|
void |
setBodyHandler(org.opensaml.messaging.handler.MessageHandler<MessageType> newBodyHandler)
Set the configured body handler MessageHandler.
|
decode, doDestroy, getParserPool, logDecodedMessage, setParserPool, unmarshallMessagegetHttpResponse, setHttpResponsegetMessageContext, setMessageContextdestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprivate final Logger log
private org.opensaml.messaging.handler.MessageHandler<MessageType extends org.opensaml.core.xml.XMLObject> bodyHandler
public org.opensaml.messaging.handler.MessageHandler<MessageType> getBodyHandler()
public void setBodyHandler(org.opensaml.messaging.handler.MessageHandler<MessageType> newBodyHandler)
newBodyHandler - The bodyHandler to set.protected void doDecode()
throws org.opensaml.messaging.decoder.MessageDecodingException
doDecode in class org.opensaml.messaging.decoder.AbstractMessageDecoder<MessageType extends org.opensaml.core.xml.XMLObject>org.opensaml.messaging.decoder.MessageDecodingExceptionprotected void processSuccessResponse(org.apache.http.HttpResponse httpResponse,
SOAP11Context soapContext)
throws org.opensaml.messaging.decoder.MessageDecodingException,
IOException
httpResponse - the HTTP client responsesoapContext - the SOAP11Context instanceorg.opensaml.messaging.decoder.MessageDecodingException - if message can not be unmarshalledIOException - if there is a problem with the response entity input streamprotected org.opensaml.messaging.decoder.MessageDecodingException buildFaultException(org.apache.http.HttpResponse response)
throws org.opensaml.messaging.decoder.MessageDecodingException,
IOException
response - the HTTP client responseorg.opensaml.messaging.decoder.MessageDecodingException - if message can not be unmarshalledIOException - if there is a problem with the response entity input streamprotected Fault getFault(Envelope soapMessage)
soapMessage - the SOAP 1.1. Envelope being processedprotected void doInitialize()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize in class org.opensaml.messaging.decoder.httpclient.BaseHttpClientResponseXMLMessageDecoder<MessageType extends org.opensaml.core.xml.XMLObject>net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionprotected org.opensaml.core.xml.XMLObject getMessageToLog()
getMessageToLog in class org.opensaml.messaging.decoder.httpclient.BaseHttpClientResponseXMLMessageDecoder<MessageType extends org.opensaml.core.xml.XMLObject>Copyright © 1999–2016 Shibboleth Consortium. All rights reserved.