|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restlet.Handler
org.restlet.resource.Resource
org.restlet.ext.oauth.AuthorizationResource
public abstract class AuthorizationResource
Handles user authorization of an OAuth request token.
| Constructor Summary | |
|---|---|
AuthorizationResource(Context context,
Request request,
Response response)
Constructor. |
|
| Method Summary | |
|---|---|
void |
acceptRepresentation(Representation entity)
|
boolean |
allowPost()
|
protected void |
handleFailedAuthorization()
Handle if the user has denied authorization of a client. |
protected abstract boolean |
isAuthorized()
Return true if the request has been authorized by the user, false otherwise. |
abstract Representation |
represent(Variant variant)
Return a user-accessible page asking if the user wants to authorize the client. |
| Methods inherited from class org.restlet.resource.Resource |
|---|
allowDelete, allowGet, allowPut, getPreferredVariant, getVariants, handleDelete, handleGet, handlePost, handlePut, init, isAvailable, isModifiable, isNegotiateContent, isReadable, removeRepresentations, represent, setAvailable, setModifiable, setNegotiateContent, setReadable, setVariants, storeRepresentation |
| Methods inherited from class org.restlet.Handler |
|---|
allowHead, allowOptions, generateRef, getAllowedMethods, getApplication, getContext, getLogger, getMatrix, getQuery, getRequest, getResponse, handleHead, handleOptions, setContext, setRequest, setResponse, updateAllowedMethods |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthorizationResource(Context context,
Request request,
Response response)
context - The parent context.request - The current request.response - The current response.| Method Detail |
|---|
public void acceptRepresentation(Representation entity)
acceptRepresentation in class Resourcepublic boolean allowPost()
allowPost in class Resourceprotected void handleFailedAuthorization()
protected abstract boolean isAuthorized()
public abstract Representation represent(Variant variant)
represent in class Resource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||