|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shindig.gadgets.oauth.OAuthResponseParams
public class OAuthResponseParams
Container for OAuth specific data to include in the response to the client.
| Field Summary | |
|---|---|
static String |
APPROVAL_URL
|
static String |
CLIENT_STATE
|
static String |
ERROR_CODE
|
static String |
ERROR_TEXT
|
| Constructor Summary | |
|---|---|
OAuthResponseParams(SecurityToken securityToken,
HttpRequest originalRequest,
BlobCrypter stateCrypter)
Create response parameters. |
|
| Method Summary | |
|---|---|
void |
addRequestTrace(HttpRequest request,
HttpResponse response)
Add a request/response pair to our trace of actions associated with this request. |
void |
addToResponse(HttpResponseBuilder response,
OAuthRequestException e)
Update a response with additional data to be returned to the application. |
String |
getAznUrl()
|
OAuthClientState |
getNewClientState()
Get the state we will return to the client. |
void |
logDetailedInfo(String note,
Throwable e)
|
void |
logDetailedWarning(String note)
Log a warning message that includes the details of the request. |
void |
logDetailedWarning(String note,
Throwable e)
Log a warning message that includes the details of the request and the thrown exception. |
boolean |
sawErrorResponse()
|
boolean |
sendTraceToClient()
|
void |
setAznUrl(String aznUrl)
Set the authorization URL we will return to the client. |
void |
setSendTraceToClient(boolean sendTraceToClient)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CLIENT_STATE
public static final String APPROVAL_URL
public static final String ERROR_CODE
public static final String ERROR_TEXT
| Constructor Detail |
|---|
public OAuthResponseParams(SecurityToken securityToken,
HttpRequest originalRequest,
BlobCrypter stateCrypter)
| Method Detail |
|---|
public void logDetailedWarning(String note)
public void logDetailedWarning(String note,
Throwable e)
public void logDetailedInfo(String note,
Throwable e)
public void addRequestTrace(HttpRequest request,
HttpResponse response)
public boolean sawErrorResponse()
public void addToResponse(HttpResponseBuilder response,
OAuthRequestException e)
public OAuthClientState getNewClientState()
public String getAznUrl()
public void setAznUrl(String aznUrl)
public boolean sendTraceToClient()
public void setSendTraceToClient(boolean sendTraceToClient)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||