public class CleverServlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
static ThreadLocal<javax.servlet.http.HttpServletRequest> |
CURRENT_REQUEST |
static ThreadLocal<javax.servlet.http.HttpServletResponse> |
CURRENT_RESPONSE |
static ThreadLocal<String> |
REGISTERED_ORIGINS |
| Constructor and Description |
|---|
CleverServlet() |
| Modifier and Type | Method and Description |
|---|---|
String |
getServletName() |
protected Map<String,byte[]> |
readParts(javax.servlet.http.HttpServletRequest req) |
protected void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
void |
setHolder(org.eclipse.jetty.servlet.ServletHolder holder) |
void |
setMultipartConfig(javax.servlet.MultipartConfigElement config) |
protected void |
writeJSONError(String message,
javax.servlet.ServletOutputStream output) |
protected void |
writeJsonResponseError(String error,
OutputStream output) |
protected void |
writeJSONResult(Object result,
javax.servlet.ServletOutputStream output) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicepublic static ThreadLocal<String> REGISTERED_ORIGINS
public static ThreadLocal<javax.servlet.http.HttpServletRequest> CURRENT_REQUEST
public static ThreadLocal<javax.servlet.http.HttpServletResponse> CURRENT_RESPONSE
public String getServletName()
getServletName in interface javax.servlet.ServletConfiggetServletName in class javax.servlet.GenericServletprotected void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
service in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionpublic void setHolder(org.eclipse.jetty.servlet.ServletHolder holder)
public void setMultipartConfig(javax.servlet.MultipartConfigElement config)
protected void writeJSONError(String message, javax.servlet.ServletOutputStream output) throws IOException
IOExceptionprotected void writeJSONResult(Object result, javax.servlet.ServletOutputStream output) throws IOException
IOExceptionprotected Map<String,byte[]> readParts(javax.servlet.http.HttpServletRequest req) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionprotected void writeJsonResponseError(String error, OutputStream output) throws IOException
IOExceptionCopyright © 2020 Prompto. All rights reserved.