Esri Geoportal Server
1.0

com.esri.gpt.control.rest
Class RestServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.esri.gpt.framework.context.BaseServlet
              extended by com.esri.gpt.control.rest.RestServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class RestServlet
extends BaseServlet

REST servlet. Provides REST functionality.

See Also:
Serialized Form

Constructor Summary
RestServlet()
          Creates instance of the servlet.
 
Method Summary
protected  void execute(HttpServletRequest request, HttpServletResponse response, RequestContext context)
          Process the HTTP request request.
 void init(ServletConfig config)
          Initializes servlet.
 
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, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestServlet

public RestServlet()
Creates instance of the servlet.

Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Initializes servlet.

Specified by:
init in interface Servlet
Overrides:
init in class GenericServlet
Parameters:
config - servlet configuration
Throws:
ServletException - if error initializing servlet

execute

protected void execute(HttpServletRequest request,
                       HttpServletResponse response,
                       RequestContext context)
                throws ServletException,
                       IOException
Process the HTTP request request.

Specified by:
execute in class BaseServlet
Parameters:
request - HTTP request.
response - HTTP response.
context - request context
Throws:
ServletException - if error invoking command.
IOException - if error writing to the buffer.

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.