Spring Web Services Framework

org.springframework.ws.soap.addressing.server
Class AbstractActionMethodEndpointMapping

java.lang.Object
  extended by org.springframework.xml.transform.TransformerObjectSupport
      extended by org.springframework.ws.soap.addressing.server.AbstractAddressingEndpointMapping
          extended by org.springframework.ws.soap.addressing.server.AbstractActionEndpointMapping
              extended by org.springframework.ws.soap.addressing.server.AbstractActionMethodEndpointMapping
All Implemented Interfaces:
Aware, InitializingBean, ApplicationContextAware, Ordered, EndpointMapping, SoapEndpointMapping
Direct Known Subclasses:
AnnotationActionEndpointMapping

public abstract class AbstractActionMethodEndpointMapping
extends AbstractActionEndpointMapping

Abstract base class for WS-Addressing Action-mapped EndpointMapping implementations that map to MethodEndpoints. Provides infrastructure for mapping endpoint methods to actions.

Since:
1.5.0
Author:
Arjen Poutsma

Field Summary
 
Fields inherited from class org.springframework.ws.soap.addressing.server.AbstractActionEndpointMapping
DEFAULT_FAULT_ACTION_SUFFIX, DEFAULT_OUTPUT_ACTION_SUFFIX
 
Fields inherited from class org.springframework.xml.transform.TransformerObjectSupport
logger
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
AbstractActionMethodEndpointMapping()
           
 
Method Summary
protected abstract  URI getActionForMethod(Method method)
          Returns the action value for the specified method.
protected  Class<?> getEndpointClass(Object endpoint)
          Return the class or interface to use for method reflection.
protected  void registerMethods(Object endpoint)
          Helper method that registers the methods of the given bean.
 
Methods inherited from class org.springframework.ws.soap.addressing.server.AbstractActionEndpointMapping
getEndpointAddress, getEndpointInternal, getFaultAction, getFaultActionSuffix, getOutputActionSuffix, getResponseAction, lookupEndpoint, registerEndpoint, setApplicationContext, setFaultActionSuffix, setOutputActionSuffix
 
Methods inherited from class org.springframework.ws.soap.addressing.server.AbstractAddressingEndpointMapping
afterPropertiesSet, getEndpoint, getMessageIdStrategy, getMessageIdStrategy, getMessageSenders, getMessageSenders, getOrder, initDefaultStrategies, setActorOrRole, setActorsOrRoles, setMessageIdStrategy, setMessageSender, setMessageSenders, setOrder, setPostInterceptors, setPreInterceptors, setUltimateReceiver, setVersions
 
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

AbstractActionMethodEndpointMapping

public AbstractActionMethodEndpointMapping()
Method Detail

registerMethods

protected void registerMethods(Object endpoint)
Helper method that registers the methods of the given bean. This method iterates over the methods of the bean, and calls getActionForMethod(java.lang.reflect.Method) for each. If this returns a URI, the method is registered using AbstractActionEndpointMapping.registerEndpoint(java.net.URI, Object).

See Also:
(java.lang.reflect.Method)

getActionForMethod

protected abstract URI getActionForMethod(Method method)
Returns the action value for the specified method.


getEndpointClass

protected Class<?> getEndpointClass(Object endpoint)
Return the class or interface to use for method reflection.

Default implementation delegates to AopUtils.getTargetClass(Object).

Parameters:
endpoint - the bean instance (might be an AOP proxy)
Returns:
the bean class to expose

Spring Web Services Framework

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