|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.struts.action.Action org.dlese.dpc.services.dcs.action.DCSServicesAction
public final class DCSServicesAction
An Action that handles DCS related web service requests.
Field Summary | |
---|---|
static String |
EXPORT_COLLECTION_VERB
|
static String |
GET_ID_VERB
|
static String |
PUT_RECORD_VERB
|
static String |
UPDATE_STATUS_VERB
|
static String |
URL_CHECK_VERB
|
Fields inherited from class org.apache.struts.action.Action |
---|
defaultLocale, servlet |
Constructor Summary | |
---|---|
DCSServicesAction()
|
Method Summary | |
---|---|
protected org.apache.struts.action.ActionForward |
doExportCollection(HttpServletRequest request,
HttpServletResponse response,
RepositoryManager rm,
DCSServicesForm dcssf,
org.apache.struts.action.ActionMapping mapping)
|
protected org.apache.struts.action.ActionForward |
doGetId(HttpServletRequest request,
HttpServletResponse response,
RepositoryManager rm,
DCSServicesForm dcssf,
org.apache.struts.action.ActionMapping mapping)
Handles a request to generate an id for a specified collection. |
protected org.apache.struts.action.ActionForward |
doPutRecord(HttpServletRequest request,
HttpServletResponse response,
RepositoryManager rm,
DCSServicesForm dcssf,
org.apache.struts.action.ActionMapping mapping)
Handles a request to put a metadata record into the repository. |
protected org.apache.struts.action.ActionForward |
doUpdateStatus(HttpServletRequest request,
HttpServletResponse response,
RepositoryManager rm,
DCSServicesForm dcssf,
org.apache.struts.action.ActionMapping mapping)
Handles a request to put a metadata record into the repository. |
protected org.apache.struts.action.ActionForward |
doUrlCheck(HttpServletRequest request,
HttpServletResponse response,
RepositoryManager rm,
DCSServicesForm dcssf,
org.apache.struts.action.ActionMapping mapping)
|
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: |
protected void |
prtln(String s)
Output a line of text to standard out, with datestamp, if debug is set to true. |
protected void |
prtlnErr(String s)
Output a line of text to error out, with datestamp. |
static void |
setDebug(boolean db)
Sets the debug attribute of the object |
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 |
---|
public static final String GET_ID_VERB
public static final String PUT_RECORD_VERB
public static final String UPDATE_STATUS_VERB
public static final String EXPORT_COLLECTION_VERB
public static final String URL_CHECK_VERB
Constructor Detail |
---|
public DCSServicesAction()
Method Detail |
---|
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
execute
in class org.apache.struts.action.Action
mapping
- The ActionMapping used to select this instancerequest
- The HTTP request we are processingresponse
- The HTTP response we are creatingform
- The ActionForm for the given page
Exception
- If error.protected org.apache.struts.action.ActionForward doGetId(HttpServletRequest request, HttpServletResponse response, RepositoryManager rm, DCSServicesForm dcssf, org.apache.struts.action.ActionMapping mapping) throws Exception
Arguments: collection key.
Error Exception Conditions:
badArgument - The request includes illegal arguments.
request
- The HTTP requestresponse
- The HTTP responserm
- The RepositoryManager useddcssf
- The beanmapping
- ActionMapping used
Exception
- If error.protected org.apache.struts.action.ActionForward doUrlCheck(HttpServletRequest request, HttpServletResponse response, RepositoryManager rm, DCSServicesForm dcssf, org.apache.struts.action.ActionMapping mapping) throws Exception
Exception
protected org.apache.struts.action.ActionForward doPutRecord(HttpServletRequest request, HttpServletResponse response, RepositoryManager rm, DCSServicesForm dcssf, org.apache.struts.action.ActionMapping mapping) throws Exception
RepositoryManager
.putRecord and therefore requires
the same arguments.Currently allows existing records to be overwritten.
Arguments: recordXml, xmlFormat, collection, and id.
Error Exception Conditions:
badArgument - The request includes illegal arguments.
request
- The HTTP requestresponse
- The HTTP responserm
- The RepositoryManager useddcssf
- The Form beanmapping
- ActionMapping used
Exception
- If error.protected org.apache.struts.action.ActionForward doUpdateStatus(HttpServletRequest request, HttpServletResponse response, RepositoryManager rm, DCSServicesForm dcssf, org.apache.struts.action.ActionMapping mapping) throws Exception
RepositoryManager
.putRecord and therefore requires
the same arguments.Currently allows existing records to be overwritten.
Arguments: id, dcsStatus, dcsStatusNode (optional), and dcsStatusEditor(optional).
Error Exception Conditions:
badArgument - The request includes illegal or missing arguments.
request
- The HTTP requestresponse
- The HTTP responserm
- The RepositoryManager useddcssf
- The Form beanmapping
- ActionMapping used
Exception
- If error.protected org.apache.struts.action.ActionForward doExportCollection(HttpServletRequest request, HttpServletResponse response, RepositoryManager rm, DCSServicesForm dcssf, org.apache.struts.action.ActionMapping mapping) throws Exception
Exception
protected static final String getDateStamp()
protected final void prtlnErr(String s)
s
- The text that will be output to error out.protected final void prtln(String s)
s
- The String that will be output.public static void setDebug(boolean db)
db
- The new debug value
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |