This project has retired. For details please refer to its
Attic page.
OAuthResponse (Apache Oltu: OAuth 2.0 Implementation - Common 0.31-incubating-SNAPSHOT API)
org.apache.amber.oauth2.common.message
Class OAuthResponse
java.lang.Object
org.apache.amber.oauth2.common.message.OAuthResponse
- All Implemented Interfaces:
- OAuthMessage
public class OAuthResponse
- extends Object
- implements OAuthMessage
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
responseStatus
protected int responseStatus
uri
protected String uri
body
protected String body
headers
protected Map<String,String> headers
OAuthResponse
protected OAuthResponse(String uri,
int responseStatus)
status
public static OAuthResponse.OAuthResponseBuilder status(int code)
errorResponse
public static OAuthResponse.OAuthErrorResponseBuilder errorResponse(int code)
getLocationUri
public String getLocationUri()
- Specified by:
getLocationUri
in interface OAuthMessage
setLocationUri
public void setLocationUri(String uri)
- Specified by:
setLocationUri
in interface OAuthMessage
getBody
public String getBody()
- Specified by:
getBody
in interface OAuthMessage
setBody
public void setBody(String body)
- Specified by:
setBody
in interface OAuthMessage
getHeader
public String getHeader(String name)
- Specified by:
getHeader
in interface OAuthMessage
getHeaders
public Map<String,String> getHeaders()
- Specified by:
getHeaders
in interface OAuthMessage
setHeaders
public void setHeaders(Map<String,String> headers)
- Specified by:
setHeaders
in interface OAuthMessage
getResponseStatus
public int getResponseStatus()
addHeader
public void addHeader(String name,
String header)
- Specified by:
addHeader
in interface OAuthMessage
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.