public class RestServlet extends AbstractServlet
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTUALS_PARAM |
static String |
CONTENT_DISPOSITION_ATTACHMENT_FILENAME_PARAM
Signifies that the agent wishes the servlet to set the Content-Disposition on the
response with the value attachment.
|
static int |
DEFAULT_DEPTH |
static int |
DEFAULT_OVERSIZE |
static String |
DEPTH_PARAM |
static String |
EXTRACT_INITIAL_CONFIG_PARAM |
static String |
INCLUDE_SYS_CONTEXT_PARAM |
static String |
INHERITED_ACTUALS_PARAM |
static String |
OVERSIZE_PARAM |
static Set<String> |
RESERVED_PARAMS |
static int |
SC_UNPROCESSABLE_ENTITY |
static String |
SORT_PARAM |
CONTENT_DISPOSITION| Constructor and Description |
|---|
RestServlet() |
RestServlet(Class<? extends ConfiguredObject>... hierarchy) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doDeleteWithSubjectAndActor(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Performs the PUT action as the logged-in
Subject. |
protected void |
doGetWithSubjectAndActor(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Performs the GET action as the logged-in
Subject. |
protected void |
doPostWithSubjectAndActor(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Performs the POST action as the logged-in
Subject. |
protected void |
doPutWithSubjectAndActor(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Performs the PUT action as the logged-in
Subject. |
protected Collection<ConfiguredObject<?>> |
getObjects(javax.servlet.http.HttpServletRequest request) |
void |
init() |
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
doDelete, doGet, doPost, doPut, getAuthorisedSubject, getBroker, getManagementConfiguration, getOutputStream, getPathInfoElements, sendCachingHeadersOnResponse, sendError, sendJsonErrorResponse, sendJsonResponse, sendJsonResponse, writeTypedContentdoHead, doOptions, doTrace, getLastModified, servicepublic static final String DEPTH_PARAM
public static final String OVERSIZE_PARAM
public static final String ACTUALS_PARAM
public static final String SORT_PARAM
public static final String INCLUDE_SYS_CONTEXT_PARAM
public static final String INHERITED_ACTUALS_PARAM
public static final String EXTRACT_INITIAL_CONFIG_PARAM
public static final int SC_UNPROCESSABLE_ENTITY
public static final String CONTENT_DISPOSITION_ATTACHMENT_FILENAME_PARAM
public static final int DEFAULT_DEPTH
public static final int DEFAULT_OVERSIZE
public RestServlet()
public RestServlet(Class<? extends ConfiguredObject>... hierarchy)
public void init()
throws javax.servlet.ServletException
init in class AbstractServletjavax.servlet.ServletExceptionprotected Collection<ConfiguredObject<?>> getObjects(javax.servlet.http.HttpServletRequest request)
protected void doGetWithSubjectAndActor(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
AbstractServletSubject.
Subclasses commonly override this methoddoGetWithSubjectAndActor in class AbstractServletjavax.servlet.ServletExceptionIOExceptionprotected void doPutWithSubjectAndActor(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
AbstractServletSubject.
Subclasses commonly override this methoddoPutWithSubjectAndActor in class AbstractServletjavax.servlet.ServletExceptionIOExceptionprotected void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
service in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void doDeleteWithSubjectAndActor(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
AbstractServletSubject.
Subclasses commonly override this methoddoDeleteWithSubjectAndActor in class AbstractServletjavax.servlet.ServletExceptionIOExceptionprotected void doPostWithSubjectAndActor(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
AbstractServletSubject.
Subclasses commonly override this methoddoPostWithSubjectAndActor in class AbstractServletjavax.servlet.ServletExceptionIOExceptionCopyright © 2006–2015 The Apache Software Foundation. All rights reserved.