public class LibertyHTTPSOAP11Encoder extends BaseHttpServletResponseXMLMessageEncoder<SAMLObject> implements SAMLMessageEncoder
| Modifier and Type | Field and Description |
|---|---|
private SOAPObjectBuilder<Body> |
bodyBuilder
SOAP Body builder.
|
private SOAPObjectBuilder<Envelope> |
envBuilder
SOAP Envelope builder.
|
private org.slf4j.Logger |
log
Class logger.
|
| Constructor and Description |
|---|
LibertyHTTPSOAP11Encoder()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildAndStoreSOAPMessage(XMLObject payload)
Builds the SOAP message to be encoded.
|
protected void |
doEncode() |
String |
getBindingURI() |
protected int |
getHTTPResponseStatusCode()
Get the HTTP response status code to return.
|
protected XMLObject |
getMessageToLog() |
protected String |
getSOAPAction()
Determine the value of the SOAPAction HTTP header to send.
|
protected Envelope |
getSOAPEnvelope()
Retrieve the previously stored SOAP envelope from the message context.
|
void |
prepareContext() |
protected void |
prepareHttpServletResponse()
This implementation performs the following actions on the context's
HttpServletResponse:
Adds the HTTP header: "Cache-control: no-cache, no-store"
Adds the HTTP header: "Pragma: no-cache"
Sets the character encoding to: "UTF-8"
Sets the content type to: "text/xml"
Sets the SOAPAction HTTP header the value returned by getSOAPAction(), if
that returns non-null.
|
protected void |
storeSOAPEnvelope(Envelope envelope)
Store the constructed SOAP envelope in the message context for later encoding.
|
encode, logEncodedMessage, marshallMessagedoDestroy, doInitialize, getHttpServletResponse, setHttpServletResponsegetMessageContext, setMessageContextdestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitencode, setMessageContextinitialize, isInitializeddestroy, isDestroyedprivate final org.slf4j.Logger log
private SOAPObjectBuilder<Envelope> envBuilder
private SOAPObjectBuilder<Body> bodyBuilder
public String getBindingURI()
getBindingURI in interface SAMLMessageEncoderpublic void prepareContext()
throws MessageEncodingException
prepareContext in interface MessageEncoder<SAMLObject>prepareContext in class AbstractMessageEncoder<SAMLObject>MessageEncodingExceptionprotected void doEncode()
throws MessageEncodingException
doEncode in class AbstractMessageEncoder<SAMLObject>MessageEncodingExceptionprotected void storeSOAPEnvelope(Envelope envelope)
envelope - the SOAP envelopeprotected Envelope getSOAPEnvelope()
protected void buildAndStoreSOAPMessage(@Nonnull XMLObject payload)
payload - body of the SOAP messageprotected void prepareHttpServletResponse()
throws MessageEncodingException
This implementation performs the following actions on the context's HttpServletResponse:
getSOAPAction(), if
that returns non-null.
Subclasses should NOT set the SOAPAction HTTP header in this method. Instead, they should override
the method getSOAPAction().
MessageEncodingException - thrown if there is a problem preprocessing the transportprotected String getSOAPAction()
The default behavior is to return the value of the SOAP Envelope's WS-Addressing Action header, if present.
protected int getHTTPResponseStatusCode()
protected XMLObject getMessageToLog()
getMessageToLog in class BaseHttpServletResponseXMLMessageEncoder<SAMLObject>Copyright © 1999–2018 Shibboleth Consortium. All rights reserved.