Spring Web Services Framework

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

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.Addressing10
All Implemented Interfaces:
AddressingVersion

public class Addressing10
extends AbstractAddressingVersion

Implements WS-Addressing 1.0 (May 2006). This version of the specification is used by Microsoft's Windows Communication Foundation (WCF), and supported by Axis 1 and 2.

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
Addressing10()
           
 
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.
protected  QName getReferencePropertiesName()
          Returns the qualified name of the ReferenceProperties in the endpoint reference.
 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, 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

Addressing10

public Addressing10()
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

getNamespaceUri

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

Specified by:
getNamespaceUri in class AbstractAddressingVersion

getReferencePropertiesName

protected QName getReferencePropertiesName()
Description copied from class: AbstractAddressingVersion
Returns the qualified name of the ReferenceProperties in the endpoint reference. Returns null when reference properties are not supported by this version of the spec.

Overrides:
getReferencePropertiesName 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 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

getAnonymous

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

Specified by:
getAnonymous 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

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

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

getInvalidAddressingHeaderFaultSubcode

protected 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

getInvalidAddressingHeaderFaultReason

protected 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

toString

public String toString()
Overrides:
toString in class Object

Spring Web Services Framework

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