Spring Web Services Framework

org.springframework.ws.server.endpoint.mapping
Class AbstractQNameEndpointMapping

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping
          extended by org.springframework.ws.server.endpoint.mapping.AbstractMapBasedEndpointMapping
              extended by org.springframework.ws.server.endpoint.mapping.AbstractQNameEndpointMapping
All Implemented Interfaces:
ApplicationContextAware, Ordered, EndpointMapping
Direct Known Subclasses:
PayloadRootQNameEndpointMapping

public abstract class AbstractQNameEndpointMapping
extends AbstractMapBasedEndpointMapping

Abstract base class for EndpointMappings that resolve qualified names as registration keys.

Since:
1.0.0
Author:
Arjen Poutsma

Field Summary
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
AbstractQNameEndpointMapping()
           
 
Method Summary
protected  String getLookupKeyForMessage(MessageContext messageContext)
          Returns the the endpoint key for the given message context.
protected abstract  QName resolveQName(MessageContext messageContext)
          Template method that resolves the qualified names from the given SOAP message.
protected  boolean validateLookupKey(String key)
          Validates the given endpoint key.
 
Methods inherited from class org.springframework.ws.server.endpoint.mapping.AbstractMapBasedEndpointMapping
getEndpointInternal, initApplicationContext, lookupEndpoint, registerEndpoint, setEndpointMap, setLazyInitEndpoints, setMappings, setRegisterBeanNames
 
Methods inherited from class org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping
createEndpointInvocationChain, getDefaultEndpoint, getEndpoint, getInterceptors, getOrder, resolveStringEndpoint, setDefaultEndpoint, setInterceptors, setOrder
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, isContextRequired, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractQNameEndpointMapping

public AbstractQNameEndpointMapping()
Method Detail

getLookupKeyForMessage

protected final 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

resolveQName

protected abstract QName resolveQName(MessageContext messageContext)
                               throws Exception
Template method that resolves the qualified names from the given SOAP message.

Returns:
an array of qualified names that serve as registration keys
Throws:
Exception

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

Spring Web Services Framework

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