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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringThe GetStandards request verbstatic final Stringstatic final StringThe ServiceInfo request verbFields inherited from class org.apache.struts.action.Action
defaultLocale, servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.struts.action.ActionForwarddoGetStandard(HttpServletRequest request, HttpServletResponse response, AsnServiceForm asnForm, org.apache.struts.action.ActionMapping mapping) Handles a GetStandards request.protected org.apache.struts.action.ActionForwarddoListStandards(HttpServletRequest request, HttpServletResponse response, AsnServiceForm asnForm, org.apache.struts.action.ActionMapping mapping) Handles a ListStandards request.protected org.apache.struts.action.ActionForwarddoServiceInfo(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.ActionForwardexecute(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 StringReturn 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
-
Field Details
-
SERVICE_INFO
The ServiceInfo request verb- See Also:
-
GET_STANDARD_VERB
The GetStandards request verb- See Also:
-
LIST_STANDARDS_VERB
- See Also:
-
ASN_PURL_BASE
- See Also:
-
-
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:
executein classorg.apache.struts.action.Action- Parameters:
mapping- The ActionMapping used to select this instanceform- The ActionForm for the given pagerequest- The HTTP request we are processingresponse- 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 requestresponse- The HTTP responseasnForm- NOT YET DOCUMENTEDmapping- 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 requestresponse- The HTTP responseasnForm- The beanmapping- 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 requestresponse- The HTTP responseasnForm- The beanmapping- ActionMapping used- Returns:
- An ActionForward to the JSP page that will handle the response
- Throws:
Exception- If error.
-
getDateStamp
Return a string for the current time and date, sutiable for display in log files and output to standout:- Returns:
- The dateStamp value
-