public abstract class ProviderApiService extends Object
Modifier and Type | Field and Description |
---|---|
protected HttpParameters |
params
Helps the service to build URI to call tier API
|
Constructor and Description |
---|
ProviderApiService() |
Modifier and Type | Method and Description |
---|---|
protected String |
buildAbsoluteUri(String uri)
Build an URI.
|
protected String |
buildUri(String uri,
Map<String,? extends Object> parameters)
Build an URI with multiple parameters coming from a Map
|
protected String |
buildUri(String uri,
String key,
String value)
Build an URI with a parameter
|
protected abstract OAuthService |
getService() |
protected OAuthSession |
getSession() |
@Inject protected HttpParameters params
protected String buildUri(String uri, String key, String value)
uri
- base urlkey
- param namevalue
- param valueprotected String buildUri(String uri, Map<String,? extends Object> parameters)
uri
- base urlparameters
- map containing parametersprotected String buildAbsoluteUri(String uri)
uri
- to transform in absolute versionprotected abstract OAuthService getService()
protected OAuthSession getSession()
Copyright © 2012-2013. All Rights Reserved.