MessageType
- the message type of the message context on which to operatepublic abstract class BaseHttpServletRequestXMLMessageDecoder<MessageType extends XMLObject> extends AbstractHttpServletRequestMessageDecoder<MessageType>
HttpServletRequest
.Constructor and Description |
---|
BaseHttpServletRequestXMLMessageDecoder()
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.
|
getHttpServletRequest, setHttpServletRequest
doDecode, getMessageContext, setMessageContext
destroy, initialize, isDestroyed, isInitialized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessageContext
public BaseHttpServletRequestXMLMessageDecoder()
public void decode() throws MessageDecodingException
MessageDecoder.getMessageContext()
.decode
in interface MessageDecoder<MessageType extends XMLObject>
decode
in class AbstractHttpServletRequestMessageDecoder<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 AbstractHttpServletRequestMessageDecoder<MessageType extends XMLObject>
protected void doInitialize() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize
in class AbstractHttpServletRequestMessageDecoder<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 © 2019. All rights reserved.