public interface EntityHttpClient
BrooklynNode
entities.Modifier and Type | Method and Description |
---|---|
HttpToolResponse |
delete(java.lang.String path,
java.util.Map<java.lang.String,java.lang.String> headers)
Makes an HTTP DELETE to a Brooklyn node entity.
|
HttpToolResponse |
get(java.lang.String path)
Makes an HTTP GET to a Brooklyn node entity.
|
HttpTool.HttpClientBuilder |
getHttpClientForBrooklynNode() |
HttpToolResponse |
post(java.lang.String path,
java.util.Map<java.lang.String,java.lang.String> headers,
byte[] body)
Makes an HTTP POST to a Brooklyn node entity.
|
HttpToolResponse |
post(java.lang.String path,
java.util.Map<java.lang.String,java.lang.String> headers,
java.util.Map<java.lang.String,java.lang.String> formParams)
Makes an HTTP POST to a Brooklyn node entity.
|
HttpTool.HttpClientBuilder getHttpClientForBrooklynNode()
web console URI
at the
given entity, or null if the entity has no URI.HttpToolResponse get(java.lang.String path)
path
- Relative path to resource on server, e.g v1/catalogHttpToolResponse post(java.lang.String path, java.util.Map<java.lang.String,java.lang.String> headers, byte[] body)
path
- Relative path to resource on server, e.g v1/catalogbody
- byte array of serialized JSON to attach to the requestHttpToolResponse post(java.lang.String path, java.util.Map<java.lang.String,java.lang.String> headers, java.util.Map<java.lang.String,java.lang.String> formParams)
path
- Relative path to resource on server, e.g v1/catalogformParams
- The parameters to send in a x-www-form-urlencoded formatHttpToolResponse delete(java.lang.String path, java.util.Map<java.lang.String,java.lang.String> headers)
path
- Relative path to resource on server, e.g v1/catalog