org.japtproxy
Class JaptProxyServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.japtproxy.JaptProxyServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class JaptProxyServlet
extends javax.servlet.http.HttpServlet

The JaptProxyServlet is the starting point for Japt-Proxy servlet. All requests are handled by this servlet.

Version:
$LastChangedRevision: 120 $
Author:
Oliver J. Siegmar
See Also:
Serialized Form

Constructor Summary
JaptProxyServlet()
           
 
Method Summary
 void destroy()
          Shut down Japt-Proxy.
protected  void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Check the requested data and forward the request to internal sender.
 void init()
          Initializes the Japt-Proxy configuration.
protected  void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Logs uncatched exceptions.
 void setJaptProxy(JaptProxy japtProxy)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaptProxyServlet

public JaptProxyServlet()
Method Detail

setJaptProxy

public void setJaptProxy(JaptProxy japtProxy)

init

public void init()
          throws javax.servlet.ServletException
Initializes the Japt-Proxy configuration.

Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException - is thrown if the initialization fails.

destroy

public void destroy()
Shut down Japt-Proxy.

Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class javax.servlet.GenericServlet

service

protected void service(javax.servlet.http.HttpServletRequest req,
                       javax.servlet.http.HttpServletResponse res)
                throws javax.servlet.ServletException,
                       java.io.IOException
Logs uncatched exceptions.

Overrides:
service in class javax.servlet.http.HttpServlet
Parameters:
req - the HttpServletRequest object
res - the HttpServletResponse object
Throws:
javax.servlet.ServletException
java.io.IOException

doGet

protected void doGet(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse res)
              throws javax.servlet.ServletException,
                     java.io.IOException
Check the requested data and forward the request to internal sender.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
req - the HttpServletRequest object
res - the HttpServletResponse object
Throws:
javax.servlet.ServletException
java.io.IOException


Copyright © 2006-2008. All Rights Reserved.