|
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.dds.action.DDSServicesAction
public class DDSServicesAction
An Action that handles DDS Web service requests. This class handles DDSWS service version 1.0.
DDSServicesForm
Field Summary | |
---|---|
static String |
GET_RECORD_VERB
The GetRecord request verb |
static String |
LIST_COLLECTIONS
The list collections request verb |
static String |
LIST_CONTENT_STANDARDS
The list content standards request verb |
static String |
LIST_FIELDS
The list fields request verb |
static String |
LIST_GRADE_RANGES
The list grade ranges request verb |
static String |
LIST_RESOURCE_TYPES
The list resource types request verb |
static String |
LIST_SUBJECTS
The list subjects request verb |
static String |
LIST_TERMS
The list terms request verb |
static String |
LIST_XML_FORMATS
The list xml formats request verb |
static String |
SEARCH_VERB
The search request verb |
static String |
SERVICE_INFO
The ServiceInfo request verb |
static String |
URL_CHECK_VERB
The UrlCheck request verb |
static String |
USER_SEARCH_VERB
The seach all request verb |
Fields inherited from class org.apache.struts.action.Action |
---|
defaultLocale, servlet |
Constructor Summary | |
---|---|
DDSServicesAction()
|
Method Summary | |
---|---|
protected org.apache.struts.action.ActionForward |
doGetRecord(HttpServletRequest request,
HttpServletResponse response,
RepositoryManager rm,
DDSServicesForm df,
org.apache.struts.action.ActionMapping mapping)
Handles a request to get a given record from the repository. |
protected org.apache.struts.action.ActionForward |
doListCollections(HttpServletRequest request,
HttpServletResponse response,
RepositoryManager rm,
DDSServicesForm df,
org.apache.struts.action.ActionMapping mapping)
Handles a request to get a the available collections. |
protected org.apache.struts.action.ActionForward |
doListFields(HttpServletRequest request,
HttpServletResponse response,
RepositoryManager rm,
DDSServicesForm df,
org.apache.struts.action.ActionMapping mapping)
Handles a request to get a list of the fields in the index. |
protected org.apache.struts.action.ActionForward |
doListTerms(HttpServletRequest request,
HttpServletResponse response,
RepositoryManager rm,
DDSServicesForm df,
org.apache.struts.action.ActionMapping mapping)
Handles a request to get a list of terms for given field(s) in the index. |
protected org.apache.struts.action.ActionForward |
doListVocabEntries(HttpServletRequest request,
HttpServletResponse response,
RepositoryManager rm,
DDSServicesForm df,
org.apache.struts.action.ActionMapping mapping,
String verb)
Handles a request to list a vocab and it's values including GradeRanges, Subjects, ResourceTypes and ContentStandards. |
protected org.apache.struts.action.ActionForward |
doListXmlFormats(HttpServletRequest request,
HttpServletResponse response,
RepositoryManager rm,
DDSServicesForm df,
org.apache.struts.action.ActionMapping mapping)
Handles a request to get a the available XML formats. |
protected org.apache.struts.action.ActionForward |
doSearch(HttpServletRequest request,
HttpServletResponse response,
RepositoryManager rm,
DDSServicesForm df,
org.apache.struts.action.ActionMapping mapping)
Handles a request to perform a search over all records using the Lucene Query Language. |
protected org.apache.struts.action.ActionForward |
doServiceInfo(HttpServletRequest request,
HttpServletResponse response,
RepositoryManager rm,
DDSServicesForm df,
org.apache.struts.action.ActionMapping mapping)
Handles a request to get a the service information. |
protected org.apache.struts.action.ActionForward |
doUrlCheck(HttpServletRequest request,
HttpServletResponse response,
RepositoryManager rm,
DDSServicesForm df,
org.apache.struts.action.ActionMapping mapping)
Handles a request to check the repository for the existence of a given URL. |
protected org.apache.struts.action.ActionForward |
doUserSearch(HttpServletRequest request,
HttpServletResponse response,
RepositoryManager rm,
DDSServicesForm df,
org.apache.struts.action.ActionMapping mapping)
Handles a request to perform a search over item-level records using the User Query Language. |
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 String |
getListCollectionsCacheKey()
Gets the key used for caching the ListCollections response in the application scope. |
static int |
getNumRecords(RepositoryManager rm)
Gets the number of records that have been indexed inclucing adn, collection, anno and other metadata types regardless of status. |
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 |
static void |
setMaxSearchResults(int maxResults)
Sets the maximum number of search results that can be returned by the service. |
protected void |
setRecordXml(DDSServicesForm df,
ResultDoc resultDoc)
Sets the record XML in the form bean using the localized version of XML. |
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 String URL_CHECK_VERB
public static String GET_RECORD_VERB
public static String SEARCH_VERB
public static String USER_SEARCH_VERB
public static String SERVICE_INFO
public static String LIST_XML_FORMATS
public static String LIST_COLLECTIONS
public static String LIST_GRADE_RANGES
public static String LIST_SUBJECTS
public static String LIST_CONTENT_STANDARDS
public static String LIST_RESOURCE_TYPES
public static String LIST_FIELDS
public static String LIST_TERMS
Constructor Detail |
---|
public DDSServicesAction()
Method Detail |
---|
protected String getListCollectionsCacheKey()
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 doGetRecord(HttpServletRequest request, HttpServletResponse response, RepositoryManager rm, DDSServicesForm df, org.apache.struts.action.ActionMapping mapping) throws Exception
Arguments: identifier, metadataPrefix.
Error Exception Conditions:
badArgument - The request includes illegal arguments.
request
- The HTTP requestresponse
- The HTTP responserm
- The RepositoryManager useddf
- The beanmapping
- ActionMapping used
Exception
- If error.protected void setRecordXml(DDSServicesForm df, ResultDoc resultDoc)
df
- The formresultDoc
- The resultDocprotected org.apache.struts.action.ActionForward doUserSearch(HttpServletRequest request, HttpServletResponse response, RepositoryManager rm, DDSServicesForm df, org.apache.struts.action.ActionMapping mapping) throws Exception
Arguments: identifier, metadataPrefix.
Error Exception Conditions:
badArgument - The request includes illegal arguments.
request
- The HTTP requestresponse
- The HTTP responserm
- The RepositoryManager useddf
- The beanmapping
- ActionMapping used
Exception
- If error.protected org.apache.struts.action.ActionForward doSearch(HttpServletRequest request, HttpServletResponse response, RepositoryManager rm, DDSServicesForm df, org.apache.struts.action.ActionMapping mapping) throws Exception
Arguments: identifier, metadataPrefix.
Error Exception Conditions:
badArgument - The request includes illegal arguments.
request
- The HTTP requestresponse
- The HTTP responserm
- The RepositoryManager useddf
- The beanmapping
- ActionMapping used
Exception
- If error.protected org.apache.struts.action.ActionForward doUrlCheck(HttpServletRequest request, HttpServletResponse response, RepositoryManager rm, DDSServicesForm df, org.apache.struts.action.ActionMapping mapping)
Arguments: url (one or more}
Error Exception Conditions:
badArgument - The request includes illegal arguments.
request
- The HTTP requestresponse
- The HTTP responserm
- The RepositoryManager useddf
- The beanmapping
- ActionMapping used
protected org.apache.struts.action.ActionForward doListXmlFormats(HttpServletRequest request, HttpServletResponse response, RepositoryManager rm, DDSServicesForm df, org.apache.struts.action.ActionMapping mapping) throws Exception
Error Exception Conditions:
badArgument - The request includes illegal arguments.
request
- The HTTP requestresponse
- The HTTP responserm
- The RepositoryManager useddf
- The beanmapping
- ActionMapping used
Exception
- If error.protected org.apache.struts.action.ActionForward doListCollections(HttpServletRequest request, HttpServletResponse response, RepositoryManager rm, DDSServicesForm df, org.apache.struts.action.ActionMapping mapping) throws Exception
Error Exception Conditions:
badArgument - The request includes illegal arguments.
request
- The HTTP requestresponse
- The HTTP responserm
- The RepositoryManager useddf
- The beanmapping
- ActionMapping used
Exception
- If error.protected org.apache.struts.action.ActionForward doListFields(HttpServletRequest request, HttpServletResponse response, RepositoryManager rm, DDSServicesForm df, org.apache.struts.action.ActionMapping mapping) throws Exception
Error Exception Conditions:
badArgument - The request includes illegal arguments.
request
- The HTTP requestresponse
- The HTTP responserm
- The RepositoryManager useddf
- The beanmapping
- ActionMapping used
Exception
- If error.protected org.apache.struts.action.ActionForward doListTerms(HttpServletRequest request, HttpServletResponse response, RepositoryManager rm, DDSServicesForm df, org.apache.struts.action.ActionMapping mapping) throws Exception
Error Exception Conditions:
badArgument - The request includes illegal arguments.
request
- The HTTP requestresponse
- The HTTP responserm
- The RepositoryManager useddf
- The beanmapping
- ActionMapping used
Exception
- If error.protected org.apache.struts.action.ActionForward doListVocabEntries(HttpServletRequest request, HttpServletResponse response, RepositoryManager rm, DDSServicesForm df, org.apache.struts.action.ActionMapping mapping, String verb) throws Exception
Error Exception Conditions:
badArgument - The request includes illegal arguments.
request
- The HTTP requestresponse
- The HTTP responserm
- The RepositoryManager useddf
- The beanmapping
- ActionMapping usedverb
- The verb requested
Exception
- If error.protected org.apache.struts.action.ActionForward doServiceInfo(HttpServletRequest request, HttpServletResponse response, RepositoryManager rm, DDSServicesForm df, org.apache.struts.action.ActionMapping mapping) throws Exception
Error Exception Conditions:
badArgument - The request includes illegal arguments.
request
- The HTTP requestresponse
- The HTTP responserm
- The RepositoryManager useddf
- The beanmapping
- ActionMapping used
Exception
- If error.public static final int getNumRecords(RepositoryManager rm)
rm
- The RepositoryManager being used.
public static void setMaxSearchResults(int maxResults)
maxResults
- The new maxSearchResults valueprotected 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 |