Class OAuthResponse
- java.lang.Object
-
- org.apache.oltu.oauth2.common.message.OAuthResponse
-
- All Implemented Interfaces:
OAuthMessage
- Direct Known Subclasses:
OAuthASResponse
,OAuthRSResponse
public class OAuthResponse extends java.lang.Object implements OAuthMessage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OAuthResponse.OAuthErrorResponseBuilder
static class
OAuthResponse.OAuthResponseBuilder
-
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 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)
-
-
-
Method Detail
-
status
public static OAuthResponse.OAuthResponseBuilder status(int code)
-
errorResponse
public static OAuthResponse.OAuthErrorResponseBuilder errorResponse(int code)
-
getLocationUri
public java.lang.String getLocationUri()
- Specified by:
getLocationUri
in interfaceOAuthMessage
-
setLocationUri
public void setLocationUri(java.lang.String uri)
- Specified by:
setLocationUri
in interfaceOAuthMessage
-
getBody
public java.lang.String getBody()
- Specified by:
getBody
in interfaceOAuthMessage
-
setBody
public void setBody(java.lang.String body)
- Specified by:
setBody
in interfaceOAuthMessage
-
getHeader
public java.lang.String getHeader(java.lang.String name)
- Specified by:
getHeader
in interfaceOAuthMessage
-
getHeaders
public java.util.Map<java.lang.String,java.lang.String> getHeaders()
- Specified by:
getHeaders
in interfaceOAuthMessage
-
setHeaders
public void setHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
- Specified by:
setHeaders
in interfaceOAuthMessage
-
getResponseStatus
public int getResponseStatus()
-
addHeader
public void addHeader(java.lang.String name, java.lang.String header)
- Specified by:
addHeader
in interfaceOAuthMessage
-
-