|
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.xml.transform.TransformerObjectSupport org.springframework.ws.server.endpoint.adapter.AbstractMethodEndpointAdapter org.springframework.ws.server.endpoint.adapter.DefaultMethodEndpointAdapter
public class DefaultMethodEndpointAdapter
Default extension of AbstractMethodEndpointAdapter
with support for pluggable argument resolvers and return value handlers.
Field Summary |
---|
Fields inherited from class org.springframework.xml.transform.TransformerObjectSupport |
---|
logger |
Constructor Summary | |
---|---|
DefaultMethodEndpointAdapter()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
List<MethodArgumentResolver> |
getMethodArgumentResolvers()
Returns the list of MethodArgumentResolver s to use. |
protected Object[] |
getMethodArguments(MessageContext messageContext,
MethodEndpoint methodEndpoint)
Returns the argument array for the given method endpoint. |
List<MethodReturnValueHandler> |
getMethodReturnValueHandlers()
Returns the list of MethodReturnValueHandler s to use. |
protected void |
handleMethodReturnValue(MessageContext messageContext,
Object returnValue,
MethodEndpoint methodEndpoint)
Handle the return value for the given method endpoint. |
protected void |
initDefaultStrategies()
Initialize the default implementations for the adapter's strategies. |
protected void |
invokeInternal(MessageContext messageContext,
MethodEndpoint methodEndpoint)
Use the given method endpoint to handle the request. |
void |
setBeanClassLoader(ClassLoader classLoader)
|
void |
setMethodArgumentResolvers(List<MethodArgumentResolver> methodArgumentResolvers)
Sets the list of MethodArgumentResolver s to use. |
void |
setMethodReturnValueHandlers(List<MethodReturnValueHandler> methodReturnValueHandlers)
Sets the list of MethodReturnValueHandler s to use. |
protected boolean |
supportsInternal(MethodEndpoint methodEndpoint)
Given a method endpoint, return whether or not this adapter can support it. |
Methods inherited from class org.springframework.ws.server.endpoint.adapter.AbstractMethodEndpointAdapter |
---|
invoke, supports |
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 |
---|
public DefaultMethodEndpointAdapter()
Method Detail |
---|
public List<MethodArgumentResolver> getMethodArgumentResolvers()
MethodArgumentResolver
s to use.
public void setMethodArgumentResolvers(List<MethodArgumentResolver> methodArgumentResolvers)
MethodArgumentResolver
s to use.
public List<MethodReturnValueHandler> getMethodReturnValueHandlers()
MethodReturnValueHandler
s to use.
public void setMethodReturnValueHandlers(List<MethodReturnValueHandler> methodReturnValueHandlers)
MethodReturnValueHandler
s to use.
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface BeanClassLoaderAware
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
protected void initDefaultStrategies()
protected boolean supportsInternal(MethodEndpoint methodEndpoint)
AbstractMethodEndpointAdapter
supportsInternal
in class AbstractMethodEndpointAdapter
methodEndpoint
- method endpoint to check
protected final void invokeInternal(MessageContext messageContext, MethodEndpoint methodEndpoint) throws Exception
AbstractMethodEndpointAdapter
invokeInternal
in class AbstractMethodEndpointAdapter
messageContext
- the current message contextmethodEndpoint
- the method endpoint to use
Exception
- in case of errorsprotected Object[] getMethodArguments(MessageContext messageContext, MethodEndpoint methodEndpoint) throws Exception
messageContext
- the current message contextmethodEndpoint
- the method endpoint to get arguments for
Exception
- in case of errorsprotected void handleMethodReturnValue(MessageContext messageContext, Object returnValue, MethodEndpoint methodEndpoint) throws Exception
messageContext
- the current message contextreturnValue
- the return valuemethodEndpoint
- the method endpoint to get arguments for
Exception
- in case of errors
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |