Version: 1.1.1

ca.ucalgary.services
Class WrappingServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by ca.ucalgary.services.WrappingServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
CGIServlet, SoapServlet

public abstract class WrappingServlet
extends javax.servlet.http.HttpServlet

See Also:
Serialized Form

Nested Class Summary
static class WrappingServlet.MyNodeList
          A mutable NodeList implementation for convenience.
 
Field Summary
static String DATARECORDER_CONTEXTPARAM
           
static String ID_PARAM
           
static String SERVICE_SPEC_PARAM
           
static String SRC_PARAM
           
 
Constructor Summary
WrappingServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          GETs are for form creation
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Post is for service submission (if the wsdl URL is provided), or the PBERecorder (any other case)
 DataRecorder getRecorder()
           
 Transformer getResponseTransformer()
           
 void init()
           
 void setRecorder(DataRecorder r)
          Registers an object that hooks into various parts of the request and response in order to provide custom behaviours.
 void setResponseTransformer(Transformer t)
          Stylesheet to apply to service response if it's XML.
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATARECORDER_CONTEXTPARAM

public static final String DATARECORDER_CONTEXTPARAM
See Also:
Constant Field Values

SRC_PARAM

public static final String SRC_PARAM
See Also:
Constant Field Values

ID_PARAM

public static final String ID_PARAM
See Also:
Constant Field Values

SERVICE_SPEC_PARAM

public static final String SERVICE_SPEC_PARAM
See Also:
Constant Field Values
Constructor Detail

WrappingServlet

public WrappingServlet()
Method Detail

setRecorder

public void setRecorder(DataRecorder r)
Registers an object that hooks into various parts of the request and response in order to provide custom behaviours.


getRecorder

public DataRecorder getRecorder()

setResponseTransformer

public void setResponseTransformer(Transformer t)
Stylesheet to apply to service response if it's XML.


getResponseTransformer

public Transformer getResponseTransformer()

init

public void init()
          throws javax.servlet.ServletException
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws javax.servlet.ServletException,
                  IOException
GETs are for form creation

Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
Post is for service submission (if the wsdl URL is provided), or the PBERecorder (any other case)

Overrides:
doPost in class javax.servlet.http.HttpServlet

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010