public abstract class AbstractRestDelegationService extends Object
| Constructor and Description |
|---|
AbstractRestDelegationService() |
| Modifier and Type | Method and Description |
|---|---|
protected InputStream |
executeHttpGet(String url)
Execute a Http GET
|
protected ContextEnvironment |
getEnvironment() |
protected org.codehaus.jackson.map.ObjectMapper |
getObjectMapper() |
protected String |
getServiceProviderContext(org.apache.shindig.auth.SecurityToken token) |
protected String |
getVirtualOrganizationContext(org.apache.shindig.auth.SecurityToken token,
CollectionOptions options) |
protected void |
logApiCall(org.apache.shindig.auth.SecurityToken token) |
void |
setEnvironment(ContextEnvironment environment) |
void |
setHttpClientProvider(HttpClientProvider httpClientProvider) |
void |
setLogService(nl.surfnet.coin.shared.log.ApiCallLogService logService) |
protected static final String UTF_8
protected org.codehaus.jackson.map.ObjectMapper getObjectMapper()
protected InputStream executeHttpGet(String url) throws org.apache.http.client.ClientProtocolException, IOException
url - the url to callorg.apache.http.client.ClientProtocolException - in case of Htpp protocol breachIOException - in case of IO errorpublic void setHttpClientProvider(HttpClientProvider httpClientProvider)
httpClientProvider - the httpClientProvider to setprotected ContextEnvironment getEnvironment()
public void setEnvironment(ContextEnvironment environment)
environment - the environment to setprotected String getVirtualOrganizationContext(org.apache.shindig.auth.SecurityToken token, CollectionOptions options)
protected String getServiceProviderContext(org.apache.shindig.auth.SecurityToken token)
protected void logApiCall(org.apache.shindig.auth.SecurityToken token)
public void setLogService(nl.surfnet.coin.shared.log.ApiCallLogService logService)
logService - the logService to setCopyright © 2007-2012. All Rights Reserved.