Class RemoteApiServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- com.google.apphosting.utils.remoteapi.RemoteApiServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class RemoteApiServlet extends javax.servlet.http.HttpServletRemote API servlet handler.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRemoteApiServlet.UnknownPythonServerExceptionException for unknown errors from a Python remote_api handler.
-
Constructor Summary
Constructors Constructor Description RemoteApiServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)Serve GET requests with a YAML encoding of the app-id and a validation token.voiddoPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)Serve POST requests by forwarding calls to ApiProxy.
-
-
-
Method Detail
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws IOExceptionServe GET requests with a YAML encoding of the app-id and a validation token.- Throws:
IOException
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws IOExceptionServe POST requests by forwarding calls to ApiProxy.- Throws:
IOException
-
-