|
ArcGIS Server Geoportal extension 10
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.esri.gpt.framework.context.BaseServlet
com.esri.gpt.control.harvest.servlets.service.HarvesterServlet
public class HarvesterServlet
Handles HTTP requests.
Intercepts and parses command camming from Harvester Service. Any command
has a form of XML string stored in the HTTP request parameter called:
"xml_data_post". There are three commands available:
This class has to be registered as a legal servlet. Refer to your web server documentation for further instructions. For Tomcat Web Application Deployment Descriptor see: http://tomcat.apache.org/tomcat-5.0-doc/appdev/deployment.html
<?xml version="1.0" encoding="UTF-8" ?><request><authenticateAdministrator></authenticateAdministrator></request><?xml version="1.0" encoding="UTF-8" ?><response><authenticateAdministrator><status>1 (NUMERIC)</status><maxThreads>maximum threads (NUMERIC)</maxThreads></authenticateAdministrator></response><?xml version="1.0" encoding="UTF-8" ?><response><authenticateAdministrator><status>0 (NUMERIC)</status><error>error message</error></authenticateAdministrator></response>
<?xml version="1.0" encoding="UTF-8" ?><request><nextJob></nextJob></request><?xml version="1.0" encoding="UTF-8" ?><response><nextJob><jobId>job identifier (NUMERIC)</jobId><siteId>site identifier (NUMERIC)</siteId><fullHarvest>1 - for full harvest,
otherwise 0</fullHarvest></nextJob></response><?xml version="1.0" encoding="UTF-8" ?><response><nextJob><error>error message</error></nextJob></response>
<?xml version="1.0" encoding="UTF-8" ?><request><setJob><jobId>job identifier (NUMERIC)</jobId><jobStatus>job status: 0-pending, 1-running,
2-completed(NUMERIC)</jobStatus></setJob></request><?xml version="1.0" encoding="UTF-8" ?><response><setJob><jobId>job identifier (NUMERIC)</jobId><jobStatus>job status: 0-pending, 1-running,
2-completed(NUMERIC)</jobStatus></setJob></response><?xml version="1.0" encoding="UTF-8" ?><response><setJob><error>error message</error></setJob></response>
<?xml version="1.0" encoding="UTF-8" ?><request><recover><serviceId>service identifier
(NUMERIC)</serviceId></recover></request><?xml version="1.0" encoding="UTF-8" ?><response><recover><status>1 (NUMERIC)</status><serviceId>service identifier
(NUMERIC)</serviceId></recover></response><?xml version="1.0" encoding="UTF-8" ?><response><recover><status>0 (NUMERIC)</status><serviceId>service identifier
(NUMERIC)</serviceId></recover></response>
<?xml version="1.0" encoding="UTF-8" ?><exception>exception message</exception>
If user has not been authorized submit request, the following information is
being returned to the caller:
<?xml version="1.0" encoding="UTF-8" ?>
<response>
<command>
<error><![CDATA[User not authorized to perform
operation.]]></error>
</command>
</response>
| Constructor Summary | |
|---|---|
HarvesterServlet()
Deprecated. |
|
| Method Summary | |
|---|---|
protected void |
execute(HttpServletRequest request,
HttpServletResponse response,
RequestContext context)
Deprecated. Process the HTTP request request. |
| Methods inherited from class com.esri.gpt.framework.context.BaseServlet |
|---|
authenticate, doGet, doPost, getCredentials, getLogger, getParameterValue, getRealm, readInputCharacters, writeCharacterResponse, writeHtmlResponse, writeXmlResponse |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HarvesterServlet()
| Method Detail |
|---|
protected void execute(HttpServletRequest request,
HttpServletResponse response,
RequestContext context)
throws IOException,
CredentialsDeniedException,
NotAuthorizedException
execute in class BaseServletrequest - HTTP request.response - HTTP response.context - request context
ServletException - if error invoking command.
IOException - if error writing to the buffer.
CredentialsDeniedException - if user not authenticated
NotAuthorizedException - if user not authorized
|
ArcGIS Server Geoportal extension 10
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||