Package de.valtech.aecu.core.servlets
Class BaseServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- org.apache.sling.api.servlets.SlingSafeMethodsServlet
-
- org.apache.sling.api.servlets.SlingAllMethodsServlet
-
- de.valtech.aecu.core.servlets.BaseServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
- Direct Known Subclasses:
ExecutionServlet
public class BaseServlet extends org.apache.sling.api.servlets.SlingAllMethodsServlet- Author:
- Bryan Chavez
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringERROR_MESSAGE_INTERNAL_SERVER
-
Constructor Summary
Constructors Constructor Description BaseServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsendInternalServerError(org.apache.sling.api.SlingHttpServletResponse response)protected voidsetNoCache(javax.servlet.http.HttpServletResponse response)protected booleanvalidateParameter(String param)protected voidwriteResult(org.apache.sling.api.SlingHttpServletResponse response, String json)protected voidwriteResult(org.apache.sling.api.SlingHttpServletResponse response, String json, int status)-
Methods inherited from class org.apache.sling.api.servlets.SlingAllMethodsServlet
doDelete, doPost, doPut, getAllowedRequestMethods, isMethodValid, mayService
-
Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet
doGeneric, doGet, doHead, doOptions, doTrace, getServletInfo, handleMethodNotImplemented, service, service
-
-
-
-
Field Detail
-
ERROR_MESSAGE_INTERNAL_SERVER
protected static final String ERROR_MESSAGE_INTERNAL_SERVER
- See Also:
- Constant Field Values
-
-
Method Detail
-
setNoCache
protected void setNoCache(javax.servlet.http.HttpServletResponse response)
-
writeResult
protected void writeResult(org.apache.sling.api.SlingHttpServletResponse response, String json, int status) throws IOException- Throws:
IOException
-
writeResult
protected void writeResult(org.apache.sling.api.SlingHttpServletResponse response, String json) throws IOException- Throws:
IOException
-
sendInternalServerError
protected void sendInternalServerError(org.apache.sling.api.SlingHttpServletResponse response) throws IOException- Throws:
IOException
-
validateParameter
protected boolean validateParameter(String param)
-
-