Spring Web Services Framework

org.springframework.ws.server.endpoint.adapter
Class PayloadEndpointAdapter

java.lang.Object
  extended by org.springframework.xml.transform.TransformerObjectSupport
      extended by org.springframework.ws.server.endpoint.adapter.PayloadEndpointAdapter
All Implemented Interfaces:
EndpointAdapter

public class PayloadEndpointAdapter
extends TransformerObjectSupport
implements EndpointAdapter

Adapter to use a PayloadEndpoint as the endpoint for a EndpointInvocationChain.

This adapter is registered by default by the MessageDispatcher and SoapMessageDispatcher.

Since:
1.0.0
Author:
Arjen Poutsma
See Also:
PayloadEndpoint, EndpointInvocationChain

Field Summary
 
Fields inherited from class org.springframework.xml.transform.TransformerObjectSupport
logger
 
Constructor Summary
PayloadEndpointAdapter()
           
 
Method Summary
 void invoke(MessageContext messageContext, Object endpoint)
          Use the given endpoint to handle the request.
 boolean supports(Object endpoint)
          Does this EndpointAdapter support the given endpoint?
 
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

PayloadEndpointAdapter

public PayloadEndpointAdapter()
Method Detail

supports

public boolean supports(Object endpoint)
Description copied from interface: EndpointAdapter
Does this EndpointAdapter support the given endpoint?

Typical EndpointAdapters will base the decision on the endpoint type.

Specified by:
supports in interface EndpointAdapter
Parameters:
endpoint - endpoint object to check
Returns:
true if this EndpointAdapter supports the supplied endpoint

invoke

public void invoke(MessageContext messageContext,
                   Object endpoint)
            throws Exception
Description copied from interface: EndpointAdapter
Use the given endpoint to handle the request.

Specified by:
invoke in interface EndpointAdapter
Parameters:
messageContext - the current message context
endpoint - the endpoint to use. This object must have previously been passed to the EndpointAdapter.supports(Object) method of this interface, which must have returned true
Throws:
Exception - in case of errors

Spring Web Services Framework

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