public class LibertyHTTPSOAP11Encoder
extends org.opensaml.messaging.encoder.servlet.BaseHttpServletResponseXMLMessageEncoder<org.opensaml.saml.common.SAMLObject>
implements org.opensaml.saml.common.binding.encoding.SAMLMessageEncoder
| Modifier and Type | Field and Description |
|---|---|
private org.opensaml.soap.common.SOAPObjectBuilder<org.opensaml.soap.soap11.Body> |
bodyBuilder
SOAP Body builder.
|
private org.opensaml.soap.common.SOAPObjectBuilder<org.opensaml.soap.soap11.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(org.opensaml.core.xml.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 org.opensaml.core.xml.XMLObject |
getMessageToLog() |
protected String |
getSOAPAction()
Determine the value of the SOAPAction HTTP header to send.
|
protected org.opensaml.soap.soap11.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(org.opensaml.soap.soap11.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 org.opensaml.soap.common.SOAPObjectBuilder<org.opensaml.soap.soap11.Envelope> envBuilder
private org.opensaml.soap.common.SOAPObjectBuilder<org.opensaml.soap.soap11.Body> bodyBuilder
public String getBindingURI()
getBindingURI in interface org.opensaml.saml.common.binding.encoding.SAMLMessageEncoderpublic void prepareContext()
throws org.opensaml.messaging.encoder.MessageEncodingException
prepareContext in interface org.opensaml.messaging.encoder.MessageEncoder<org.opensaml.saml.common.SAMLObject>prepareContext in class org.opensaml.messaging.encoder.AbstractMessageEncoder<org.opensaml.saml.common.SAMLObject>org.opensaml.messaging.encoder.MessageEncodingExceptionprotected void doEncode()
throws org.opensaml.messaging.encoder.MessageEncodingException
doEncode in class org.opensaml.messaging.encoder.AbstractMessageEncoder<org.opensaml.saml.common.SAMLObject>org.opensaml.messaging.encoder.MessageEncodingExceptionprotected void storeSOAPEnvelope(org.opensaml.soap.soap11.Envelope envelope)
envelope - the SOAP envelopeprotected org.opensaml.soap.soap11.Envelope getSOAPEnvelope()
protected void buildAndStoreSOAPMessage(@Nonnull org.opensaml.core.xml.XMLObject payload)
payload - body of the SOAP messageprotected void prepareHttpServletResponse()
throws org.opensaml.messaging.encoder.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().
org.opensaml.messaging.encoder.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 org.opensaml.core.xml.XMLObject getMessageToLog()
getMessageToLog in class org.opensaml.messaging.encoder.servlet.BaseHttpServletResponseXMLMessageEncoder<org.opensaml.saml.common.SAMLObject>Copyright © 1999–2017 Shibboleth Consortium. All rights reserved.