public abstract class HttpServletWrapper
extends javax.servlet.http.HttpServlet
New servlets may inherit from this class and overload init(javax.servlet.ServletConfig config)
to setup the ItsNat infrastructure (default properties, register templates etc).
This class creates an ItsNatHttpServlet
wrapping this servlet and forwards
request/response calls to the ItsNatHttpServlet
. Standard request and response objects
are wrapped in HttpServletRequest
and HttpServletResponse
Modifier and Type | Field and Description |
---|---|
protected ItsNatHttpServlet |
itsNatServlet |
Constructor and Description |
---|
HttpServletWrapper()
Creates a new instance of HttpServletWrapper
|
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles the HTTP
GET method. |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles the HTTP
POST method. |
ItsNatHttpServlet |
getItsNatHttpServlet()
Returns the ItsNat servlet wrapping this servlet.
|
java.lang.String |
getServletInfo()
Returns a short description of the servlet.
|
void |
init(javax.servlet.ServletConfig config)
Initializes the ItsNat servlet wrapping this servlet.
|
protected void |
processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
protected ItsNatHttpServlet itsNatServlet
public HttpServletWrapper()
public ItsNatHttpServlet getItsNatHttpServlet()
ItsNatHttpServlet.getHttpServlet()
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
protected void processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
request
- servlet request object.response
- servlet response object.javax.servlet.ServletException
java.io.IOException
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
GET
method.doGet
in class javax.servlet.http.HttpServlet
request
- servlet requestresponse
- servlet responsejavax.servlet.ServletException
java.io.IOException
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
POST
method.doPost
in class javax.servlet.http.HttpServlet
request
- servlet requestresponse
- servlet responsejavax.servlet.ServletException
java.io.IOException
public java.lang.String getServletInfo()
getServletInfo
in interface javax.servlet.Servlet
getServletInfo
in class javax.servlet.GenericServlet
Copyright © 2007 Innowhere Software Services S.L. All Rights Reserved.