|
||||||||||
| 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
public class SOAP11Encoder
Basic SOAP 1.1 encoder.
| Field Summary | |
|---|---|
private SOAPObjectBuilder<Body> |
bodyBuilder
SOAP Body builder. |
private SOAPObjectBuilder<Envelope> |
envBuilder
SOAP Envelope builder. |
private org.slf4j.Logger |
log
Class logger. |
| Constructor Summary | |
|---|---|
SOAP11Encoder()
Constructor. |
|
| Method Summary | |
|---|---|
protected Envelope |
buildSOAPEnvelope(MessageContext messageContext)
Builds the SOAP envelope and body skeleton to be encoded. |
protected void |
encodeToTransport(MessageContext messageContext)
Encode the message context to the transport. |
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)
Perform any processing or fixup on the message context's outbound transport, prior to encoding the actual message. |
boolean |
providesMessageConfidentiality(MessageContext messageContext)
Indicates whether this encoder, given the current message context, provides end-to-end message confidentiality. |
boolean |
providesMessageIntegrity(MessageContext messageContext)
Indicates whether this encoder, given the current message context, provides end-to-end message integrity. |
| Methods inherited from class org.opensaml.ws.message.handler.BaseHandlerChainAwareMessageEncoder |
|---|
doEncode, 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 |
| Field Detail |
|---|
private final org.slf4j.Logger log
private SOAPObjectBuilder<Envelope> envBuilder
private SOAPObjectBuilder<Body> bodyBuilder
| Constructor Detail |
|---|
public SOAP11Encoder()
| Method Detail |
|---|
public boolean providesMessageConfidentiality(MessageContext messageContext)
throws MessageEncodingException
messageContext - the current message context
MessageEncodingException - thrown if the encoder encounter an error while attempt to evaluate its ability
to provide message confidentiality.
public boolean providesMessageIntegrity(MessageContext messageContext)
throws MessageEncodingException
messageContext - the current message context
MessageEncodingException - thrown if the encoder encounter an error while attempt to evaluate its ability
to provide message integrity.
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 BaseHandlerChainAwareMessageEncoder.processOutboundHandlerChain(MessageContext).
prepareMessageContext in class BaseHandlerChainAwareMessageEncodermessageContext - 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
encodeToTransport in class BaseHandlerChainAwareMessageEncodermessageContext - 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
The default implementation does nothing. Subclasses should override to implement transport-specific behavior.
messageContext - the current message context being processed
MessageEncodingException - thrown if there is a problem preprocessing the transportprotected Envelope buildSOAPEnvelope(MessageContext messageContext)
messageContext - the message context being processed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||