com.noelios.restlet.ext.oauth
Class AccessTokenResource

java.lang.Object
  extended by org.restlet.Handler
      extended by org.restlet.resource.Resource
          extended by com.noelios.restlet.ext.oauth.AccessTokenResource

public class AccessTokenResource
extends Resource

An OAuth Access Token.

Author:
Adam Rosien

Constructor Summary
AccessTokenResource(Context context, Request request, Response response)
          Constructor.
 
Method Summary
 void acceptRepresentation(Representation entity)
           
 boolean allowPost()
           
 Representation represent(Variant variant)
           
 
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

AccessTokenResource

public AccessTokenResource(Context context,
                           Request request,
                           Response response)
Constructor.

Parameters:
context - The parent context.
request - The current request.
response - The current response.
Method Detail

acceptRepresentation

public void acceptRepresentation(Representation entity)
                          throws ResourceException
Overrides:
acceptRepresentation in class Resource
Throws:
ResourceException

allowPost

public boolean allowPost()
Overrides:
allowPost in class Resource

represent

public Representation represent(Variant variant)
                         throws ResourceException
Overrides:
represent in class Resource
Throws:
ResourceException


Copyright © 2005-2008 Noelios Technologies.