This project has retired. For details please refer to its Attic page.
OAuthResponse | Apache Oltu - OAuth 2.0
public class

OAuthResponse

extends Object
implements OAuthMessage
java.lang.Object
   ↳ org.apache.oltu.oauth2.common.message.OAuthResponse
Known Direct Subclasses
Known Indirect Subclasses

Summary

Nested Classes
class OAuthResponse.OAuthErrorResponseBuilder  
class OAuthResponse.OAuthResponseBuilder  
Fields
protected String body
protected Map<StringString> headers
protected int responseStatus
protected String uri
Protected Constructors
OAuthResponse(String uri, int responseStatus)
Public Methods
void addHeader(String name, String header)
static OAuthResponse.OAuthErrorResponseBuilder errorResponse(int code)
String getBody()
String getHeader(String name)
Map<StringString> getHeaders()
String getLocationUri()
int getResponseStatus()
void setBody(String body)
void setHeaders(Map<StringString> headers)
void setLocationUri(String uri)
static OAuthResponse.OAuthResponseBuilder status(int code)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.oltu.oauth2.common.message.OAuthMessage

Fields

protected String body

protected Map<StringString> headers

protected int responseStatus

protected String uri

Protected Constructors

protected OAuthResponse (String uri, int responseStatus)

Public Methods

public void addHeader (String name, String header)

public static OAuthResponse.OAuthErrorResponseBuilder errorResponse (int code)

public String getBody ()

public String getHeader (String name)

public Map<StringString> getHeaders ()

public String getLocationUri ()

public int getResponseStatus ()

public void setBody (String body)

public void setHeaders (Map<StringString> headers)

public void setLocationUri (String uri)

public static OAuthResponse.OAuthResponseBuilder status (int code)