public class HandlerChainAwareHTTPSOAP11Encoder extends BaseSAML2MessageEncoder implements org.opensaml.ws.message.handler.HandlerChainAware
| Constructor and Description |
|---|
HandlerChainAwareHTTPSOAP11Encoder()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doEncode(org.opensaml.ws.message.MessageContext messageContext) |
protected void |
encodeToTransport(org.opensaml.ws.message.MessageContext messageContext)
Encode the message context to the transport.
|
String |
getBindingURI()
Gets the SAML binding URI supported by this encoder.
|
protected void |
invokeHandlerChain(org.opensaml.ws.message.handler.HandlerChain handlerChain,
org.opensaml.ws.message.MessageContext messageContext)
Invoke a handler chain on the specified message context.
|
boolean |
isNotConfidential()
Returns confidentiality override flag.
|
protected void |
prepareMessageContext(org.opensaml.ws.message.MessageContext messageContext)
Perform final binding-specific processing of message context and prepare it for encoding
to the transport.
|
protected void |
preprocessTransport(org.opensaml.ws.message.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
|
protected void |
processOutboundHandlerChain(org.opensaml.ws.message.MessageContext messageContext)
Process the outbound
HandlerChain for the message context, if any. |
boolean |
providesMessageConfidentiality(org.opensaml.ws.message.MessageContext messageContext) |
boolean |
providesMessageIntegrity(org.opensaml.ws.message.MessageContext messageContext) |
void |
setNotConfidential(boolean flag)
Sets confidentiality override flag.
|
checkRelayState, getAllowedURLSchemes, getEndpointURL, setAllowedURLSchemes, setResponseDestination, signMessageencode, logEncodedMessage, marshallMessagepublic HandlerChainAwareHTTPSOAP11Encoder()
public boolean isNotConfidential()
public void setNotConfidential(boolean flag)
flag - override flagpublic String getBindingURI()
getBindingURI in interface SAMLMessageEncoderpublic boolean providesMessageConfidentiality(org.opensaml.ws.message.MessageContext messageContext)
throws org.opensaml.ws.message.encoder.MessageEncodingException
providesMessageConfidentiality in interface org.opensaml.ws.message.encoder.MessageEncoderorg.opensaml.ws.message.encoder.MessageEncodingExceptionpublic boolean providesMessageIntegrity(org.opensaml.ws.message.MessageContext messageContext)
throws org.opensaml.ws.message.encoder.MessageEncodingException
providesMessageIntegrity in interface org.opensaml.ws.message.encoder.MessageEncoderorg.opensaml.ws.message.encoder.MessageEncodingExceptionprotected void doEncode(org.opensaml.ws.message.MessageContext messageContext)
throws org.opensaml.ws.message.encoder.MessageEncodingException
doEncode in class org.opensaml.ws.message.encoder.BaseMessageEncoderorg.opensaml.ws.message.encoder.MessageEncodingExceptionprotected void prepareMessageContext(org.opensaml.ws.message.MessageContext messageContext)
throws org.opensaml.ws.message.encoder.MessageEncodingException
This should include constructing and populating all binding-specific structure and data that needs to be reflected by the message context's properties.
This method is called prior to processOutboundHandlerChain(MessageContext).
messageContext - the message context to processorg.opensaml.ws.message.encoder.MessageEncodingException - thrown if there is a problem preparing the message context
for encodingprotected void encodeToTransport(org.opensaml.ws.message.MessageContext messageContext)
throws org.opensaml.ws.message.encoder.MessageEncodingException
messageContext - the message context to processorg.opensaml.ws.message.encoder.MessageEncodingException - thrown if there is a problem encoding the message context
to the transportprotected void preprocessTransport(org.opensaml.ws.message.MessageContext messageContext)
throws org.opensaml.ws.message.encoder.MessageEncodingException
This implementation performs the following actions on the context's HTTPOutTransport:
messageContext - the current message context being processedorg.opensaml.ws.message.encoder.MessageEncodingException - thrown if there is a problem preprocessing the transportprotected void processOutboundHandlerChain(org.opensaml.ws.message.MessageContext messageContext)
throws org.opensaml.ws.message.encoder.MessageEncodingException
HandlerChain for the message context, if any.messageContext - the message context to processorg.opensaml.ws.message.encoder.MessageEncodingException - thrown if a handler indicates a problem handling the messageprotected void invokeHandlerChain(org.opensaml.ws.message.handler.HandlerChain handlerChain,
org.opensaml.ws.message.MessageContext messageContext)
throws org.opensaml.ws.message.handler.HandlerException
handlerChain - the handle chain to invokemessageContext - the message context to processorg.opensaml.ws.message.handler.HandlerException - if handler chain encountered a problem handling the message contextCopyright © 1999–2015. All rights reserved.