org.jboss.invocation.http.servlet
Class NamingFactoryServlet

java.lang.Object
  extended byHttpServlet
      extended byorg.jboss.invocation.http.servlet.NamingFactoryServlet

public class NamingFactoryServlet
extends HttpServlet

Create a Naming interface proxy that uses HTTP to communicate with the JBoss JNDI naming service. Any request to this servlet receives a serialized object stream containing a MarshalledValue with the Naming proxy as its content. The proxy is obtained from the MBean named by the namingProxyMBean init-param.

See Also:
Serialized Form

Constructor Summary
NamingFactoryServlet()
           
 
Method Summary
 void destroy()
          Destroys the servlet.
protected  void doGet(HttpServletRequest request, HttpServletResponse response)
          Handles the HTTP GET method.
protected  void doPost(HttpServletRequest request, HttpServletResponse response)
          Handles the HTTP POST method.
 java.lang.String getServletInfo()
          Returns a short description of the servlet.
 void init(ServletConfig config)
          Initializes the servlet.
protected  void processRequest(HttpServletRequest request, HttpServletResponse response)
          Return a Naming service proxy for any GET/POST made against this servlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamingFactoryServlet

public NamingFactoryServlet()
Method Detail

init

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

Throws:
ServletException

destroy

public void destroy()
Destroys the servlet.


getServletInfo

public java.lang.String getServletInfo()
Returns a short description of the servlet.


processRequest

protected void processRequest(HttpServletRequest request,
                              HttpServletResponse response)
                       throws ServletException,
                              java.io.IOException
Return a Naming service proxy for any GET/POST made against this servlet

Parameters:
response - servlet response
Throws:
ServletException
java.io.IOException

doGet

protected void doGet(HttpServletRequest request,
                     HttpServletResponse response)
              throws ServletException,
                     java.io.IOException
Handles the HTTP GET method.

Parameters:
request - servlet request
response - servlet response
Throws:
ServletException
java.io.IOException

doPost

protected void doPost(HttpServletRequest request,
                      HttpServletResponse response)
               throws ServletException,
                      java.io.IOException
Handles the HTTP POST method.

Parameters:
request - servlet request
response - servlet response
Throws:
ServletException
java.io.IOException