|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensaml.ws.message.encoder.BaseMessageEncoder
org.opensaml.ws.message.handler.BaseHandlerChainAwareMessageEncoder
org.opensaml.ws.soap.soap11.encoder.SOAP11Encoder
org.opensaml.ws.soap.soap11.encoder.http.HTTPSOAP11Encoder
public class HTTPSOAP11Encoder
Basic SOAP 1.1 encoder for HTTP transport.
Constructor Summary | |
---|---|
HTTPSOAP11Encoder()
Constructor. |
Method Summary | |
---|---|
protected void |
doEncode(MessageContext messageContext)
Encodes the outbound message onto the outbound transport. |
protected String |
getSOAPAction(MessageContext messageContext)
Determine the value of the SOAPAction HTTP header to send. |
protected void |
preprocessTransport(MessageContext messageContext)
This implementation performs the following actions on the context's HTTPOutTransport :
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(MessageContext) , if
that returns non-null.
|
Methods inherited from class org.opensaml.ws.soap.soap11.encoder.SOAP11Encoder |
---|
buildSOAPEnvelope, encodeToTransport, prepareMessageContext, providesMessageConfidentiality, providesMessageIntegrity |
Methods inherited from class org.opensaml.ws.message.handler.BaseHandlerChainAwareMessageEncoder |
---|
invokeHandlerChain, processOutboundHandlerChain |
Methods inherited from class org.opensaml.ws.message.encoder.BaseMessageEncoder |
---|
encode, logEncodedMessage, marshallMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HTTPSOAP11Encoder()
Method Detail |
---|
protected void doEncode(MessageContext messageContext) throws MessageEncodingException
doEncode
in class BaseHandlerChainAwareMessageEncoder
messageContext
- current message context
MessageEncodingException
- thrown if there is a problem encoding the messageprotected void preprocessTransport(MessageContext messageContext) throws MessageEncodingException
This implementation performs the following actions on the context's HTTPOutTransport
:
getSOAPAction(MessageContext)
, if
that returns non-null.
Subclasses should NOT set the SOAPAction HTTP header in this method. Instead, they should override
the method getSOAPAction(MessageContext)
.
preprocessTransport
in class SOAP11Encoder
messageContext
- the current message context being processed
MessageEncodingException
- thrown if there is a problem preprocessing the transportprotected String getSOAPAction(MessageContext messageContext)
The default behavior is to return the value of the SOAP Envelope's WS-Addressing Action header, if present.
messageContext
- the current message context being processed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |