Class AsnServiceAction

java.lang.Object
org.apache.struts.action.Action
org.dlese.dpc.services.asn.action.AsnServiceAction

public class AsnServiceAction extends org.apache.struts.action.Action
An Action that handles Web service requests.
Version:
$Id: AsnServiceAction.java,v 1.5 2010/08/31 22:51:44 ostwald Exp $
Author:
Jonathan Ostwald
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
    The GetStandards request verb
    static final String
     
    static final String
    The ServiceInfo request verb

    Fields inherited from class org.apache.struts.action.Action

    defaultLocale, servlet
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.struts.action.ActionForward
    doGetStandard(HttpServletRequest request, HttpServletResponse response, AsnServiceForm asnForm, org.apache.struts.action.ActionMapping mapping)
    Handles a GetStandards request.
    protected org.apache.struts.action.ActionForward
    doListStandards(HttpServletRequest request, HttpServletResponse response, AsnServiceForm asnForm, org.apache.struts.action.ActionMapping mapping)
    Handles a ListStandards request.
    protected org.apache.struts.action.ActionForward
    doServiceInfo(HttpServletRequest request, HttpServletResponse response, AsnServiceForm asnForm, org.apache.struts.action.ActionMapping mapping)
    Handles a request to get a the service information.
    org.apache.struts.action.ActionForward
    execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response)
    Processes the DDS web service request by forwarding to the appropriate corresponding JSP page for rendering.
    protected static final String
    Return a string for the current time and date, sutiable for display in log files and output to standout:

    Methods inherited from class org.apache.struts.action.Action

    addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • AsnServiceAction

      public AsnServiceAction()
  • Method Details

    • execute

      public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception
      Processes the DDS web service request by forwarding to the appropriate corresponding JSP page for rendering.
      Overrides:
      execute in class org.apache.struts.action.Action
      Parameters:
      mapping - The ActionMapping used to select this instance
      form - The ActionForm for the given page
      request - The HTTP request we are processing
      response - The HTTP response we are creating
      Returns:
      The ActionForward instance describing where and how control should be forwarded
      Throws:
      Exception - If error.
    • doServiceInfo

      protected org.apache.struts.action.ActionForward doServiceInfo(HttpServletRequest request, HttpServletResponse response, AsnServiceForm asnForm, org.apache.struts.action.ActionMapping mapping) throws Exception
      Handles a request to get a the service information.

      Error Exception Conditions:
      badArgument - The request includes illegal arguments.

      Parameters:
      request - The HTTP request
      response - The HTTP response
      asnForm - NOT YET DOCUMENTED
      mapping - ActionMapping used
      Returns:
      An ActionForward to the JSP page that will handle the response
      Throws:
      Exception - If error.
    • doGetStandard

      protected org.apache.struts.action.ActionForward doGetStandard(HttpServletRequest request, HttpServletResponse response, AsnServiceForm asnForm, org.apache.struts.action.ActionMapping mapping) throws Exception
      Handles a GetStandards request.
      Parameters:
      request - The HTTP request
      response - The HTTP response
      asnForm - The bean
      mapping - ActionMapping used
      Returns:
      An ActionForward to the JSP page that will handle the response
      Throws:
      Exception - If error.
    • doListStandards

      protected org.apache.struts.action.ActionForward doListStandards(HttpServletRequest request, HttpServletResponse response, AsnServiceForm asnForm, org.apache.struts.action.ActionMapping mapping) throws Exception
      Handles a ListStandards request.
      Parameters:
      request - The HTTP request
      response - The HTTP response
      asnForm - The bean
      mapping - ActionMapping used
      Returns:
      An ActionForward to the JSP page that will handle the response
      Throws:
      Exception - If error.
    • getDateStamp

      protected static final String getDateStamp()
      Return a string for the current time and date, sutiable for display in log files and output to standout:
      Returns:
      The dateStamp value