MessageType
- the message type of the message context on which to operatepublic abstract class BaseHttpClientResponseXMLMessageDecoder<MessageType extends XMLObject> extends AbstractHttpClientResponseMessageDecoder<MessageType>
HttpResponse
.Modifier and Type | Field and Description |
---|---|
private Logger |
log
Class logger.
|
private net.shibboleth.utilities.java.support.xml.ParserPool |
parserPool
Parser pool used to deserialize the message.
|
private Logger |
protocolMessageLog
Used to log protocol messages.
|
Constructor and Description |
---|
BaseHttpClientResponseXMLMessageDecoder()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
decode()
Decode message data from the source and store it so that it may be retrieved via
MessageDecoder.getMessageContext() . |
protected void |
doDestroy() |
protected void |
doInitialize() |
protected XMLObject |
getMessageToLog()
Get the XMLObject which will be logged as the protocol message.
|
net.shibboleth.utilities.java.support.xml.ParserPool |
getParserPool()
Gets the parser pool used to deserialize incoming messages.
|
protected void |
logDecodedMessage()
Log the decoded message to the protocol message logger.
|
void |
setParserPool(net.shibboleth.utilities.java.support.xml.ParserPool pool)
Sets the parser pool used to deserialize incoming messages.
|
protected XMLObject |
unmarshallMessage(InputStream messageStream)
Helper method that deserializes and unmarshalls the message from the given stream.
|
getHttpResponse, setHttpResponse
doDecode, getMessageContext, setMessageContext
destroy, initialize, isDestroyed, isInitialized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessageContext
private Logger protocolMessageLog
private final Logger log
private net.shibboleth.utilities.java.support.xml.ParserPool parserPool
public BaseHttpClientResponseXMLMessageDecoder()
public void decode() throws MessageDecodingException
MessageDecoder.getMessageContext()
.decode
in interface MessageDecoder<MessageType extends XMLObject>
decode
in class AbstractHttpClientResponseMessageDecoder<MessageType extends XMLObject>
MessageDecodingException
- if there is a problem decoding the message context@Nonnull public net.shibboleth.utilities.java.support.xml.ParserPool getParserPool()
public void setParserPool(@Nonnull net.shibboleth.utilities.java.support.xml.ParserPool pool)
pool
- parser pool used to deserialize incoming messagesprotected void doDestroy()
doDestroy
in class AbstractHttpClientResponseMessageDecoder<MessageType extends XMLObject>
protected void doInitialize() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize
in class AbstractHttpClientResponseMessageDecoder<MessageType extends XMLObject>
net.shibboleth.utilities.java.support.component.ComponentInitializationException
protected void logDecodedMessage()
protected XMLObject getMessageToLog()
protected XMLObject unmarshallMessage(InputStream messageStream) throws MessageDecodingException
messageStream
- input stream containing the messageMessageDecodingException
- thrown if there is a problem deserializing and unmarshalling the messageCopyright © 1999–2015. All rights reserved.