public class EntityHttpClientImpl extends java.lang.Object implements EntityHttpClient
| 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. | 
public HttpTool.HttpClientBuilder getHttpClientForBrooklynNode()
getHttpClientForBrooklynNode in interface EntityHttpClientweb console URI at the
         given entity, or null if the entity has no URI.public HttpToolResponse get(java.lang.String path)
EntityHttpClientget in interface EntityHttpClientpath - Relative path to resource on server, e.g v1/catalogpublic HttpToolResponse post(java.lang.String path, java.util.Map<java.lang.String,java.lang.String> headers, byte[] body)
EntityHttpClientpost in interface EntityHttpClientpath - Relative path to resource on server, e.g v1/catalogbody - byte array of serialized JSON to attach to the requestpublic 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)
EntityHttpClientpost in interface EntityHttpClientpath - Relative path to resource on server, e.g v1/catalogformParams - The parameters to send in a x-www-form-urlencoded formatpublic HttpToolResponse delete(java.lang.String path, java.util.Map<java.lang.String,java.lang.String> headers)
EntityHttpClientdelete in interface EntityHttpClientpath - Relative path to resource on server, e.g v1/catalog