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.


Constructor Index

 o RpcProxyServlet()

Method Index

 o doGet(HttpServletRequest, HttpServletResponse)
 o doPost(HttpServletRequest, HttpServletResponse)
 o getServletInfo()
 o translateServerName(String)
Give the Servlet a chance to translate the RPC server host name.
 o validate(HttpServletRequest, String, int, int)
Validate the RPC request, return true if OK.

Constructors

 o RpcProxyServlet
 public RpcProxyServlet()

Methods

 o getServletInfo
 public String getServletInfo()
Overrides:
getServletInfo in class GenericServlet
 o doGet
 public void doGet(HttpServletRequest req,
                   HttpServletResponse resp) throws ServletException, IOException
Overrides:
doGet in class HttpServlet
 o validate
 public boolean validate(HttpServletRequest req,
                         String host,
                         int prog,
                         int ver)
Validate the RPC request, return true if OK.

 o 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.

 o 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