Class JerseyParamContextClient
java.lang.Object
org.apache.nifi.toolkit.client.impl.AbstractJerseyClient
org.apache.nifi.toolkit.client.impl.JerseyParamContextClient
- All Implemented Interfaces:
ParamContextClient
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.nifi.toolkit.client.impl.AbstractJerseyClient
AbstractJerseyClient.NiFiAction<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final jakarta.ws.rs.client.WebTargetprivate final jakarta.ws.rs.client.WebTarget -
Constructor Summary
ConstructorsConstructorDescriptionJerseyParamContextClient(jakarta.ws.rs.client.WebTarget baseTarget) JerseyParamContextClient(jakarta.ws.rs.client.WebTarget baseTarget, RequestConfig requestConfig) -
Method Summary
Modifier and TypeMethodDescriptioncreateAsset(String contextId, String assetName, File file) createParamContext(ParameterContextEntity paramContext) deleteAsset(String contextId, String assetId) deleteAsset(String contextId, String assetId, boolean disconnectedNodeAcknowledged) deleteParamContext(String id, String version) deleteParamContext(String id, String version, boolean disconnectedNodeAcknowledged) deleteParamContextUpdateRequest(String contextId, String updateRequestId) getAssetContent(String contextId, String assetId, File outputDirectory) getParamContext(String id, boolean includeInheritedParameters) getParamContextUpdateRequest(String contextId, String updateRequestId) updateParamContext(ParameterContextEntity paramContext) Methods inherited from class org.apache.nifi.toolkit.client.impl.AbstractJerseyClient
executeAction, getContentDispositionFilename, getIOExceptionCause, getRequestBuilder, getRequestConfig
-
Field Details
-
flowTarget
private final jakarta.ws.rs.client.WebTarget flowTarget -
paramContextTarget
private final jakarta.ws.rs.client.WebTarget paramContextTarget
-
-
Constructor Details
-
JerseyParamContextClient
public JerseyParamContextClient(jakarta.ws.rs.client.WebTarget baseTarget) -
JerseyParamContextClient
public JerseyParamContextClient(jakarta.ws.rs.client.WebTarget baseTarget, RequestConfig requestConfig)
-
-
Method Details
-
getParamContexts
- Specified by:
getParamContextsin interfaceParamContextClient- Throws:
NiFiClientExceptionIOException
-
getParamContext
public ParameterContextEntity getParamContext(String id, boolean includeInheritedParameters) throws NiFiClientException, IOException - Specified by:
getParamContextin interfaceParamContextClient- Throws:
NiFiClientExceptionIOException
-
createParamContext
public ParameterContextEntity createParamContext(ParameterContextEntity paramContext) throws NiFiClientException, IOException - Specified by:
createParamContextin interfaceParamContextClient- Throws:
NiFiClientExceptionIOException
-
deleteParamContext
public ParameterContextEntity deleteParamContext(String id, String version) throws NiFiClientException, IOException - Specified by:
deleteParamContextin interfaceParamContextClient- Throws:
NiFiClientExceptionIOException
-
deleteParamContext
public ParameterContextEntity deleteParamContext(String id, String version, boolean disconnectedNodeAcknowledged) throws NiFiClientException, IOException - Specified by:
deleteParamContextin interfaceParamContextClient- Throws:
NiFiClientExceptionIOException
-
updateParamContext
public ParameterContextUpdateRequestEntity updateParamContext(ParameterContextEntity paramContext) throws NiFiClientException, IOException - Specified by:
updateParamContextin interfaceParamContextClient- Throws:
NiFiClientExceptionIOException
-
getParamContextUpdateRequest
public ParameterContextUpdateRequestEntity getParamContextUpdateRequest(String contextId, String updateRequestId) throws NiFiClientException, IOException - Specified by:
getParamContextUpdateRequestin interfaceParamContextClient- Throws:
NiFiClientExceptionIOException
-
deleteParamContextUpdateRequest
public ParameterContextUpdateRequestEntity deleteParamContextUpdateRequest(String contextId, String updateRequestId) throws NiFiClientException, IOException - Specified by:
deleteParamContextUpdateRequestin interfaceParamContextClient- Throws:
NiFiClientExceptionIOException
-
createAsset
public AssetEntity createAsset(String contextId, String assetName, File file) throws NiFiClientException, IOException - Specified by:
createAssetin interfaceParamContextClient- Throws:
NiFiClientExceptionIOException
-
getAssets
- Specified by:
getAssetsin interfaceParamContextClient- Throws:
NiFiClientExceptionIOException
-
getAssetContent
public Path getAssetContent(String contextId, String assetId, File outputDirectory) throws NiFiClientException, IOException - Specified by:
getAssetContentin interfaceParamContextClient- Throws:
NiFiClientExceptionIOException
-
deleteAsset
public AssetEntity deleteAsset(String contextId, String assetId) throws NiFiClientException, IOException - Specified by:
deleteAssetin interfaceParamContextClient- Throws:
NiFiClientExceptionIOException
-
deleteAsset
public AssetEntity deleteAsset(String contextId, String assetId, boolean disconnectedNodeAcknowledged) throws NiFiClientException, IOException - Specified by:
deleteAssetin interfaceParamContextClient- Throws:
NiFiClientExceptionIOException
-