Restlet Framework 2.2.3
Java Standard Edition

org.restlet.ext.oauth
Class ProtectedClientResource

java.lang.Object
  extended by org.restlet.resource.Resource
      extended by org.restlet.resource.ClientResource
          extended by org.restlet.ext.oauth.ProtectedClientResource
All Implemented Interfaces:
OAuthResourceDefs

public class ProtectedClientResource
extends ClientResource
implements OAuthResourceDefs

Author:
Shotaro Uchida

Field Summary
 
Fields inherited from interface org.restlet.ext.oauth.OAuthResourceDefs
ACCESS_TOKEN, CLIENT_ID, CLIENT_SECRET, CODE, ERROR, ERROR_DESC, ERROR_URI, EXPIRES_IN, GRANT_TYPE, PASSWORD, REDIR_URI, REFRESH_TOKEN, RESPONSE_TYPE, SCOPE, STATE, TOKEN_TYPE, TOKEN_TYPE_BEARER, TOKEN_TYPE_MAC, USERNAME
 
Constructor Summary
protected ProtectedClientResource()
           
  ProtectedClientResource(ClientResource resource)
           
  ProtectedClientResource(Context context, Method method, Reference reference)
           
  ProtectedClientResource(Context context, Method method, String uri)
           
  ProtectedClientResource(Context context, Method method, URI uri)
           
  ProtectedClientResource(Context context, Reference reference)
           
  ProtectedClientResource(Context context, Request request, Response response)
           
  ProtectedClientResource(Context context, String uri)
           
  ProtectedClientResource(Context context, URI uri)
           
  ProtectedClientResource(Method method, Reference reference)
           
  ProtectedClientResource(Method method, String uri)
           
  ProtectedClientResource(Method method, URI uri)
           
  ProtectedClientResource(Reference reference)
           
  ProtectedClientResource(Request request, Response response)
           
  ProtectedClientResource(String uri)
           
  ProtectedClientResource(URI uri)
           
 
Method Summary
 org.restlet.ext.oauth.internal.Token getToken()
           
 Response handleOutbound(Request request)
           
 boolean isUseBodyMethod()
           
 void setToken(org.restlet.ext.oauth.internal.Token token)
           
 void setUseBodyMethod(boolean useBodyMethod)
           
 
Methods inherited from class org.restlet.resource.ClientResource
accept, accept, addQueryParameter, addQueryParameter, addQueryParameters, addSegment, create, create, create, createNext, createRequest, createResponse, delete, delete, delete, doError, doRelease, finalize, get, get, get, getAttribute, getChild, getChild, getChild, getChild, getMaxRedirects, getNext, getOnResponse, getOnSent, getParent, getParent, getRetryAttempts, getRetryDelay, handle, handle, handle, handle, handle, handle, handle, handle, handle, handleInbound, hasNext, head, head, isFollowingRedirects, isRequestEntityBuffering, isResponseEntityBuffering, isRetryOnError, options, options, options, patch, patch, patch, patch, post, post, post, post, put, put, put, put, redirect, retry, setAttribute, setChallengeResponse, setChallengeResponse, setClientInfo, setConditions, setCookies, setEntityBuffering, setFollowingRedirects, setHostRef, setHostRef, setLoggable, setMaxRedirects, setMethod, setNext, setOnResponse, setOnSent, setOriginalRef, setProtocol, setProxyChallengeResponse, setProxyChallengeResponse, setRanges, setReference, setReference, setReferrerRef, setReferrerRef, setRequestEntityBuffering, setResponseEntityBuffering, setRetryAttempts, setRetryDelay, setRetryOnError, wrap
 
Methods inherited from class org.restlet.resource.Resource
doCatch, doError, doInit, getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getConnegService, getContext, getConverterService, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMatrixValue, getMaxForwards, getMetadataService, getMethod, getOriginalRef, getProtocol, getProxyChallengeRequests, getProxyChallengeResponse, getQuery, getQueryValue, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestCacheDirectives, getRequestEntity, getResponse, getResponseAttributes, getResponseCacheDirectives, getResponseEntity, getRootRef, getServerInfo, getStatus, getStatusService, init, isConfidential, isLoggable, release, setApplication, setQueryValue, setRequest, setResponse, toObject, toRepresentation, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProtectedClientResource

protected ProtectedClientResource()

ProtectedClientResource

public ProtectedClientResource(ClientResource resource)

ProtectedClientResource

public ProtectedClientResource(Context context,
                               Method method,
                               Reference reference)

ProtectedClientResource

public ProtectedClientResource(Context context,
                               Method method,
                               String uri)

ProtectedClientResource

public ProtectedClientResource(Context context,
                               Method method,
                               URI uri)

ProtectedClientResource

public ProtectedClientResource(Context context,
                               Reference reference)

ProtectedClientResource

public ProtectedClientResource(Context context,
                               Request request,
                               Response response)

ProtectedClientResource

public ProtectedClientResource(Context context,
                               String uri)

ProtectedClientResource

public ProtectedClientResource(Context context,
                               URI uri)

ProtectedClientResource

public ProtectedClientResource(Method method,
                               Reference reference)

ProtectedClientResource

public ProtectedClientResource(Method method,
                               String uri)

ProtectedClientResource

public ProtectedClientResource(Method method,
                               URI uri)

ProtectedClientResource

public ProtectedClientResource(Reference reference)

ProtectedClientResource

public ProtectedClientResource(Request request,
                               Response response)

ProtectedClientResource

public ProtectedClientResource(String uri)

ProtectedClientResource

public ProtectedClientResource(URI uri)
Method Detail

getToken

public org.restlet.ext.oauth.internal.Token getToken()

setToken

public void setToken(org.restlet.ext.oauth.internal.Token token)

isUseBodyMethod

public boolean isUseBodyMethod()

setUseBodyMethod

public void setUseBodyMethod(boolean useBodyMethod)

handleOutbound

public Response handleOutbound(Request request)
Overrides:
handleOutbound in class ClientResource

Restlet Framework 2.2.3
Java Standard Edition

Copyright © 2005-2014 Restlet.