public class OAuthResponse extends java.lang.Object implements OAuthMessage
Modifier and Type | Class and Description |
---|---|
static class |
OAuthResponse.OAuthErrorResponseBuilder |
static class |
OAuthResponse.OAuthResponseBuilder |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(java.lang.String name,
java.lang.String header) |
static OAuthResponse.OAuthErrorResponseBuilder |
errorResponse(int code) |
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() |
int |
getResponseStatus() |
void |
setBody(java.lang.String body) |
void |
setHeaders(java.util.Map<java.lang.String,java.lang.String> headers) |
void |
setLocationUri(java.lang.String uri) |
static OAuthResponse.OAuthResponseBuilder |
status(int code) |
public static OAuthResponse.OAuthResponseBuilder status(int code)
public static OAuthResponse.OAuthErrorResponseBuilder errorResponse(int code)
public java.lang.String getLocationUri()
getLocationUri
in interface OAuthMessage
public void setLocationUri(java.lang.String uri)
setLocationUri
in interface OAuthMessage
public java.lang.String getBody()
getBody
in interface OAuthMessage
public void setBody(java.lang.String body)
setBody
in interface OAuthMessage
public java.lang.String getHeader(java.lang.String name)
getHeader
in interface OAuthMessage
public java.util.Map<java.lang.String,java.lang.String> getHeaders()
getHeaders
in interface OAuthMessage
public void setHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
setHeaders
in interface OAuthMessage
public int getResponseStatus()
public void addHeader(java.lang.String name, java.lang.String header)
addHeader
in interface OAuthMessage
Copyright © 2010 - 2020 Adobe. All Rights Reserved