com.jproxy.proxy.servlet
Class TunnelServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bycom.jproxy.proxy.servlet.TunnelServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class TunnelServlet
extends javax.servlet.http.HttpServlet

This is the class used to support Tunneling thru HTTP on the server side. The class receives marshalled data and passes it to Invocator. After Invocator perform a request the result is marshalled back to client.

See Also:
Invocator, Serialized Form

Constructor Summary
TunnelServlet()
           
 
Method Summary
 void destroy()
          Destroy the servlet.
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          HttpServlet implementation.
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void init(javax.servlet.ServletConfig cfg)
          Initialize the servlet.
 void serviceTest(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TunnelServlet

public TunnelServlet()
Method Detail

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse resp)
           throws javax.servlet.ServletException,
                  java.io.IOException
HttpServlet implementation. The method is used to support Tunneling thru HTTP on the server side. It receives marshalled data and passes it to Invocator. After Invocator perform a request the result is marshalled back to client.

Parameters:
req - The request from the client
resp - The response from the servlet
Throws:
javax.servlet.ServletException
java.io.IOException

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws javax.servlet.ServletException,
                   java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException

init

public void init(javax.servlet.ServletConfig cfg)
          throws javax.servlet.ServletException

Initialize the servlet. This is called once when the servlet is loaded. It is guaranteed to complete before any requests are made to the servlet

Parameters:
cfg - Servlet configuration information
Throws:
javax.servlet.ServletException

destroy

public void destroy()

Destroy the servlet. This is called once when the servlet is unloaded.


serviceTest

public void serviceTest(javax.servlet.http.HttpServletRequest req,
                        javax.servlet.http.HttpServletResponse resp)
                 throws javax.servlet.ServletException,
                        java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException


Copyright © JProxy LLC. All Rights Reserved.