org.codehaus.activesoap.policy.addressing
Class AddressingContext

java.lang.Object
  extended byorg.codehaus.activesoap.policy.addressing.AddressingContext
All Implemented Interfaces:
ElementContent

public class AddressingContext
extends Object
implements ElementContent

The current WS-Address context for the current invocation context.

Version:
$Revision: 1.5 $

Field Summary
static QName Action_QNAME
           
static QName FaultTo_QNAME
           
static QName From_QNAME
           
static QName MessageID_QNAME
           
static QName Recipient_QNAME
           
static QName RelatesTo_QNAME
           
static QName ReplyTo_QNAME
           
static QName To_QNAME
           
 
Constructor Summary
AddressingContext()
           
 
Method Summary
 void addProperty(QName name, Object value)
           
 AttributedURI getAction()
           
static AddressingContext getContext()
          Returns the current WS-Addressing context of the current thread.
static AddressingContext getContext(MessageExchange exchange)
          Returns the current WS-Addressing context of this message exchange, lazily creating one if none is created yet
 EndpointReferenceType getFaultTo()
           
 EndpointReferenceType getFrom()
           
 AttributedURI getMessageID()
           
 Map getProperties()
           
 EndpointReferenceType getRecipient()
           
 Relationship getRelatesTo()
           
 EndpointReferenceType getReplyTo()
           
 AttributedURI getTo()
           
 void setAction(AttributedURI action)
           
static void setContext(MessageExchange exchange, AddressingContext context)
           
 void setFaultTo(EndpointReferenceType faultTo)
           
 void setFrom(EndpointReferenceType from)
           
 void setMessageID(AttributedURI messageID)
           
 void setProperties(Map properties)
           
 void setRecipient(EndpointReferenceType recipient)
           
 void setRelatesTo(Relationship relatesTo)
           
 void setReplyTo(EndpointReferenceType replyTo)
           
 void setTo(AttributedURI to)
           
 void writeContent(AnyElementMarshaler marshaler, XMLStreamWriter out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FaultTo_QNAME

public static final QName FaultTo_QNAME

Action_QNAME

public static final QName Action_QNAME

From_QNAME

public static final QName From_QNAME

Recipient_QNAME

public static final QName Recipient_QNAME

To_QNAME

public static final QName To_QNAME

ReplyTo_QNAME

public static final QName ReplyTo_QNAME

MessageID_QNAME

public static final QName MessageID_QNAME

RelatesTo_QNAME

public static final QName RelatesTo_QNAME
Constructor Detail

AddressingContext

public AddressingContext()
Method Detail

getContext

public static AddressingContext getContext()
Returns the current WS-Addressing context of the current thread.

Returns:
the current addressing context or null if the current thread has not yet registered a thread local addressing context.

getContext

public static AddressingContext getContext(MessageExchange exchange)
Returns the current WS-Addressing context of this message exchange, lazily creating one if none is created yet


setContext

public static void setContext(MessageExchange exchange,
                              AddressingContext context)

getMessageID

public AttributedURI getMessageID()

setMessageID

public void setMessageID(AttributedURI messageID)

getRelatesTo

public Relationship getRelatesTo()

setRelatesTo

public void setRelatesTo(Relationship relatesTo)

getTo

public AttributedURI getTo()

setTo

public void setTo(AttributedURI to)

getAction

public AttributedURI getAction()

setAction

public void setAction(AttributedURI action)

getFrom

public EndpointReferenceType getFrom()

setFrom

public void setFrom(EndpointReferenceType from)

getReplyTo

public EndpointReferenceType getReplyTo()

setReplyTo

public void setReplyTo(EndpointReferenceType replyTo)

getFaultTo

public EndpointReferenceType getFaultTo()

setFaultTo

public void setFaultTo(EndpointReferenceType faultTo)

getRecipient

public EndpointReferenceType getRecipient()

setRecipient

public void setRecipient(EndpointReferenceType recipient)

addProperty

public void addProperty(QName name,
                        Object value)

getProperties

public Map getProperties()

setProperties

public void setProperties(Map properties)

writeContent

public void writeContent(AnyElementMarshaler marshaler,
                         XMLStreamWriter out)
                  throws XMLStreamException
Specified by:
writeContent in interface ElementContent
Throws:
XMLStreamException


Copyright © 2004-2007 LogicBlaze, Inc.. All Rights Reserved.