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