org.opensaml.ws.message.encoder
Class BaseMessageEncoder

java.lang.Object
  extended by org.opensaml.ws.message.encoder.BaseMessageEncoder
All Implemented Interfaces:
MessageEncoder

public abstract class BaseMessageEncoder
extends java.lang.Object
implements MessageEncoder

Base class for message decoders.


Constructor Summary
BaseMessageEncoder()
          Constructor.
 
Method Summary
protected abstract  void doEncode(MessageContext messageContext)
          Encodes the outbound message onto the outbound transport.
 void encode(MessageContext messageContext)
          Encodes the message in the binding specific manner.
protected  org.w3c.dom.Element marshallMessage(org.opensaml.xml.XMLObject message)
          Helper method that marshalls the given message.
 
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
providesMessageConfidentiality, providesMessageIntegrity
 

Constructor Detail

BaseMessageEncoder

public BaseMessageEncoder()
Constructor.

Method Detail

encode

public void encode(MessageContext messageContext)
            throws MessageEncodingException
Encodes the message in the binding specific manner.

Specified by:
encode in interface MessageEncoder
Parameters:
messageContext - current message context
Throws:
MessageEncodingException - thrown if the problem can not be encoded

doEncode

protected abstract void doEncode(MessageContext messageContext)
                          throws MessageEncodingException
Encodes the outbound message onto the outbound transport.

Parameters:
messageContext - current message context
Throws:
MessageEncodingException - thrown if there is a problem encoding the message

marshallMessage

protected org.w3c.dom.Element marshallMessage(org.opensaml.xml.XMLObject message)
                                       throws MessageEncodingException
Helper method that marshalls the given message.

Parameters:
message - message the marshall and serialize
Returns:
marshalled message
Throws:
MessageEncodingException - thrown if the give message can not be marshalled into its DOM representation


Copyright © 2006-2009 Internet2. All Rights Reserved.