public class

OAuthRequest

extends Object
implements ApplicationLinkRequest
java.lang.Object
   ↳ com.atlassian.applinks.core.auth.oauth.OAuthRequest

Summary

Public Constructors
OAuthRequest(String url, Request.MethodType methodType, Request wrappedRequest, ServiceProvider serviceProvider, ConsumerService consumerService, ConsumerToken consumerToken, ConsumerTokenStoreService consumerTokenStoreService, ApplicationId applicationId, String username)
Public Methods
OAuthRequest addAuthentication(Authenticator authenticator)
OAuthRequest addBasicAuthentication(String s, String s1)
OAuthRequest addHeader(String s, String s1)
OAuthRequest addRequestParameters(String... params)
OAuthRequest addSeraphAuthentication(String s, String s1)
OAuthRequest addTrustedTokenAuthentication()
OAuthRequest addTrustedTokenAuthentication(String s)
String execute()
<R> R execute(ApplicationLinkResponseHandler<R> applicationLinkResponseHandler)
Executes the request.
void execute(ResponseHandler responseHandler)
<R> R executeAndReturn(ReturningResponseHandler<Response, R> responseRETReturningResponseHandler)
Map<StringList<String>> getHeaders()
OAuthRequest setConnectionTimeout(int i)
OAuthRequest setEntity(Object o)
ApplicationLinkRequest setFiles(List<RequestFilePart> files)
ApplicationLinkRequest setFollowRedirects(boolean followRedirects)
OAuthRequest setHeader(String s, String s1)
OAuthRequest setRequestBody(String s)
OAuthRequest setRequestContentType(String s)
OAuthRequest setSoTimeout(int i)
OAuthRequest setUrl(String s)
Protected Methods
int getRedirects()
void setRedirects(int redirects)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.applinks.api.ApplicationLinkRequest
From interface com.atlassian.sal.api.net.Request

Public Constructors

public OAuthRequest (String url, Request.MethodType methodType, Request wrappedRequest, ServiceProvider serviceProvider, ConsumerService consumerService, ConsumerToken consumerToken, ConsumerTokenStoreService consumerTokenStoreService, ApplicationId applicationId, String username)

Public Methods

public OAuthRequest addAuthentication (Authenticator authenticator)

public OAuthRequest addBasicAuthentication (String s, String s1)

public OAuthRequest addHeader (String s, String s1)

public OAuthRequest addRequestParameters (String... params)

public OAuthRequest addSeraphAuthentication (String s, String s1)

public OAuthRequest addTrustedTokenAuthentication ()

public OAuthRequest addTrustedTokenAuthentication (String s)

public String execute ()

Throws
ResponseException

public R execute (ApplicationLinkResponseHandler<R> applicationLinkResponseHandler)

Executes the request. Use this method instead of execute() and execute(com.atlassian.sal.api.net.ResponseHandler) when the caller anticipates a "credentials required problem". For more information about this scenario, see: CredentialsRequiredException

Parameters
applicationLinkResponseHandler Callback handler of the response.
Throws
ResponseException

public void execute (ResponseHandler responseHandler)

Throws
ResponseException

public R executeAndReturn (ReturningResponseHandler<Response, R> responseRETReturningResponseHandler)

Throws
ResponseException

public Map<StringList<String>> getHeaders ()

public OAuthRequest setConnectionTimeout (int i)

public OAuthRequest setEntity (Object o)

public ApplicationLinkRequest setFiles (List<RequestFilePart> files)

public ApplicationLinkRequest setFollowRedirects (boolean followRedirects)

public OAuthRequest setHeader (String s, String s1)

public OAuthRequest setRequestBody (String s)

public OAuthRequest setRequestContentType (String s)

public OAuthRequest setSoTimeout (int i)

public OAuthRequest setUrl (String s)

Protected Methods

protected int getRedirects ()

protected void setRedirects (int redirects)