public class RestServlet
extends javax.servlet.http.HttpServlet
Constructor and Description |
---|
RestServlet() |
Modifier and Type | Method and Description |
---|---|
void |
init()
Reads configuration from /serfj.properties.
|
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Parses the request to get information about what controller is trying to call, then
invoke the action from that controller (if any), and finally gives an answer.
Basically it only dispatchs the request to a controller. |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
service
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
Copyright © 2012 ElPaso Software. All Rights Reserved.