Novell exteNd Web Services SDK API

com.sssw.jbroker.web.portable
Class SAAJSkeleton

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bycom.sssw.jbroker.web.portable.SAAJSkeleton
All Implemented Interfaces:
Serializable, Servlet, ServletConfig
Direct Known Subclasses:
DOMSkeleton

public abstract class SAAJSkeleton
extends HttpServlet

The SAAJSkeleton is a special, generic servlet, which doesn't break down the XML instance on the wire into individual parameters. Instead, the wire data is converted to a SOAPMessage, which the application code can process. After successfull processing, the application code must create and return another SOAPMessage object.

Since:
WSSDK 5.0
See Also:
Serialized Form

Nested Class Summary
static interface SAAJSkeleton.SAAJSkeletonDelegate
          The base class delegates various methods to this interface.
 
Method Summary
 List _getHandlerChain()
          Get the handler chain set on this servlet skeleton
 Object _getProperty(String propName)
          Get a property
 void _setHandlerChain(List handlerList)
          Set the handler chain on this servlet skeleton.
 Object _setProperty(String propName, Object propValue)
          Set a property
 void doGet(HttpServletRequest req, HttpServletResponse res)
          The HTTP servlet doGet The GET support can only be called for ?wsdl parameter.
 void doPost(HttpServletRequest req, HttpServletResponse res)
          The HTTP servlet doPost extracts the SOAPMessage from the servlet request and passes it down to the invoke method.
abstract  SOAPMessage invoke(SOAPMessage message)
          Abstract invocation method, which must be provided by the sub class.
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

doGet

public void doGet(HttpServletRequest req,
                  HttpServletResponse res)
           throws ServletException,
                  IOException
The HTTP servlet doGet The GET support can only be called for ?wsdl parameter. For all other requests it will throw ServletException.

Parameters:
req - the servlet request
res - the servlet response
Throws:
ServletException - if processing failed
IOException - if an I/O exception occurred

doPost

public void doPost(HttpServletRequest req,
                   HttpServletResponse res)
            throws ServletException,
                   IOException
The HTTP servlet doPost extracts the SOAPMessage from the servlet request and passes it down to the invoke method. The SOAPMessage returned by the invoke method is written into the servlet response.

Parameters:
req - the servlet request
res - the servlet response
Throws:
ServletException - if processing failed
IOException - if an I/O exception occurred

invoke

public abstract SOAPMessage invoke(SOAPMessage message)
Abstract invocation method, which must be provided by the sub class.

Parameters:
message - the incoming SOAPMessage object
Returns:
must return a SOAPMessage that will be written into the servlet response.

_setHandlerChain

public void _setHandlerChain(List handlerList)
Set the handler chain on this servlet skeleton.

Since:
jBroker Web 2.0

_getHandlerChain

public List _getHandlerChain()
Get the handler chain set on this servlet skeleton

Returns:
a standard handler chain
Since:
jBroker Web 2.0

_setProperty

public Object _setProperty(String propName,
                           Object propValue)
Set a property

Parameters:
propName - the property name
propValue - the property value
Returns:
previous property value (if any)
Since:
WSSDK 5.0

_getProperty

public Object _getProperty(String propName)
Get a property

Parameters:
propName - the property name
Returns:
the property value

Novell exteNd Web Services SDK API

exteNd is a registered trademark of Novell, Inc.
Copyright 1998-2003 Novell, Inc. All Rights Reserved.