org.springframework.ws.endpoint
Class AbstractJDomPayloadEndpoint

java.lang.Object
  extended by org.springframework.ws.endpoint.TransformerObjectSupport
      extended by org.springframework.ws.endpoint.AbstractJDomPayloadEndpoint
All Implemented Interfaces:
PayloadEndpoint

public abstract class AbstractJDomPayloadEndpoint
extends TransformerObjectSupport
implements PayloadEndpoint

Abstract base class for endpoints that handle the message payload as JDOM elements. Offers the message payload as a JDOM Element, and allows subclasses to create a response by returning an Element.

An AbstractJDomPayloadEndpoint only accept one payload element. Multiple payload elements are not in accordance with WS-I.

Author:
Arjen Poutsma
See Also:
Element

Field Summary
 
Fields inherited from class org.springframework.ws.endpoint.TransformerObjectSupport
logger
 
Constructor Summary
AbstractJDomPayloadEndpoint()
           
 
Method Summary
 Source invoke(Source request)
          Invokes an operation.
protected abstract  Element invokeInternal(Element requestElement)
          Template method.
 
Methods inherited from class org.springframework.ws.endpoint.TransformerObjectSupport
createTransformer, createTransformerFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractJDomPayloadEndpoint

public AbstractJDomPayloadEndpoint()
Method Detail

invoke

public final Source invoke(Source request)
                    throws Exception
Description copied from interface: PayloadEndpoint
Invokes an operation.

Specified by:
invoke in interface PayloadEndpoint
Parameters:
request - the request message
Returns:
the response message, may be null
Throws:
Exception - if an exception occurs

invokeInternal

protected abstract Element invokeInternal(Element requestElement)
                                   throws Exception
Template method. Subclasses must implement this. Offers the request payload as a JDOM Element, and allows subclasses to return a response Element.

Parameters:
requestElement - the contents of the SOAP message as JDOM element
Returns:
the response element. Can be null to specify no response.
Throws:
Exception


Copyright (c) 2005-2006 The Spring Framework Project.