public class TapTemplate extends java.lang.Object implements TapOperations
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.net.URI> |
resources
Holds discovered URLs of the API.
|
protected org.springframework.web.client.RestTemplate |
restTemplate
A template used for http interaction.
|
Modifier and Type | Method and Description |
---|---|
TapDefinitionResource |
createTap(java.lang.String name,
java.lang.String definition,
boolean deploy)
Create a new Tap.
|
void |
destroyTap(java.lang.String name)
Destroy an existing tap
|
TapDefinitionResource.Page |
list()
Returns a
List of TapDefinitionResource s. |
protected org.springframework.web.client.RestTemplate restTemplate
protected java.util.Map<java.lang.String,java.net.URI> resources
public TapDefinitionResource createTap(java.lang.String name, java.lang.String definition, boolean deploy)
TapOperations
createTap
in interface TapOperations
name
- the name to give to the tapdefinition
- the tap definition, expressed in XD DSLdeploy
- whether to deploy the tap immediatelypublic TapDefinitionResource.Page list()
List
of TapDefinitionResource
s.list
in interface TapOperations
public void destroyTap(java.lang.String name)
TapOperations
destroyTap
in interface TapOperations