|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis.message.addressing.AddressingHeaders
public class AddressingHeaders
Represents a set of message addressing headers as defined by the WS-Addressing specification.
Field Summary | |
---|---|
boolean |
isW3CVersion
Are we using the W3C spec rules? |
Constructor Summary | |
---|---|
AddressingHeaders()
Constructor AddressingHeaders. |
|
AddressingHeaders(EndpointReference epr)
Copy constructor. |
|
AddressingHeaders(javax.xml.soap.SOAPEnvelope env)
Constructor AddressingHeaders. |
|
AddressingHeaders(javax.xml.soap.SOAPEnvelope env,
boolean process,
boolean remove)
Constructor AddressingHeaders. |
|
AddressingHeaders(javax.xml.soap.SOAPEnvelope env,
java.lang.String actorURI,
boolean process,
boolean remove)
Constructor AddressingHeaders. |
|
AddressingHeaders(javax.xml.soap.SOAPEnvelope env,
java.lang.String actorURI,
boolean process,
boolean remove,
boolean setMustUnderstand,
boolean allowNonSpecificActions,
java.util.List<javax.xml.namespace.QName> refPropsQNames)
Constructor AddressingHeaders. |
|
AddressingHeaders(javax.xml.soap.SOAPEnvelope env,
java.lang.String actorURI,
boolean process,
boolean remove,
boolean setMustUnderstand,
java.util.List<javax.xml.namespace.QName> refPropsQNames)
Constructor AddressingHeaders. |
Method Summary | |
---|---|
void |
addReferenceParameter(org.w3c.dom.Element param)
Adds a reference parameter. |
void |
addReferenceParameter(org.apache.axis.message.MessageElement param)
Adds a reference parameter. |
void |
addReferenceProperty(org.w3c.dom.Element prop)
Adds an XML element to the referencePropeties collection. |
void |
addReferenceProperty(org.apache.axis.message.MessageElement prop)
Adds a message element to the referencePropeties collection. |
void |
addRelatesTo(java.lang.String uri,
javax.xml.namespace.QName type)
Method addRelatesTo. |
void |
addRelatesTo(java.lang.String uri,
java.lang.String type)
Method addRelatesTo. |
Action |
getAction()
Method getAction. |
org.apache.axis.AxisFault |
getAddrHeaderFault()
Gets the fault contained in the headers. |
EndpointReference |
getFaultTo()
Method getFaultTo. |
EndpointReference |
getFrom()
Method getFrom. |
MessageID |
getMessageID()
Method getMessageID. |
ReferenceParametersType |
getReferenceParameters()
Get the reference parameters. |
ReferencePropertiesType |
getReferenceProperties()
Method getReferenceProperties. |
java.util.List<RelatesTo> |
getRelatesTo()
Method getRelatesTo. |
EndpointReference |
getReplyTo()
Method getReplyTo. |
To |
getTo()
Method getTo. |
boolean |
isSetMustUnderstand()
Gets the value of the "setMustUnderstand" flag. |
void |
setAction(Action action)
Method setAction. |
void |
setAction(java.lang.String uri)
Sets the action URI. |
void |
setAction(org.apache.axis.types.URI uri)
Sets the action URI. |
void |
setFaultTo(EndpointReference epr)
Method setFaultTo. |
void |
setFrom(EndpointReference ref)
Method setFrom. |
void |
setMessageID(MessageID messageID)
Method setMessageID. |
void |
setReferenceParameters(ReferenceParametersType params)
Sets the reference parameters. |
void |
setReferenceProperties(ReferencePropertiesType props)
Method setReferenceProperties. |
void |
setRelatesTo(java.util.List<RelatesTo> v)
Set the collection of RelatesToProperties. |
void |
setReplyTo(EndpointReference ref)
Method setReplyTo. |
void |
setSetMustUnderstand(boolean setMustUnderstand)
Sets the "SetMustUnderstand" flag. |
void |
setTo(AttributedURI uri)
Method setTo. |
void |
setTo(To to)
Method setTo. |
void |
toEnvelope(javax.xml.soap.SOAPEnvelope env)
Adds these addressing headers to the specified SOAP envelope. |
void |
toEnvelope(javax.xml.soap.SOAPEnvelope env,
java.lang.String actorURI)
Adds these addressing headers to the specified SOAP envelope. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean isW3CVersion
Constructor Detail |
---|
public AddressingHeaders()
public AddressingHeaders(EndpointReference epr)
epr
- Reference to copy frompublic AddressingHeaders(javax.xml.soap.SOAPEnvelope env) throws java.lang.Exception
env
- Envelope to get the headers from
java.lang.Exception
- If an error occurspublic AddressingHeaders(javax.xml.soap.SOAPEnvelope env, boolean process, boolean remove) throws java.lang.Exception
env
- Parent Envelopeprocess
- Should the headers be marked as processedremove
- Should the headers be removed after processing
java.lang.Exception
- If an error occurspublic AddressingHeaders(javax.xml.soap.SOAPEnvelope env, java.lang.String actorURI, boolean process, boolean remove) throws java.lang.Exception
env
- Parent EnvelopeactorURI
- Actor URIprocess
- Should the headers be marked as processedremove
- Should the headers be removed after processing
java.lang.Exception
- If an error occurspublic AddressingHeaders(javax.xml.soap.SOAPEnvelope env, java.lang.String actorURI, boolean process, boolean remove, boolean setMustUnderstand, boolean allowNonSpecificActions, java.util.List<javax.xml.namespace.QName> refPropsQNames) throws java.lang.Exception
env
- The SOAP EnvelopeactorURI
- The SOAP Actor URIprocess
- Should the headers be marked as processedremove
- Should the headers be removed after processingsetMustUnderstand
- whether or not to set mustUnderstand="true" on the
headersallowNonSpecificActions
- whether or not to allow a non-specific
Action URIrefPropsQNames
- A list of QNames for reference properties. If null
all non-WSA headers will be added as reference properties. If an
empty list is passed than no headers will be added reference
properties (default). If non empty list of qnames is passed then
only headers matching the qname in the list will be added as
reference properties.
java.lang.Exception
public AddressingHeaders(javax.xml.soap.SOAPEnvelope env, java.lang.String actorURI, boolean process, boolean remove, boolean setMustUnderstand, java.util.List<javax.xml.namespace.QName> refPropsQNames) throws java.lang.Exception
env
- The SOAP EnvelopeactorURI
- The SOAP Actor URIprocess
- Should the headers be marked as processedremove
- Should the headers be removed after processingsetMustUnderstand
- whether or not to set mustUnderstand="true" on the
headersrefPropsQNames
- A list of QNames for reference properties. If null
all non-WSA headers will be added as reference properties. If an
empty list is passed than no headers will be added reference
properties (default). If non empty list of qnames is passed then
only headers matching the qname in the list will be added as
reference properties.
java.lang.Exception
Method Detail |
---|
public void addReferenceParameter(org.w3c.dom.Element param)
param
- Parameter to addpublic void addReferenceParameter(org.apache.axis.message.MessageElement param)
param
- Parameter to addpublic void addReferenceProperty(org.w3c.dom.Element prop)
prop
- Element to addpublic void addReferenceProperty(org.apache.axis.message.MessageElement prop)
prop
- Element to addpublic void addRelatesTo(java.lang.String uri, javax.xml.namespace.QName type) throws org.apache.axis.types.URI.MalformedURIException
uri
- Address URItype
- an IRI indicating the relationship type
URI.MalformedURIException
- If the URI is not validpublic void addRelatesTo(java.lang.String uri, java.lang.String type) throws org.apache.axis.types.URI.MalformedURIException
uri
- Address URItype
- an IRI indicating the relationship type
URI.MalformedURIException
- If the URI is not validpublic Action getAction()
public org.apache.axis.AxisFault getAddrHeaderFault()
public EndpointReference getFaultTo()
public EndpointReference getFrom()
public MessageID getMessageID()
public ReferenceParametersType getReferenceParameters()
public ReferencePropertiesType getReferenceProperties()
public java.util.List<RelatesTo> getRelatesTo()
public EndpointReference getReplyTo()
public To getTo()
public boolean isSetMustUnderstand()
public void setAction(Action action)
action
- Action fieldpublic void setAction(java.lang.String uri) throws java.lang.Exception
uri
- Action URI
java.lang.Exception
- If an error occurspublic void setAction(org.apache.axis.types.URI uri)
uri
- Action URIpublic void setFaultTo(EndpointReference epr)
epr
- The FaultTo end-point referencepublic void setFrom(EndpointReference ref)
ref
- From end-point referencepublic void setMessageID(MessageID messageID)
messageID
- The message ID to setpublic void setReferenceParameters(ReferenceParametersType params)
params
- Reference parameters beanpublic void setReferenceProperties(ReferencePropertiesType props)
props
- The properties to setpublic void setRelatesTo(java.util.List<RelatesTo> v)
v
- List of RelatesToPropertiespublic void setReplyTo(EndpointReference ref)
ref
- The ReplyTo end-point referencepublic void setSetMustUnderstand(boolean setMustUnderstand)
setMustUnderstand
- Flag valuepublic void setTo(AttributedURI uri)
uri
- To URIpublic void setTo(To to)
to
- The To fieldpublic void toEnvelope(javax.xml.soap.SOAPEnvelope env) throws java.lang.Exception
env
- Envelope to add to
java.lang.Exception
- If an error occurspublic void toEnvelope(javax.xml.soap.SOAPEnvelope env, java.lang.String actorURI) throws javax.xml.soap.SOAPException
env
- Envelope to add toactorURI
- Actor URI
javax.xml.soap.SOAPException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |