All Packages Class Hierarchy This Package Previous Next Index
Class netbula.ORPC.RpcProxyServlet
java.lang.Object
|
+----javax.servlet.GenericServlet
|
+----javax.servlet.http.HttpServlet
|
+----netbula.ORPC.RpcProxyServlet
- public class RpcProxyServlet
- extends HttpServlet
A http servlet function as a generic RPC gataway for a http client to call another RPC
server accessible by the servlet.
To use this servlet, create a ClientHTTP object with the servlet's URL.
See the http/ sample program for details.
-
RpcProxyServlet()
-
-
doGet(HttpServletRequest, HttpServletResponse)
-
-
doPost(HttpServletRequest, HttpServletResponse)
-
-
getServletInfo()
-
-
translateServerName(String)
- Give the Servlet a chance to translate the RPC server host name.
-
validate(HttpServletRequest, String, int, int)
- Validate the RPC request, return true if OK.
RpcProxyServlet
public RpcProxyServlet()
getServletInfo
public String getServletInfo()
- Overrides:
- getServletInfo in class GenericServlet
doGet
public void doGet(HttpServletRequest req,
HttpServletResponse resp) throws ServletException, IOException
- Overrides:
- doGet in class HttpServlet
validate
public boolean validate(HttpServletRequest req,
String host,
int prog,
int ver)
- Validate the RPC request, return true if OK.
translateServerName
public String translateServerName(String specified_host)
- Give the Servlet a chance to translate the RPC server host name.
Override this function to do your hostname translation.
Default simply returns the hostname specified in the ClientHTTP.setServer() function
sent from client.
doPost
public void doPost(HttpServletRequest req,
HttpServletResponse resp) throws ServletException, IOException
- Overrides:
- doPost in class HttpServlet
All Packages Class Hierarchy This Package Previous Next Index