    All Examples  This Package

# Class examples.servlets.SnoopServlet

    examples.servlets.SnoopServlet

public class SnoopServlet

Snoop servlet. This servlet simply echos back the request line and headers that were sent by the client, plus any HTTPS information which is accessible.

1. Compile the servlet as described in the document for this package.
2. Register the servlet in the `weblogic.properties` file by adding (or uncommenting) the following lines:

           weblogic.httpd.register.snoop=examples.servlets.SnoopServlet

3. Call the servlet from a web browser using the URL:

           http://wlhost:port/snoop

   where wlhost is the host name of your server and port is the http listen port. For example, use this URL if you are running the default setup on a local machine:

           http://localhost:7001/snoop

   ##

   SnoopServlet()

   ##

   service(HttpServletRequest, HttpServletResponse)

   ##

   SnoopServlet

        public SnoopServlet()

   ##

   service

        public void service(HttpServletRequest req,
                            HttpServletResponse res) throws ServletException, IOException

       All Examples  This Package