|
||||||||||
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
com.noelios.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, delete, getPreferredRepresentation, getPreferredVariant, getRepresentation, getVariants, handleDelete, handleGet, handlePost, handlePut, init, isAvailable, isModifiable, isNegotiateContent, isReadable, post, put, 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 Resource
public boolean allowPost()
allowPost
in class Resource
protected 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 |