|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.xml.transform.TransformerObjectSupport
org.springframework.ws.soap.addressing.server.AbstractAddressingEndpointMapping
public abstract class AbstractAddressingEndpointMapping
Abstract base class for EndpointMapping
implementations that handle WS-Addressing. Besides the normal SoapEndpointMapping
properties, this mapping has a versions
property, which defines the WS-Addressing specifications supported. By default, these are Addressing200408
and Addressing10
.
messageIdStrategy
property defines the strategy to use for
creating reply MessageIDs
. By default, this is the UuidMessageIdStrategy
on Java 5 and higher,
and the RandomGuidMessageIdStrategy
on Java 1.4.
The messageSenders
are used to send out-of-band reply messages.
If a request messages defines a non-anonymous reply address, these senders will be used to send the message.
This mapping (and all subclasses) uses an implicit WS-Addressing EndpointInterceptor
, which is added in every
EndpointInvocationChain
produced. As such, this mapping does not have the standard interceptors
property, but rather a preInterceptors
and postInterceptors
property, which are added before and after the implicit
WS-Addressing interceptor, respectively.
Field Summary |
---|
Fields inherited from class org.springframework.xml.transform.TransformerObjectSupport |
---|
logger |
Constructor Summary | |
---|---|
protected |
AbstractAddressingEndpointMapping()
Protected constructor. |
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
EndpointInvocationChain |
getEndpoint(MessageContext messageContext)
Returns an endpoint and any interceptors for this message context. |
protected abstract Object |
getEndpointInternal(MessageAddressingProperties map)
Lookup an endpoint for the given MessageAddressingProperties , returning null if no specific
one is found. |
protected abstract URI |
getFaultAction(Object endpoint,
MessageAddressingProperties requestMap)
Provides the WS-Addressing Action for response fault messages, given the endpoint, and request Message Addressing Properties. |
protected abstract URI |
getResponseAction(Object endpoint,
MessageAddressingProperties requestMap)
Provides the WS-Addressing Action for response messages, given the endpoint, and request Message Addressing Properties. |
protected void |
initDefaultStrategies()
Initializes the default implementation for this mapping's strategies: the Addressing200408 and Addressing10
versions of the specication, and the UuidMessageIdStrategy on Java 5 and higher; the RandomGuidMessageIdStrategy on Java 1.4. |
void |
setActorOrRole(String actorOrRole)
Sets a single SOAP actor/actorOrRole to apply to all endpoints mapped by the delegate endpoint mapping. |
void |
setActorsOrRoles(String[] actorsOrRoles)
Sets the array of SOAP actors/actorsOrRoles to apply to all endpoints mapped by the delegate endpoint mapping. |
void |
setMessageIdStrategy(MessageIdStrategy messageIdStrategy)
Sets the message id strategy used for creating WS-Addressing MessageIds. |
void |
setMessageSenders(WebServiceMessageSender[] messageSenders)
|
void |
setPostInterceptors(EndpointInterceptor[] postInterceptors)
Set additional interceptors to be applied after the implicit WS-Addressing interceptor, e.g. |
void |
setPreInterceptors(EndpointInterceptor[] preInterceptors)
Set additional interceptors to be applied before the implicit WS-Addressing interceptor, e.g. |
void |
setUltimateReceiver(boolean ultimateReceiver)
Indicates whether this the endpoint fulfills the SOAP 1.2 Ultimate Receiver role. |
void |
setVersions(AddressingVersion[] versions)
Sets the WS-Addressing versions to be supported by this mapping. |
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, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractAddressingEndpointMapping()
Method Detail |
---|
protected void initDefaultStrategies()
Addressing200408
and Addressing10
versions of the specication, and the UuidMessageIdStrategy
on Java 5 and higher; the RandomGuidMessageIdStrategy
on Java 1.4.
public final void setActorOrRole(String actorOrRole)
SoapEndpointMapping
setActorOrRole
in interface SoapEndpointMapping
public final void setActorsOrRoles(String[] actorsOrRoles)
SoapEndpointMapping
setActorsOrRoles
in interface SoapEndpointMapping
public final void setUltimateReceiver(boolean ultimateReceiver)
SoapEndpointMapping
setUltimateReceiver
in interface SoapEndpointMapping
public final void setPreInterceptors(EndpointInterceptor[] preInterceptors)
XwsSecurityInterceptor
.
public final void setPostInterceptors(EndpointInterceptor[] postInterceptors)
PayloadLoggingInterceptor
.
public final void setMessageIdStrategy(MessageIdStrategy messageIdStrategy)
UuidMessageIdStrategy
is used on Java 5 and higher, and the RandomGuidMessageIdStrategy
on Java 1.4.
public final void setMessageSenders(WebServiceMessageSender[] messageSenders)
public final void setVersions(AddressingVersion[] versions)
the August 2004
and the May 2006
versions of
the specification.
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public final EndpointInvocationChain getEndpoint(MessageContext messageContext) throws TransformerException
EndpointMapping
EndpointExecutionChain
contains an endpoint Object, rather than even a tag interface,
so that endpoints are not constrained in any way. For example, a EndpointAdapter
could be written to
allow another framework's endpoint objects to be used.
Returns null
if no match was found. This is by design. The MessageDispatcher
will query
all registered EndpointMapping
beans to find a match, and only decide there is an error if none can
find an endpoint.
getEndpoint
in interface EndpointMapping
null
if
no mapping is found
TransformerException
protected abstract Object getEndpointInternal(MessageAddressingProperties map)
MessageAddressingProperties
, returning null
if no specific
one is found. This template method is called by getEndpoint(MessageContext)
.
map
- the message addressing properties
null
protected abstract URI getResponseAction(Object endpoint, MessageAddressingProperties requestMap)
endpoint
- the mapped endpointrequestMap
- the MAP for the request
protected abstract URI getFaultAction(Object endpoint, MessageAddressingProperties requestMap)
endpoint
- the mapped endpointrequestMap
- the MAP for the request
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |