|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.context.support.ApplicationObjectSupport org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping org.springframework.ws.server.endpoint.mapping.AbstractMethodEndpointMapping<String> org.springframework.ws.server.endpoint.mapping.SimpleMethodEndpointMapping
public class SimpleMethodEndpointMapping
Simple subclass of AbstractMethodEndpointMapping
that maps from the local name of the request payload to
methods. Endpoint beans are registered using the endpoints
property; the endpoint methods that start
with methodPrefix
and end with methodSuffix
will be registered.
public class MyEndpoint{ public Source handleMyMessage(Source source) { ... } }This method will handle any message that has the
MyMessage
as a payload root local name.
setEndpoints(Object[])
Field Summary | |
---|---|
static String |
DEFAULT_METHOD_PREFIX
Default method prefix. |
static String |
DEFAULT_METHOD_SUFFIX
Default method suffix. |
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport |
---|
logger |
Fields inherited from interface org.springframework.core.Ordered |
---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor Summary | |
---|---|
SimpleMethodEndpointMapping()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
Object[] |
getEndpoints()
|
protected String |
getLookupKeyForMessage(MessageContext messageContext)
Returns the local part of the payload root element of the request. |
protected String |
getLookupKeyForMethod(Method method)
Returns the name of the given method, with the prefix and suffix stripped off. |
String |
getMethodPrefix()
Returns the method prefix. |
String |
getMethodSuffix()
Returns the method suffix. |
void |
setEndpoints(Object[] endpoints)
Sets the endpoints. |
void |
setMethodPrefix(String methodPrefix)
Sets the method prefix. |
void |
setMethodSuffix(String methodSuffix)
Sets the method suffix. |
Methods inherited from class org.springframework.ws.server.endpoint.mapping.AbstractMethodEndpointMapping |
---|
getEndpointClass, getEndpointInternal, lookupEndpoint, registerEndpoint, registerMethods, registerMethods |
Methods inherited from class org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping |
---|
createEndpointInvocationChain, getDefaultEndpoint, getEndpoint, getInterceptors, getOrder, initApplicationContext, initInterceptors, 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 |
Field Detail |
---|
public static final String DEFAULT_METHOD_PREFIX
public static final String DEFAULT_METHOD_SUFFIX
Constructor Detail |
---|
public SimpleMethodEndpointMapping()
Method Detail |
---|
public Object[] getEndpoints()
public void setEndpoints(Object[] endpoints)
methodPrefix
and end with
methodSuffix
will be registered.
public String getMethodPrefix()
public void setMethodPrefix(String methodPrefix)
handle
".
DEFAULT_METHOD_PREFIX
public String getMethodSuffix()
public void setMethodSuffix(String methodSuffix)
DEFAULT_METHOD_SUFFIX
public final void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
protected String getLookupKeyForMethod(Method method)
getLookupKeyForMethod
in class AbstractMethodEndpointMapping<String>
method
- the method
null
if the method is not to be registeredprotected String getLookupKeyForMessage(MessageContext messageContext) throws TransformerException
getLookupKeyForMessage
in class AbstractMethodEndpointMapping<String>
TransformerException
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |