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 IRestService
OpenShiftException
public RestResponse request(Link link, ServiceParameter... serviceParameters) throws OpenShiftException
request
in interface IRestService
OpenShiftException
public RestResponse request(Link link, Map<String,Object> parameters) throws OpenShiftException
request
in interface IRestService
OpenShiftException
public String request(String href, HttpMethod httpMethod, Map<String,Object> parameters) throws OpenShiftException
request
in interface IRestService
OpenShiftException
public String request(Link link, String acceptedMediaType, ServiceParameter... serviceParameters) throws MalformedURLException, HttpClientException, SocketTimeoutException, OpenShiftException, UnsupportedEncodingException
request
in interface IRestService
MalformedURLException
HttpClientException
SocketTimeoutException
OpenShiftException
UnsupportedEncodingException
public void setProxySet(boolean proxySet)
setProxySet
in interface IRestService
public void setProxyHost(String proxyHost)
setProxyHost
in interface IRestService
public void setProxyPort(String proxyPort)
setProxyPort
in interface IRestService
public String getServiceUrl()
getServiceUrl
in interface IRestService
public String getPlatformUrl()
getPlatformUrl
in interface IRestService
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.