public class FunnelResource extends ApplicationResource
ApplicationResource.ReplicationTarget, ApplicationResource.ResponseCreator
CLIENT_ID, FORWARDED_CONTEXT_HTTP_HEADER, FORWARDED_HOST_HTTP_HEADER, FORWARDED_PORT_HTTP_HEADER, FORWARDED_PROTO_HTTP_HEADER, NODEWISE, NON_GUARANTEED_ENDPOINT, properties, PROXY_CONTEXT_PATH_HTTP_HEADER, PROXY_HOST_HTTP_HEADER, PROXY_PORT_HTTP_HEADER, PROXY_SCHEME_HTTP_HEADER, VERSION
Constructor and Description |
---|
FunnelResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getFunnel(java.lang.String id)
Retrieves the specified funnel.
|
java.util.Set<FunnelEntity> |
populateRemainingFunnelEntitiesContent(java.util.Set<FunnelEntity> funnelEntities)
Populates the uri for the specified funnels.
|
FunnelEntity |
populateRemainingFunnelEntityContent(FunnelEntity funnelEntity)
Populates the uri for the specified funnel.
|
javax.ws.rs.core.Response |
removeFunnel(javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId,
java.lang.String id)
Removes the specified funnel.
|
void |
setAuthorizer(Authorizer authorizer) |
void |
setServiceFacade(NiFiServiceFacade serviceFacade) |
javax.ws.rs.core.Response |
updateFunnel(javax.servlet.http.HttpServletRequest httpServletRequest,
java.lang.String id,
FunnelEntity requestFunnelEntity)
Creates a new Funnel.
|
authorizeProcessGroup, authorizeSnippet, generateContinueResponse, generateCreatedResponse, generateNotAuthorizedResponse, generateOkResponse, generateOkResponse, generateResourceUri, generateUuid, getAbsolutePath, getClusterCoordinator, getClusterCoordinatorNode, getHeaders, getHeaders, getIdGenerationSeed, getProperties, getReplicationTarget, getRequestParameters, getRequestReplicator, getRequestUri, getRevision, getRevision, isCancellationPhase, isExecutionPhase, isTwoPhaseRequest, isValidationPhase, negotiateTransportProtocolVersion, noCache, replicate, replicate, replicate, replicate, replicate, replicate, replicate, replicate, replicate, replicateNodeResponse, replicateNodeResponse, replicateNodeResponse, replicateToCoordinator, setClusterCoordinator, setCommonHeaders, setFlowController, setProperties, setRequestReplicator, withWriteLock, withWriteLock, withWriteLock
public java.util.Set<FunnelEntity> populateRemainingFunnelEntitiesContent(java.util.Set<FunnelEntity> funnelEntities)
funnelEntities
- funnelspublic FunnelEntity populateRemainingFunnelEntityContent(FunnelEntity funnelEntity)
funnelEntity
- funnelpublic javax.ws.rs.core.Response getFunnel(java.lang.String id)
id
- The id of the funnel to retrievepublic javax.ws.rs.core.Response updateFunnel(@Context javax.servlet.http.HttpServletRequest httpServletRequest, java.lang.String id, FunnelEntity requestFunnelEntity)
httpServletRequest
- requestid
- The id of the funnel to update.requestFunnelEntity
- A funnelEntity.public javax.ws.rs.core.Response removeFunnel(@Context javax.servlet.http.HttpServletRequest httpServletRequest, LongParameter version, ClientIdParameter clientId, java.lang.String id)
httpServletRequest
- requestversion
- The revision is used to verify the client is working with
the latest version of the flow.clientId
- Optional client id. If the client id is not specified, a
new one will be generated. This value (whether specified or generated) is
included in the response.id
- The id of the funnel to remove.public void setServiceFacade(NiFiServiceFacade serviceFacade)
public void setAuthorizer(Authorizer authorizer)