Spring Web Services Framework

org.springframework.ws.soap.addressing.version
Class Addressing200408

java.lang.Object
  extended by org.springframework.xml.transform.TransformerObjectSupport
      extended by org.springframework.ws.soap.addressing.version.AbstractAddressingVersion
          extended by org.springframework.ws.soap.addressing.version.Addressing200408
All Implemented Interfaces:
AddressingVersion

public class Addressing200408
extends AbstractAddressingVersion

Implements the August 2004 edition of the WS-Addressing specification. This version of the specification is used by Microsoft's Web Services Enhancements (WSE) 3.0, and supported by Axis 1 and 2, and XFire.

Since:
1.5.0
Author:
Arjen Poutsma
See Also:
Web Services Addressing, August 2004

Field Summary
 
Fields inherited from class org.springframework.xml.transform.TransformerObjectSupport
logger
 
Constructor Summary
Addressing200408()
           
 
Method Summary
 void addAddressingHeaders(SoapMessage message, MessageAddressingProperties map)
          Adds addressing SOAP headers to the given message, using the given MessageAddressingProperties.
protected  URI getAnonymous()
          Returns the anonymous URI.
protected  EndpointReference getDefaultReplyTo(EndpointReference from)
          Returns the default ReplyTo EPR.
protected  URI getDefaultTo()
          Returns the default To URI.
protected  String getInvalidAddressingHeaderFaultReason()
          Returns the reason of the fault that indicates that a header is invalid.
protected  QName getInvalidAddressingHeaderFaultSubcode()
          Returns the qualified name of the fault subcode that indicates that a header is invalid.
protected  String getMessageAddressingHeaderRequiredFaultReason()
          Returns the reason of the fault that indicates that a header is missing.
protected  QName getMessageAddressingHeaderRequiredFaultSubcode()
          Returns the qualified name of the fault subcode that indicates that a header is missing.
protected  String getNamespaceUri()
          Returns the WS-Addressing namespace handled by this specification.
protected  URI getNone()
          Returns the none URI, or null if the spec does not define it.
 boolean hasRequiredProperties(MessageAddressingProperties map)
          Indicates whether the given MessageAddressingProperties has all required properties.
 String toString()
           
 
Methods inherited from class org.springframework.ws.soap.addressing.version.AbstractAddressingVersion
addEndpointReference, addInvalidAddressingHeaderFault, addMessageAddressingHeaderRequiredFault, addReferenceNodes, getActionName, getAddressName, getFaultToName, getFromName, getMessageAddressingProperties, getMessageIdName, getNamespacePrefix, getReferenceParametersName, getReferencePropertiesName, getRelatesToName, getRelationshipTypeName, getReplyToName, getToName, hasAnonymousAddress, hasNoneAddress, understands
 
Methods inherited from class org.springframework.xml.transform.TransformerObjectSupport
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Addressing200408

public Addressing200408()
Method Detail

addAddressingHeaders

public void addAddressingHeaders(SoapMessage message,
                                 MessageAddressingProperties map)
Description copied from interface: AddressingVersion
Adds addressing SOAP headers to the given message, using the given MessageAddressingProperties.

Specified by:
addAddressingHeaders in interface AddressingVersion
Overrides:
addAddressingHeaders in class AbstractAddressingVersion
Parameters:
message - the message to add the headers to
map - the message addressing properties

hasRequiredProperties

public boolean hasRequiredProperties(MessageAddressingProperties map)
Description copied from interface: AddressingVersion
Indicates whether the given MessageAddressingProperties has all required properties.

Returns:
true if the to and action properties have been set, and - if a reply or fault endpoint has been set - also checks for the message id

getAnonymous

protected final URI getAnonymous()
Description copied from class: AbstractAddressingVersion
Returns the anonymous URI.

Specified by:
getAnonymous in class AbstractAddressingVersion

getInvalidAddressingHeaderFaultReason

protected final String getInvalidAddressingHeaderFaultReason()
Description copied from class: AbstractAddressingVersion
Returns the reason of the fault that indicates that a header is invalid.

Specified by:
getInvalidAddressingHeaderFaultReason in class AbstractAddressingVersion

getInvalidAddressingHeaderFaultSubcode

protected final QName getInvalidAddressingHeaderFaultSubcode()
Description copied from class: AbstractAddressingVersion
Returns the qualified name of the fault subcode that indicates that a header is invalid.

Specified by:
getInvalidAddressingHeaderFaultSubcode in class AbstractAddressingVersion

getMessageAddressingHeaderRequiredFaultReason

protected final String getMessageAddressingHeaderRequiredFaultReason()
Description copied from class: AbstractAddressingVersion
Returns the reason of the fault that indicates that a header is missing.

Specified by:
getMessageAddressingHeaderRequiredFaultReason in class AbstractAddressingVersion

getMessageAddressingHeaderRequiredFaultSubcode

protected final QName getMessageAddressingHeaderRequiredFaultSubcode()
Description copied from class: AbstractAddressingVersion
Returns the qualified name of the fault subcode that indicates that a header is missing.

Specified by:
getMessageAddressingHeaderRequiredFaultSubcode in class AbstractAddressingVersion

getNamespaceUri

protected final String getNamespaceUri()
Description copied from class: AbstractAddressingVersion
Returns the WS-Addressing namespace handled by this specification.

Specified by:
getNamespaceUri in class AbstractAddressingVersion

getDefaultTo

protected URI getDefaultTo()
Description copied from class: AbstractAddressingVersion
Returns the default To URI.

Specified by:
getDefaultTo in class AbstractAddressingVersion

getDefaultReplyTo

protected final EndpointReference getDefaultReplyTo(EndpointReference from)
Description copied from class: AbstractAddressingVersion
Returns the default ReplyTo EPR. Can be based on the From EPR, or the anonymous URI.

Specified by:
getDefaultReplyTo in class AbstractAddressingVersion

getNone

protected final URI getNone()
Description copied from class: AbstractAddressingVersion
Returns the none URI, or null if the spec does not define it.

Specified by:
getNone in class AbstractAddressingVersion

toString

public String toString()
Overrides:
toString in class Object

Spring Web Services Framework

Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.