|
||||||||||
| 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.saml2.binding.encoding.BaseSAML2MessageEncoder
org.opensaml.saml2.binding.encoding.HandlerChainAwareHTTPSOAP11Encoder
public class HandlerChainAwareHTTPSOAP11Encoder
| Field Summary | |
|---|---|
private SOAPObjectBuilder<Body> |
bodyBuilder
SOAP Body builder. |
private SOAPObjectBuilder<Envelope> |
envBuilder
SOAP Envelope builder. |
private org.slf4j.Logger |
log
Class logger. |
private boolean |
notConfidential
Overrides binding confidentiality. |
| Constructor Summary | |
|---|---|
HandlerChainAwareHTTPSOAP11Encoder()
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
doEncode(MessageContext messageContext)
|
protected void |
encodeToTransport(MessageContext messageContext)
Encode the message context to the transport. |
String |
getBindingURI()
Gets the SAML binding URI supported by this encoder. |
protected void |
invokeHandlerChain(HandlerChain handlerChain,
MessageContext messageContext)
Invoke a handler chain on the specified message context. |
boolean |
isNotConfidential()
Returns confidentiality override flag. |
protected void |
prepareMessageContext(MessageContext messageContext)
Perform final binding-specific processing of message context and prepare it for encoding to the transport. |
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
|
protected void |
processOutboundHandlerChain(MessageContext messageContext)
Process the outbound HandlerChain for the message context, if any. |
boolean |
providesMessageConfidentiality(MessageContext messageContext)
|
boolean |
providesMessageIntegrity(MessageContext messageContext)
|
void |
setNotConfidential(boolean flag)
Sets confidentiality override flag. |
| Methods inherited from class org.opensaml.saml2.binding.encoding.BaseSAML2MessageEncoder |
|---|
checkRelayState, getAllowedURLSchemes, getEndpointURL, setAllowedURLSchemes, setResponseDestination, signMessage |
| 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 |
| Methods inherited from interface org.opensaml.ws.message.encoder.MessageEncoder |
|---|
encode |
| Field Detail |
|---|
private final org.slf4j.Logger log
private SOAPObjectBuilder<Envelope> envBuilder
private SOAPObjectBuilder<Body> bodyBuilder
private boolean notConfidential
| Constructor Detail |
|---|
public HandlerChainAwareHTTPSOAP11Encoder()
| Method Detail |
|---|
public boolean isNotConfidential()
public void setNotConfidential(boolean flag)
flag - override flagpublic String getBindingURI()
getBindingURI in interface SAMLMessageEncoder
public boolean providesMessageConfidentiality(MessageContext messageContext)
throws MessageEncodingException
providesMessageConfidentiality in interface MessageEncoderMessageEncodingException
public boolean providesMessageIntegrity(MessageContext messageContext)
throws MessageEncodingException
providesMessageIntegrity in interface MessageEncoderMessageEncodingException
protected void doEncode(MessageContext messageContext)
throws MessageEncodingException
doEncode in class BaseMessageEncoderMessageEncodingException
protected void prepareMessageContext(MessageContext messageContext)
throws 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 process
MessageEncodingException - thrown if there is a problem preparing the message context
for encoding
protected void encodeToTransport(MessageContext messageContext)
throws MessageEncodingException
messageContext - the message context to process
MessageEncodingException - thrown if there is a problem encoding the message context
to the transport
protected void preprocessTransport(MessageContext messageContext)
throws MessageEncodingException
This implementation performs the following actions on the context's HTTPOutTransport:
messageContext - the current message context being processed
MessageEncodingException - thrown if there is a problem preprocessing the transport
protected void processOutboundHandlerChain(MessageContext messageContext)
throws MessageEncodingException
HandlerChain for the message context, if any.
messageContext - the message context to process
MessageEncodingException - thrown if a handler indicates a problem handling the message
protected void invokeHandlerChain(HandlerChain handlerChain,
MessageContext messageContext)
throws HandlerException
handlerChain - the handle chain to invokemessageContext - the message context to process
HandlerException - if handler chain encountered a problem handling the message context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||