Class OAuthClientRequest
- java.lang.Object
-
- org.apache.oltu.oauth2.client.request.OAuthClientRequest
-
- All Implemented Interfaces:
OAuthMessage
public class OAuthClientRequest extends java.lang.Object implements OAuthMessage
OAuth Client Request
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OAuthClientRequest.AuthenticationRequestBuilder
static class
OAuthClientRequest.OAuthRequestBuilder
static class
OAuthClientRequest.TokenRequestBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHeader(java.lang.String name, java.lang.String header)
static OAuthClientRequest.AuthenticationRequestBuilder
authorizationLocation(java.lang.String url)
static OAuthClientRequest.AuthenticationRequestBuilder
authorizationProvider(OAuthProviderType provider)
java.lang.String
getBody()
java.lang.String
getHeader(java.lang.String name)
java.util.Map<java.lang.String,java.lang.String>
getHeaders()
java.lang.String
getLocationUri()
void
setBody(java.lang.String body)
void
setHeader(java.lang.String name, java.lang.String value)
void
setHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
void
setLocationUri(java.lang.String uri)
static OAuthClientRequest.TokenRequestBuilder
tokenLocation(java.lang.String url)
static OAuthClientRequest.TokenRequestBuilder
tokenProvider(OAuthProviderType provider)
-
-
-
Method Detail
-
authorizationLocation
public static OAuthClientRequest.AuthenticationRequestBuilder authorizationLocation(java.lang.String url)
-
authorizationProvider
public static OAuthClientRequest.AuthenticationRequestBuilder authorizationProvider(OAuthProviderType provider)
-
tokenLocation
public static OAuthClientRequest.TokenRequestBuilder tokenLocation(java.lang.String url)
-
tokenProvider
public static OAuthClientRequest.TokenRequestBuilder tokenProvider(OAuthProviderType provider)
-
getBody
public java.lang.String getBody()
- Specified by:
getBody
in interfaceOAuthMessage
-
setBody
public void setBody(java.lang.String body)
- Specified by:
setBody
in interfaceOAuthMessage
-
getHeaders
public java.util.Map<java.lang.String,java.lang.String> getHeaders()
- Specified by:
getHeaders
in interfaceOAuthMessage
-
addHeader
public void addHeader(java.lang.String name, java.lang.String header)
- Specified by:
addHeader
in interfaceOAuthMessage
-
setHeaders
public void setHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
- Specified by:
setHeaders
in interfaceOAuthMessage
-
getLocationUri
public java.lang.String getLocationUri()
- Specified by:
getLocationUri
in interfaceOAuthMessage
-
setLocationUri
public void setLocationUri(java.lang.String uri)
- Specified by:
setLocationUri
in interfaceOAuthMessage
-
getHeader
public java.lang.String getHeader(java.lang.String name)
- Specified by:
getHeader
in interfaceOAuthMessage
-
setHeader
public void setHeader(java.lang.String name, java.lang.String value)
-
-