public class VitroHttpServlet extends javax.servlet.http.HttpServlet implements MultipartRequestWrapper.ParsingStrategy
| Modifier and Type | Class and Description |
|---|---|
protected class |
VitroHttpServlet.PickListSorter |
| Modifier and Type | Field and Description |
|---|---|
static String |
HTML_MIMETYPE |
static String |
JSON_LD_MIMETYPE |
static String |
JSON_MIMETYPE |
static String |
N3_MIMETYPE |
protected static DateFormat |
publicDateFormat |
static String |
RDFXML_MIMETYPE |
static String |
TTL_MIMETYPE |
static String |
XHTML_MIMETYPE |
| Constructor and Description |
|---|
VitroHttpServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
doGet does nothing.
|
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
doPost does the same thing as the doGet method
|
protected void |
dumpRequestParameters(javax.servlet.http.HttpServletRequest req)
A child class may call this if logging is set to debug level.
|
protected boolean |
isAuthorizedToDisplayPage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
AuthorizationRequest actions)
Don't display a page that the user isn't authorized to see.
|
long |
maximumMultipartFileSize()
Override this to change the maximum size of uploaded files in multipart
requests.
|
static void |
redirectToInsufficientAuthorizationPage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Logged in, but with insufficient authorization.
|
static void |
redirectToLoginPage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Not logged in.
|
static void |
redirectUnauthorizedRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
service(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse resp) |
protected void |
sortForPickList(List<? extends ResourceBean> beans,
VitroRequest vreq) |
boolean |
stashFileSizeException()
Override this to change the way that exceptions are handled when parsing
a multipart request.
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, serviceprotected static DateFormat publicDateFormat
public static final String XHTML_MIMETYPE
public static final String HTML_MIMETYPE
public static final String RDFXML_MIMETYPE
public static final String JSON_MIMETYPE
public static final String JSON_LD_MIMETYPE
public static final String N3_MIMETYPE
public static final String TTL_MIMETYPE
public final void service(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse resp)
throws javax.servlet.ServletException,
IOException
service in interface javax.servlet.Servletservice in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionpublic long maximumMultipartFileSize()
maximumMultipartFileSize in interface MultipartRequestWrapper.ParsingStrategypublic boolean stashFileSizeException()
stashFileSizeException in interface MultipartRequestWrapper.ParsingStrategyprotected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected boolean isAuthorizedToDisplayPage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
AuthorizationRequest actions)
actions - the combination of RequestedActions that must be authorized.public static void redirectUnauthorizedRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
public static void redirectToInsufficientAuthorizationPage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
public static void redirectToLoginPage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
protected void sortForPickList(List<? extends ResourceBean> beans, VitroRequest vreq)
protected void dumpRequestParameters(javax.servlet.http.HttpServletRequest req)
Copyright © 2021. All rights reserved.