Package com.exedio.cops
Class CopsServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.exedio.cops.CopsServlet
- All Implemented Interfaces:
Serializable,Servlet,ServletConfig
- Direct Known Subclasses:
PropertiesServlet
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.static final StringDeprecated.UseCharsetName.UTF8instead -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voiddoGet(HttpServletRequest request, HttpServletResponse response) protected final voiddoPost(HttpServletRequest request, HttpServletResponse response) protected abstract voiddoRequest(HttpServletRequest request, HttpServletResponse response) static final StringgetAuthentication(HttpServletRequest request) protected StringReturns the path all resources are available under.voidinit(ServletConfig config) final voidprintException(PrintStream out, Exception exception) final voidprintException(StringBuilder out, Exception exception) static final Stringreport(HttpServletRequest request) final StringreportException(Exception exception) Deprecated.UsereportException(HttpServletRequest, Exception)instead.final StringreportException(HttpServletRequest request, Exception exception) Returns the id under with the exception has been reported in the log.protected booleanOverwrite this method (and return true) if your CopsServlet is not mounted at ".../*" and you know what you're doing.Methods 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, log, log
-
Field Details
-
ENCODING
Deprecated.UseCharsetName.UTF8instead- See Also:
-
UTF8
Deprecated.UseCharsetName.UTF8instead- See Also:
-
-
Constructor Details
-
CopsServlet
protected CopsServlet()
-
-
Method Details
-
init
- Specified by:
initin interfaceServlet- Overrides:
initin classGenericServlet- Throws:
ServletException
-
suppressPathCheck
protected boolean suppressPathCheck()Overwrite this method (and return true) if your CopsServlet is not mounted at ".../*" and you know what you're doing. -
getResourcesRootPath
Returns the path all resources are available under. The default implementation returns "resources". Must not return null or empty string. -
doGet
protected final void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException - Overrides:
doGetin classHttpServlet- Throws:
ServletExceptionIOException
-
doPost
protected final void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException - Overrides:
doPostin classHttpServlet- Throws:
ServletExceptionIOException
-
doRequest
protected abstract void doRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException - Throws:
ServletExceptionIOException
-
getAuthentication
-
printException
-
printException
-
reportException
Returns the id under with the exception has been reported in the log. -
report
-
reportException
Deprecated.UsereportException(HttpServletRequest, Exception)instead.
-
CharsetName.UTF8instead