Package com.aspectran.web.servlet
Class WebActivityServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.aspectran.web.servlet.WebActivityServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
- Direct Known Subclasses:
SpecificIPAllowedWebActivityServlet
public class WebActivityServlet
extends jakarta.servlet.http.HttpServlet
implements jakarta.servlet.Servlet
The Class WebActivityServlet.
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
protected void
doHead
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) If the WebConfig parameterlegacyHeadHandling
is set to "true", thisdoHead
method is called to remove the response body.void
init()
void
service
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doOptions, doPost, doPut, doTrace, getLastModified, init, service
Methods inherited from class jakarta.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.servlet.Servlet
getServletConfig, getServletInfo, init, service
-
Constructor Details
-
WebActivityServlet
public WebActivityServlet()Instantiates a new WebActivityServlet.
-
-
Method Details
-
init
public void init() throws jakarta.servlet.ServletException- Overrides:
init
in classjakarta.servlet.GenericServlet
- Throws:
jakarta.servlet.ServletException
-
service
public void service(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws IOException - Overrides:
service
in classjakarta.servlet.http.HttpServlet
- Throws:
IOException
-
doHead
protected void doHead(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws IOException If the WebConfig parameterlegacyHeadHandling
is set to "true", thisdoHead
method is called to remove the response body. As a side note, the legacy head handling mode is being deprecated because it may not be accurate in producing the same head as returned by the GET method.- Overrides:
doHead
in classjakarta.servlet.http.HttpServlet
- Throws:
IOException
-
destroy
public void destroy()- Specified by:
destroy
in interfacejakarta.servlet.Servlet
- Overrides:
destroy
in classjakarta.servlet.GenericServlet
-