Package com.netcracker.profiler.servlet
Class HttpServletBase<Mediator,Context>
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.netcracker.profiler.servlet.HttpServletBase<Mediator,Context>
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
- Direct Known Subclasses:
TreeFetcher
public abstract class HttpServletBase<Mediator,Context>
extends jakarta.servlet.http.HttpServlet
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Contextprotected com.netcracker.profiler.io.exceptions.ErrorSupervisorprotected voiddoGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) protected voiddoPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) protected abstract MediatorgetMediator(Context context, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, com.netcracker.profiler.output.layout.Layout layout) protected abstract RunnableidentifyAction(Context context, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, Mediator mediator) protected abstract com.netcracker.profiler.output.layout.LayoutidentifyLayout(Context context, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) protected longMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPatch, doPut, doTrace, getLastModified, init, isSensitiveHeader, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
HttpServletBase
public HttpServletBase()
-
-
Method Details
-
parseLong
protected long parseLong(jakarta.servlet.http.HttpServletRequest request, String paramName, long defaultValue) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
doGet
protected void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Overrides:
doGetin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
doPost
protected void doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Overrides:
doPostin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
createSupervisor
protected com.netcracker.profiler.io.exceptions.ErrorSupervisor createSupervisor() -
createContext
-
identifyLayout
protected abstract com.netcracker.profiler.output.layout.Layout identifyLayout(Context context, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) -
getMediator
-
identifyAction
-