@groovy.transform.CompileStatic class MoquiServlet extends javax.servlet.http.HttpServlet
Modifiers | Name | Description |
---|---|---|
protected static org.slf4j.Logger |
logger |
Constructor and description |
---|
MoquiServlet
() |
Type Params | Return Type | Name and description |
---|---|---|
|
static boolean |
handleCors(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String webappName, ExecutionContextFactoryImpl ecfi) Handles CORS headers and if this a CORS preflight request or the origin is not allowed sends the proper response and returns true (caller should then not respond, ie just quit via return) |
|
void |
init(javax.servlet.ServletConfig config) |
|
static boolean |
isBrokenPipe(java.lang.Throwable throwable) |
|
static void |
sendErrorResponse(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, int errorCode, java.lang.String errorType, java.lang.String message, java.lang.Throwable origThrowable, ExecutionContextFactoryImpl ecfi, java.lang.String moquiWebappName, ScreenRenderImpl sri) |
|
void |
service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) |
Methods inherited from class | Name |
---|---|
class javax.servlet.http.HttpServlet |
javax.servlet.http.HttpServlet#service(javax.servlet.ServletRequest, javax.servlet.ServletResponse), javax.servlet.http.HttpServlet#log(java.lang.String, java.lang.Throwable), javax.servlet.http.HttpServlet#log(java.lang.String), javax.servlet.http.HttpServlet#init(javax.servlet.ServletConfig), javax.servlet.http.HttpServlet#init(), javax.servlet.http.HttpServlet#destroy(), javax.servlet.http.HttpServlet#getInitParameter(java.lang.String), javax.servlet.http.HttpServlet#getInitParameterNames(), javax.servlet.http.HttpServlet#getServletContext(), javax.servlet.http.HttpServlet#getServletConfig(), javax.servlet.http.HttpServlet#getServletInfo(), javax.servlet.http.HttpServlet#getServletName(), javax.servlet.http.HttpServlet#wait(long), javax.servlet.http.HttpServlet#wait(long, int), javax.servlet.http.HttpServlet#wait(), javax.servlet.http.HttpServlet#equals(java.lang.Object), javax.servlet.http.HttpServlet#toString(), javax.servlet.http.HttpServlet#hashCode(), javax.servlet.http.HttpServlet#getClass(), javax.servlet.http.HttpServlet#notify(), javax.servlet.http.HttpServlet#notifyAll() |
Handles CORS headers and if this a CORS preflight request or the origin is not allowed sends the proper response and returns true (caller should then not respond, ie just quit via return)