public class NuxeoOAuthRequest
extends org.apache.shindig.gadgets.oauth.OAuthRequest
Modifier and Type | Field and Description |
---|---|
static String |
NUXEO_INTERNAL_REQUEST |
static String |
XOAUTH_APP_URL |
Constructor and Description |
---|
NuxeoOAuthRequest(org.apache.shindig.gadgets.oauth.OAuthFetcherConfig fetcherConfig,
org.apache.shindig.gadgets.http.HttpFetcher fetcher) |
NuxeoOAuthRequest(org.apache.shindig.gadgets.oauth.OAuthFetcherConfig fetcherConfig,
org.apache.shindig.gadgets.http.HttpFetcher fetcher,
List<net.oauth.OAuth.Parameter> trustedParams) |
Modifier and Type | Method and Description |
---|---|
org.apache.shindig.gadgets.http.HttpResponse |
fetch(org.apache.shindig.gadgets.http.HttpRequest request)
OAuth authenticated fetch.
|
org.apache.shindig.gadgets.http.HttpRequest |
sanitizeAndSign(org.apache.shindig.gadgets.http.HttpRequest base,
List<net.oauth.OAuth.Parameter> params,
boolean tokenEndpoint)
Start with an HttpRequest.
|
public static final String NUXEO_INTERNAL_REQUEST
public static final String XOAUTH_APP_URL
public NuxeoOAuthRequest(org.apache.shindig.gadgets.oauth.OAuthFetcherConfig fetcherConfig, org.apache.shindig.gadgets.http.HttpFetcher fetcher)
fetcherConfig
- configuration options for the fetcherfetcher
- fetcher to use for actually making requestspublic NuxeoOAuthRequest(org.apache.shindig.gadgets.oauth.OAuthFetcherConfig fetcherConfig, org.apache.shindig.gadgets.http.HttpFetcher fetcher, List<net.oauth.OAuth.Parameter> trustedParams)
fetcherConfig
- configuration options for the fetcherfetcher
- fetcher to use for actually making requeststrustedParams
- additional parameters to include in all outgoing
OAuth requests, useful for client data that can't be pulled
from the security token but is still trustworthy.public org.apache.shindig.gadgets.http.HttpResponse fetch(org.apache.shindig.gadgets.http.HttpRequest request)
fetch
in class org.apache.shindig.gadgets.oauth.OAuthRequest
public org.apache.shindig.gadgets.http.HttpRequest sanitizeAndSign(org.apache.shindig.gadgets.http.HttpRequest base, List<net.oauth.OAuth.Parameter> params, boolean tokenEndpoint) throws org.apache.shindig.gadgets.oauth.OAuthResponseParams.OAuthRequestException
sanitizeAndSign
in class org.apache.shindig.gadgets.oauth.OAuthRequest
org.apache.shindig.gadgets.oauth.OAuthResponseParams.OAuthRequestException
Copyright © 2012 Nuxeo SA. All Rights Reserved.