public abstract class ProtectedResource
extends org.restlet.resource.ServerResource
implements net.idea.restnet.i.aa.IAuthToken
Constructor and Description |
---|
ProtectedResource() |
Modifier and Type | Method and Description |
---|---|
protected org.restlet.data.Reference |
cleanedResourceRef(org.restlet.data.Reference ref) |
protected void |
doInit() |
protected void |
doRelease() |
protected org.restlet.representation.Representation |
get(org.restlet.representation.Variant variant) |
protected String |
getAgent() |
protected String |
getPassword() |
protected org.restlet.data.Reference |
getResourceRef(org.restlet.Request request) |
Object |
getToken() |
protected Object |
getTokenFromCookies(org.restlet.Request request) |
protected String |
getUserName() |
protected void |
setCacheHeaders() |
protected void |
setFrameOptions(String value) |
protected void |
setTokenCookies(org.restlet.representation.Variant variant,
boolean secure) |
protected boolean |
useSecureCookie(org.restlet.Request request) |
delete, delete, describeVariants, doConditionalHandle, doHandle, doHandle, doNegotiatedHandle, get, getInfo, getInfo, getOnContinue, getOnSent, getPreferredVariant, getVariants, handle, head, head, isAnnotated, isConditional, isExisting, isInRole, isNegotiated, options, options, post, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setChallengeRequests, setConditional, setCookieSettings, setDimensions, setExisting, setLocationRef, setLocationRef, setNegotiated, setOnContinue, setOnSent, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods, updateDimensions
doCatch, getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getContext, getConverterService, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMetadataService, getMethod, getOriginalRef, getProtocol, getQuery, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestEntity, getResponse, getResponseAttributes, getResponseEntity, getRootRef, getServerInfo, getStatus, getStatusService, init, isConfidential, release
protected void doInit() throws org.restlet.resource.ResourceException
doInit
in class org.restlet.resource.UniformResource
org.restlet.resource.ResourceException
protected void doRelease() throws org.restlet.resource.ResourceException
doRelease
in class org.restlet.resource.UniformResource
org.restlet.resource.ResourceException
protected Object getTokenFromCookies(org.restlet.Request request)
public Object getToken()
getToken
in interface net.idea.restnet.i.aa.IAuthToken
protected String getUserName()
protected String getPassword()
protected boolean useSecureCookie(org.restlet.Request request)
protected org.restlet.data.Reference getResourceRef(org.restlet.Request request)
protected void setTokenCookies(org.restlet.representation.Variant variant, boolean secure)
protected void setFrameOptions(String value)
protected void setCacheHeaders()
protected org.restlet.representation.Representation get(org.restlet.representation.Variant variant) throws org.restlet.resource.ResourceException
get
in class org.restlet.resource.ServerResource
org.restlet.resource.ResourceException
protected org.restlet.data.Reference cleanedResourceRef(org.restlet.data.Reference ref)
protected String getAgent()
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.