Class RESTClient
java.lang.Object
com.aeontronix.enhancedmule.tools.util.restclient.RESTClient
- All Implemented Interfaces:
Closeable,AutoCloseable
public class RESTClient extends Object implements Closeable, AutoCloseable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classRESTClient.AbstractMethodBuilderclassRESTClient.AuthenticationFilterclassRESTClient.GetBuilderstatic interfaceRESTClient.HttpOperationBuilderclassRESTClient.PostBuilderstatic interfaceRESTClient.ResponseHandler -
Constructor Summary
Constructors Constructor Description RESTClient()RESTClient(RESTClientJsonParser jsonParser, org.apache.http.HttpHost proxyHost, String proxyUsername, String proxyPassword) -
Method Summary
Modifier and Type Method Description voidaddAuthProvider(RESTAuthenticationProvider provider)voidclose()RESTClient.GetBuilderget(String path)StringgetBaseUrl()RESTClient.PostBuilderpostJson(String path, Object entity)voidsetBaseUrl(String baseUrl)voidsetProxy(org.apache.http.HttpHost proxyHost, String proxyUsername, String proxyPassword)
-
Constructor Details
-
RESTClient
public RESTClient() -
RESTClient
public RESTClient(RESTClientJsonParser jsonParser, org.apache.http.HttpHost proxyHost, String proxyUsername, String proxyPassword)
-
-
Method Details
-
addAuthProvider
-
setProxy
-
get
- Throws:
RESTException
-
postJson
-
getBaseUrl
-
setBaseUrl
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-