Class HTTPSOAP11Decoder
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.messaging.decoder.AbstractMessageDecoder
-
- org.opensaml.messaging.decoder.servlet.AbstractHttpServletRequestMessageDecoder
-
- org.opensaml.messaging.decoder.servlet.BaseHttpServletRequestXMLMessageDecoder
-
- org.opensaml.soap.soap11.decoder.http.impl.HTTPSOAP11Decoder
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,UnmodifiableComponent,MessageDecoder,HttpServletRequestMessageDecoder
public class HTTPSOAP11Decoder extends BaseHttpServletRequestXMLMessageDecoder
Basic SOAP 1.1 decoder for HTTP transport.This decoder takes a mandatory
MessageHandlerinstance which is used to determine populate the message that is returned as theMessageContext.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.
-
-
Field Summary
Fields Modifier and Type Field Description private MessageHandlerbodyHandlerMessage handler to use in processing the message body.private org.slf4j.LoggerlogClass logger.private static Set<MediaType>SUPPORTED_MEDIA_TYPESValid Content-Type media types.
-
Constructor Summary
Constructors Constructor Description HTTPSOAP11Decoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoDecode()protected voiddoInitialize()MessageHandlergetBodyHandler()Get the configured body handler MessageHandler.protected XMLObjectgetMessageToLog()voidsetBodyHandler(MessageHandler newBodyHandler)Set the configured body handler MessageHandler.protected voidvalidateHttpRequest(javax.servlet.http.HttpServletRequest request)-
Methods inherited from class org.opensaml.messaging.decoder.servlet.BaseHttpServletRequestXMLMessageDecoder
decode, doDestroy, getParserPool, logDecodedMessage, setParserPool, unmarshallMessage
-
Methods inherited from class org.opensaml.messaging.decoder.servlet.AbstractHttpServletRequestMessageDecoder
getHttpServletRequest, setHttpServletRequest
-
Methods inherited from class org.opensaml.messaging.decoder.AbstractMessageDecoder
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
-
-
-
-
Field Detail
-
SUPPORTED_MEDIA_TYPES
private static final Set<MediaType> SUPPORTED_MEDIA_TYPES
Valid Content-Type media types.
-
log
private final org.slf4j.Logger log
Class logger.
-
bodyHandler
private MessageHandler bodyHandler
Message handler to use in processing the message body.
-
-
Method Detail
-
getBodyHandler
public MessageHandler getBodyHandler()
Get the configured body handler MessageHandler.- Returns:
- Returns the bodyHandler.
-
setBodyHandler
public void setBodyHandler(MessageHandler newBodyHandler)
Set the configured body handler MessageHandler.- Parameters:
newBodyHandler- The bodyHandler to set.
-
doDecode
protected void doDecode() throws MessageDecodingException- Specified by:
doDecodein classAbstractMessageDecoder- Throws:
MessageDecodingException
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classBaseHttpServletRequestXMLMessageDecoder- Throws:
ComponentInitializationException
-
getMessageToLog
protected XMLObject getMessageToLog()
- Overrides:
getMessageToLogin classBaseHttpServletRequestXMLMessageDecoder
-
validateHttpRequest
protected void validateHttpRequest(javax.servlet.http.HttpServletRequest request) throws MessageDecodingException- Overrides:
validateHttpRequestin classBaseHttpServletRequestXMLMessageDecoder- Throws:
MessageDecodingException
-
-