public class RestService extends Object implements IRestService
| Constructor and Description |
|---|
RestService(String baseUrl,
String clientId,
IHttpClient client) |
| Modifier and Type | Method and Description |
|---|---|
String |
getPlatformUrl() |
String |
getServiceUrl() |
RestResponse |
request(Link link) |
RestResponse |
request(Link link,
Map<String,Object> parameters) |
RestResponse |
request(Link link,
ServiceParameter... serviceParameters) |
String |
request(Link link,
String acceptedMediaType,
ServiceParameter... serviceParameters) |
String |
request(String href,
HttpMethod httpMethod,
Map<String,Object> parameters) |
void |
setProxyHost(String proxyHost) |
void |
setProxyPort(String proxyPort) |
void |
setProxySet(boolean proxySet) |
public RestService(String baseUrl, String clientId, IHttpClient client)
public RestResponse request(Link link) throws OpenShiftException
request in interface IRestServiceOpenShiftExceptionpublic RestResponse request(Link link, ServiceParameter... serviceParameters) throws OpenShiftException
request in interface IRestServiceOpenShiftExceptionpublic RestResponse request(Link link, Map<String,Object> parameters) throws OpenShiftException
request in interface IRestServiceOpenShiftExceptionpublic String request(String href, HttpMethod httpMethod, Map<String,Object> parameters) throws OpenShiftException
request in interface IRestServiceOpenShiftExceptionpublic String request(Link link, String acceptedMediaType, ServiceParameter... serviceParameters) throws MalformedURLException, HttpClientException, SocketTimeoutException, OpenShiftException, UnsupportedEncodingException
request in interface IRestServiceMalformedURLExceptionHttpClientExceptionSocketTimeoutExceptionOpenShiftExceptionUnsupportedEncodingExceptionpublic void setProxySet(boolean proxySet)
setProxySet in interface IRestServicepublic void setProxyHost(String proxyHost)
setProxyHost in interface IRestServicepublic void setProxyPort(String proxyPort)
setProxyPort in interface IRestServicepublic String getServiceUrl()
getServiceUrl in interface IRestServicepublic String getPlatformUrl()
getPlatformUrl in interface IRestServiceCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.