Package org.springframework.social.support

Examples of org.springframework.social.support.HttpRequestDecorator


    this.accessToken = accessToken;
    this.oauth2Version = oauth2Version;
  }
 
  public ClientHttpResponse intercept(final HttpRequest request, final byte[] body, ClientHttpRequestExecution execution) throws IOException {
    HttpRequest protectedResourceRequest = new HttpRequestDecorator(request);
    protectedResourceRequest.getHeaders().set("Authorization", oauth2Version.getAuthorizationHeaderValue(accessToken));
    return execution.execute(protectedResourceRequest, body);
  }
View Full Code Here


    this.accessToken = accessToken;
    this.parameterName = parameterName;
  }

  public ClientHttpResponse intercept(final HttpRequest request, final byte[] body, ClientHttpRequestExecution execution) throws IOException {
    HttpRequestDecorator protectedResourceRequest = new HttpRequestDecorator(request);
    protectedResourceRequest.addParameter(parameterName, accessToken);
    return execution.execute(protectedResourceRequest, body);
  }
View Full Code Here

    this.oauth1Credentials = oauth1Credentials;
    this.signingUtils = new SigningSupport();
  }

  public ClientHttpResponse intercept(final HttpRequest request, final byte[] body, ClientHttpRequestExecution execution) throws IOException {
    HttpRequest protectedResourceRequest = new HttpRequestDecorator(request);
    protectedResourceRequest.getHeaders().add("Authorization", getAuthorizationHeaderValue(request, body));
    return execution.execute(protectedResourceRequest, body);
  }
View Full Code Here

TOP

Related Classes of org.springframework.social.support.HttpRequestDecorator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.