| org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping org.springframework.ws.server.endpoint.mapping.AbstractMapBasedEndpointMapping
All known Subclasses: org.springframework.ws.server.endpoint.mapping.XPathPayloadEndpointMapping, org.springframework.ws.soap.server.endpoint.mapping.SoapActionEndpointMapping, org.springframework.ws.server.endpoint.mapping.AbstractQNameEndpointMapping,
AbstractMapBasedEndpointMapping | abstract public class AbstractMapBasedEndpointMapping extends AbstractEndpointMapping (Code) | | Abstract base class for endpoint mapping that are based on a Map . Provides mappings of application
context beans as well as a settable map.
Subclasses determine the exact nature of the key in the enpoint map; this can be a qualified name, a SOAP Header, the
result of a XPath validation. The values are always endpoint objects, or bean names of endpoint objects.
author: Arjen Poutsma since: 1.0.0 |
getEndpointInternal | final protected Object getEndpointInternal(MessageContext messageContext) throws Exception(Code) | | Lookup an endpoint for the given message. The extraction of the endpoint key is delegated to the concrete
subclass.
the looked up endpoint, or null |
getLookupKeyForMessage | abstract protected String getLookupKeyForMessage(MessageContext messageContext) throws Exception(Code) | | Returns the the endpoint keys for the given message context.
the registration keys |
lookupEndpoint | protected Object lookupEndpoint(String key)(Code) | | Looks up an endpoint instance for the given keys. All keys are tried in order.
Parameters: key - key the beans are mapped to the associated endpoint instance, or null if not found |
registerEndpoint | protected void registerEndpoint(String key, Object endpoint) throws BeansException(Code) | | Register the given endpoint instance under the registration key.
Parameters: key - the string representation of the registration key Parameters: endpoint - the endpoint instance throws: org.springframework.beans.BeansException - if the endpoint could not be registered |
setEndpointMap | final public void setEndpointMap(Map endpointMap)(Code) | | Sets a Map with keys and endpoint beans as values. The nature of the keys in the given map depends on the exact
subclass used. They can be qualified names, for instance, or mime headers.
throws: IllegalArgumentException - if the endpoint is invalid |
setLazyInitEndpoints | public void setLazyInitEndpoints(boolean lazyInitEndpoints)(Code) | | Set whether to lazily initialize endpoints. Only applicable to singleton endpoints, as prototypes are always
lazily initialized. Default is false , as eager initialization allows for more efficiency through
referencing the controller objects directly.
If you want to allow your endpoints to be lazily initialized, make them "lazy-init" and set this flag to
true . Just making them "lazy-init" will not work, as they are initialized through the references
from the endpoint mapping in this case.
|
setMappings | public void setMappings(Properties mappings)(Code) | | Maps keys to endpoint bean names. The nature of the property names depends on the exact subclass used. They can
be qualified names, for instance, or mime headers.
|
setRegisterBeanNames | final public void setRegisterBeanNames(boolean registerBeanNames)(Code) | | Set whether to register bean names found in the application context. Setting this to true will
register all beans found in the application context under their name. Default is false .
|
validateLookupKey | abstract protected boolean validateLookupKey(String key)(Code) | | Validates the given endpoint key. Should return true is the given string is valid.
|
|
|