org.springframework.ws.server.endpoint.mapping
Class UriEndpointMapping
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping
org.springframework.ws.server.endpoint.mapping.AbstractMapBasedEndpointMapping
org.springframework.ws.server.endpoint.mapping.UriEndpointMapping
- All Implemented Interfaces:
- ApplicationContextAware, Ordered, EndpointMapping
public class UriEndpointMapping
- extends AbstractMapBasedEndpointMapping
Implementation of the EndpointMapping
interface to map from the full request URI to endpoint beans.
Supports both mapping to bean instances and mapping to bean names: the latter is required for prototype handlers.
The endpointMap
property is suitable for populating the endpoint map with bean references, e.g. via the
map element in XML bean definitions.
Mappings to bean names can be set via the mappings
property, in a form accepted by the
java.util.Properties
class, like as follows:
http://example.com:8080/services/bookFlight=bookFlightEndpoint
jms://exampleQueue=getFlightsEndpoint
The syntax is URI=ENDPOINT_BEAN_NAME.
This endpoint mapping does not read from the request message, and therefore is more suitable for message factories
which directly read from the transport request (such as the AxiomSoapMessageFactory
with the
payloadCaching
disabled). However, this endpoint mapping obviously is transport specific.
- Since:
- 1.5.0
- Author:
- Arjen Poutsma
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UriEndpointMapping
public UriEndpointMapping()
validateLookupKey
protected boolean validateLookupKey(String key)
- Description copied from class:
AbstractMapBasedEndpointMapping
- Validates the given endpoint key. Should return
true
is the given string is valid.
- Specified by:
validateLookupKey
in class AbstractMapBasedEndpointMapping
getLookupKeyForMessage
protected String getLookupKeyForMessage(MessageContext messageContext)
throws Exception
- Description copied from class:
AbstractMapBasedEndpointMapping
- Returns the the endpoint key for the given message context. Returns
null
if a key cannot be found.
- Specified by:
getLookupKeyForMessage
in class AbstractMapBasedEndpointMapping
- Returns:
- the registration key; or
null
- Throws:
Exception
Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.