DLESE Tools
v1.6.0

org.dlese.dpc.services.asn.action
Class AsnServiceAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by 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
static String ASN_PURL_BASE
           
static String GET_STANDARD_VERB
          The GetStandards request verb
static String LIST_STANDARDS_VERB
           
static String SERVICE_INFO
          The ServiceInfo request verb
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
AsnServiceAction()
           
 
Method Summary
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 String getDateStamp()
          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 Detail

SERVICE_INFO

public static final String SERVICE_INFO
The ServiceInfo request verb

See Also:
Constant Field Values

GET_STANDARD_VERB

public static final String GET_STANDARD_VERB
The GetStandards request verb

See Also:
Constant Field Values

LIST_STANDARDS_VERB

public static final String LIST_STANDARDS_VERB
See Also:
Constant Field Values

ASN_PURL_BASE

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

AsnServiceAction

public AsnServiceAction()
Method Detail

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
request - The HTTP request we are processing
response - The HTTP response we are creating
form - The ActionForm for the given page
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
mapping - ActionMapping used
asnForm - NOT YET DOCUMENTED
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

DLESE Tools
v1.6.0