org.yawlfoundation.yawl.resourcing.rsInterface
Class ResourceGateway

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.yawlfoundation.yawl.resourcing.rsInterface.ResourceGateway
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ResourceGateway
extends javax.servlet.http.HttpServlet

The Resource Gateway class acts as a gateway between the Resource Service and the external world for resource (org data) maintenance. It also initialises the service with values from 'web.xml'.

Author:
Michael Adams
See Also:
Serialized Form
Created/Last Date:
13/08/2007

Constructor Summary
ResourceGateway()
           
 
Method Summary
 void destroy()
           
 String doAddResourceAction(javax.servlet.http.HttpServletRequest req, String action)
           
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 String doGetResourceAction(javax.servlet.http.HttpServletRequest req, String action)
           
 String doIsKnownResourceAction(javax.servlet.http.HttpServletRequest req, String action)
           
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 String doRemoveResourceAction(javax.servlet.http.HttpServletRequest req, String action)
           
 String doSetResourceAction(javax.servlet.http.HttpServletRequest req, String action)
           
 String doUpdateResourceAction(javax.servlet.http.HttpServletRequest req, String action)
           
 void init()
          Read settings from web.xml and use them to initialise the service
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceGateway

public ResourceGateway()
Method Detail

init

public void init()
Read settings from web.xml and use them to initialise the service

Overrides:
init in class javax.servlet.GenericServlet

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class javax.servlet.GenericServlet

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res)
            throws IOException
Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
IOException

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
           throws IOException,
                  javax.servlet.ServletException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
IOException
javax.servlet.ServletException

doAddResourceAction

public String doAddResourceAction(javax.servlet.http.HttpServletRequest req,
                                  String action)

doUpdateResourceAction

public String doUpdateResourceAction(javax.servlet.http.HttpServletRequest req,
                                     String action)

doRemoveResourceAction

public String doRemoveResourceAction(javax.servlet.http.HttpServletRequest req,
                                     String action)

doGetResourceAction

public String doGetResourceAction(javax.servlet.http.HttpServletRequest req,
                                  String action)

doSetResourceAction

public String doSetResourceAction(javax.servlet.http.HttpServletRequest req,
                                  String action)

doIsKnownResourceAction

public String doIsKnownResourceAction(javax.servlet.http.HttpServletRequest req,
                                      String action)


Copyright © 2004-2012 The YAWL Foundation.