com.google.api.client.http.UrlEncodedParser Java Examples
The following examples show how to use
com.google.api.client.http.UrlEncodedParser.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ImplicitResponseUrl.java From mirror with Apache License 2.0 | 5 votes |
private ImplicitResponseUrl(String scheme, String host, int port, String path, String fragment, String query, String userInfo) { setScheme(scheme); setHost(host); setPort(port); setPathParts(toPathParts(path)); setFragment(fragment != null ? CharEscapers.decodeUri(fragment) : null); if (fragment != null) { UrlEncodedParser.parse(fragment, this); } // no need for query parameters setUserInfo(userInfo != null ? CharEscapers.decodeUri(userInfo) : null); }
Example #2
Source File: AbstractOAuthGetToken.java From google-oauth-java-client with Apache License 2.0 | 5 votes |
/** * Executes the HTTP request for a temporary or long-lived token. * * @return OAuth credentials response object */ public final OAuthCredentialsResponse execute() throws IOException { HttpRequestFactory requestFactory = transport.createRequestFactory(); HttpRequest request = requestFactory.buildRequest(usePost ? HttpMethods.POST : HttpMethods.GET, this, null); createParameters().intercept(request); HttpResponse response = request.execute(); response.setContentLoggingLimit(0); OAuthCredentialsResponse oauthResponse = new OAuthCredentialsResponse(); UrlEncodedParser.parse(response.parseAsString(), oauthResponse); return oauthResponse; }
Example #3
Source File: ImplicitResponseUrl.java From android-oauth-client with Apache License 2.0 | 5 votes |
private ImplicitResponseUrl(String scheme, String host, int port, String path, String fragment, String query, String userInfo) { setScheme(scheme); setHost(host); setPort(port); setPathParts(toPathParts(path)); setFragment(fragment != null ? CharEscapers.decodeUri(fragment) : null); if (fragment != null) { UrlEncodedParser.parse(fragment, this); } // no need for query parameters setUserInfo(userInfo != null ? CharEscapers.decodeUri(userInfo) : null); }