All Examples  This Package

Class 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 file by adding (or uncommenting) the following lines:
  3. Call the servlet from a web browser using the URL:
    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:

    Constructor Index

     o SnoopServlet()

    Method Index

     o service(HttpServletRequest, HttpServletResponse)


     o SnoopServlet
     public SnoopServlet()


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

    All Examples  This Package