public class VitroApiServlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Class and Description |
|---|---|
protected static class |
VitroApiServlet.AuthException |
protected static class |
VitroApiServlet.BadParameterException |
| Constructor and Description |
|---|
VitroApiServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
confirmAuthorization(javax.servlet.http.HttpServletRequest req,
AuthorizationRequest requiredActions)
If they have not provided an email/password combo that will authorize
them for this action, throw an AuthException.
|
protected String |
parseAcceptHeader(javax.servlet.http.HttpServletRequest req,
Collection<String> availableTypes,
String defaultType) |
protected void |
sendShortResponse(int statusCode,
String message,
javax.servlet.http.HttpServletResponse resp) |
protected void |
sendShortResponse(int statusCode,
String message,
Throwable e,
javax.servlet.http.HttpServletResponse resp) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, serviceprotected void confirmAuthorization(javax.servlet.http.HttpServletRequest req,
AuthorizationRequest requiredActions)
throws VitroApiServlet.AuthException
VitroApiServlet.AuthExceptionprotected String parseAcceptHeader(javax.servlet.http.HttpServletRequest req, Collection<String> availableTypes, String defaultType) throws AcceptHeaderParsingException, NotAcceptableException
protected void sendShortResponse(int statusCode,
String message,
javax.servlet.http.HttpServletResponse resp)
throws IOException
IOExceptionprotected void sendShortResponse(int statusCode,
String message,
Throwable e,
javax.servlet.http.HttpServletResponse resp)
throws IOException
IOExceptionCopyright © 2016. All rights reserved.