public abstract class ApplicationResource extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CLIENT_ID |
private static int |
CLUSTER_CONTEXT_HEADER_VALUE_MAX_BYTES |
static String |
CLUSTER_CONTEXT_HTTP_HEADER |
private static int |
HEADER_BUFFER_SIZE |
private com.sun.jersey.api.core.HttpContext |
httpContext |
private javax.servlet.http.HttpServletRequest |
httpServletRequest |
private static org.slf4j.Logger |
logger |
static String |
PROXIED_ENTITIES_CHAIN_HTTP_HEADER |
static String |
PROXIED_ENTITY_USER_DETAILS_HTTP_HEADER |
static String |
PROXY_CONTEXT_PATH_HTTP_HEADER |
static String |
PROXY_HOST_HTTP_HEADER |
static String |
PROXY_PORT_HTTP_HEADER |
static String |
PROXY_SCHEME_HTTP_HEADER |
private javax.ws.rs.core.UriInfo |
uriInfo |
static String |
VERSION |
| Constructor and Description |
|---|
ApplicationResource() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.ws.rs.core.Response.ResponseBuilder |
clusterContext(javax.ws.rs.core.Response.ResponseBuilder response)
If the application is operating as a node, then this method adds the
cluster context information to the response using the response header
'X-CLUSTER_CONTEXT'.
|
private void |
createBatchedActionLogStatement(StringBuilder strb,
Collection<Action> actions) |
protected javax.ws.rs.core.Response.ResponseBuilder |
generateContinueResponse()
Generates a 150 Node Continue response to be used within the cluster
request handshake.
|
protected javax.ws.rs.core.Response.ResponseBuilder |
generateCreatedResponse(URI uri,
Object entity)
Generates a 201 Created response with the specified content.
|
protected javax.ws.rs.core.Response.ResponseBuilder |
generateOkResponse()
Generates an Ok response with no content.
|
protected javax.ws.rs.core.Response.ResponseBuilder |
generateOkResponse(Object entity)
Generates an Ok response with the specified content.
|
protected String |
generateResourceUri(String... path)
Generate a resource uri based off of the specified parameters.
|
protected URI |
getAbsolutePath() |
protected ClusterContext |
getClusterContextFromRequest() |
protected Map<String,String> |
getHeaders() |
protected Map<String,String> |
getHeaders(Map<String,String> overriddenHeaders) |
protected javax.ws.rs.core.MultivaluedMap<String,String> |
getRequestParameters() |
protected javax.ws.rs.core.MultivaluedMap<String,String> |
getRequestParameters(boolean forceClientId) |
protected javax.ws.rs.core.Response.ResponseBuilder |
noCache(javax.ws.rs.core.Response.ResponseBuilder response)
Edit the response headers to indicating no caching.
|
protected Entity |
updateClientId(Entity entity) |
public static final String VERSION
public static final String CLIENT_ID
public static final String CLUSTER_CONTEXT_HTTP_HEADER
public static final String PROXY_SCHEME_HTTP_HEADER
public static final String PROXY_HOST_HTTP_HEADER
public static final String PROXY_PORT_HTTP_HEADER
public static final String PROXY_CONTEXT_PATH_HTTP_HEADER
public static final String PROXIED_ENTITIES_CHAIN_HTTP_HEADER
public static final String PROXIED_ENTITY_USER_DETAILS_HTTP_HEADER
private static final int HEADER_BUFFER_SIZE
private static final int CLUSTER_CONTEXT_HEADER_VALUE_MAX_BYTES
private static final org.slf4j.Logger logger
@Context private javax.servlet.http.HttpServletRequest httpServletRequest
@Context private javax.ws.rs.core.UriInfo uriInfo
@Context private com.sun.jersey.api.core.HttpContext httpContext
protected String generateResourceUri(String... path)
path - protected javax.ws.rs.core.Response.ResponseBuilder noCache(javax.ws.rs.core.Response.ResponseBuilder response)
response - protected javax.ws.rs.core.Response.ResponseBuilder clusterContext(javax.ws.rs.core.Response.ResponseBuilder response)
response - protected ClusterContext getClusterContextFromRequest()
protected javax.ws.rs.core.Response.ResponseBuilder generateOkResponse()
protected javax.ws.rs.core.Response.ResponseBuilder generateOkResponse(Object entity)
entity - The entityprotected javax.ws.rs.core.Response.ResponseBuilder generateCreatedResponse(URI uri, Object entity)
uri - The URIjsonResponse - The contentprotected javax.ws.rs.core.Response.ResponseBuilder generateContinueResponse()
protected URI getAbsolutePath()
protected javax.ws.rs.core.MultivaluedMap<String,String> getRequestParameters()
protected javax.ws.rs.core.MultivaluedMap<String,String> getRequestParameters(boolean forceClientId)
private void createBatchedActionLogStatement(StringBuilder strb, Collection<Action> actions)
Copyright © 2015 Apache NiFi (incubating). All rights reserved.