public class HTTPSOAP11Encoder extends SOAP11Encoder
Constructor and Description |
---|
HTTPSOAP11Encoder()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
buildSOAPEnvelope, encodeToTransport, prepareMessageContext, providesMessageConfidentiality, providesMessageIntegrity
invokeHandlerChain, processOutboundHandlerChain
encode, logEncodedMessage, marshallMessage
protected void doEncode(MessageContext messageContext) throws MessageEncodingException
doEncode
in class BaseHandlerChainAwareMessageEncoder
messageContext
- current message contextMessageEncodingException
- 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 processedMessageEncodingException
- 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 processedCopyright © 2018 JBoss by Red Hat. All rights reserved.