public class JerseyItemsClient extends AbstractJerseyClient implements ItemsClient
AbstractJerseyClient.NiFiRegistryAction<T>| Modifier and Type | Field and Description |
|---|---|
private javax.ws.rs.client.WebTarget |
itemsTarget |
| Constructor and Description |
|---|
JerseyItemsClient(javax.ws.rs.client.WebTarget baseTarget) |
JerseyItemsClient(javax.ws.rs.client.WebTarget baseTarget,
Map<String,String> headers) |
| Modifier and Type | Method and Description |
|---|---|
List<BucketItem> |
getAll()
Gets all bucket items in the registry.
|
List<BucketItem> |
getByBucket(String bucketId)
Gets all bucket items for the given bucket.
|
Fields |
getFields()
Gets the field info for bucket items.
|
executeAction, getHeaders, getIOExceptionCause, getRequestBuilderpublic JerseyItemsClient(javax.ws.rs.client.WebTarget baseTarget)
public List<BucketItem> getAll() throws NiFiRegistryException, IOException
ItemsClientgetAll in interface ItemsClientNiFiRegistryException - if an error is encountered other than IOExceptionIOException - if an I/O error is encounteredpublic List<BucketItem> getByBucket(String bucketId) throws NiFiRegistryException, IOException
ItemsClientgetByBucket in interface ItemsClientbucketId - the bucket idNiFiRegistryException - if an error is encountered other than IOExceptionIOException - if an I/O error is encounteredpublic Fields getFields() throws NiFiRegistryException, IOException
ItemsClientgetFields in interface ItemsClientNiFiRegistryException - if an error is encountered other than IOExceptionIOException - if an I/O error is encounteredCopyright © 2018 Apache NiFi Project. All rights reserved.