fr.cnes.sitools.proxy
Class DirectoryUserResource

java.lang.Object
  extended by org.restlet.resource.UniformResource
      extended by org.restlet.resource.ServerResource
          extended by fr.cnes.sitools.proxy.AbstractDirectoryServerResource
              extended by fr.cnes.sitools.proxy.DirectoryUserResource

public final class DirectoryUserResource
extends AbstractDirectoryServerResource

FIXME Suivre les évolutions de la classe Restlet DirectoryServerResource Resource supported by a set of context representations (from file system, class loaders and webapp context). A content negotiation mechanism (similar to Apache HTTP server) is available. It is based on path extensions to detect variants (languages, media types or character sets).

Author:
Jerome Louvel, Thierry Boileau
See Also:
Apache mod_negotiation module

Constructor Summary
DirectoryUserResource()
           
 
Method Summary
 org.restlet.representation.Representation delete()
          Can recursively delete directory with request parameter recursive=true
 void doInit()
          This initialization method aims at answering the following questions:
does this request target a directory?
 java.util.List<org.restlet.representation.Variant> getVariants(org.restlet.data.Method method)
          Returns the list of variants for the given method.
 org.restlet.representation.Representation handle()
           
 
Methods inherited from class fr.cnes.sitools.proxy.AbstractDirectoryServerResource
get, getBaseName, getBaseVariant, getClientDispatcher, getDirectory, getDirectoryContent, getDirectoryUri, getFileContent, getIndexName, getOriginalRef, getProtoVariant, getRelativePart, getRepresentation, getRepresentation, getRepresentationsComparator, getTargetUri, getUniqueReference, getVariants, getVariantsGet, getVariantsReferences, handleDelete, isDirectoryRedirection, isDirectoryTarget, isFileTarget, post, put, setBaseName, setBaseVariant, setDirectory, setDirectoryContent, setDirectoryRedirection, setDirectoryUri, setFileContent, setIfDirectoryTarget, setIfFileTarget, setIndexName, setOriginalRef, setProtoVariant, setRelativePart, setTargetUri, setUniqueReference, setVariantsGet, upload
 
Methods inherited from class org.restlet.resource.ServerResource
abort, commit, getOnSent, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setAutoCommitting, setChallengeRequests, setCommitted, setConditional, setCookieSettings, setDimensions, setExisting, setLocationRef, setLocationRef, setNegotiated, setOnSent, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods
 
Methods inherited from class org.restlet.resource.UniformResource
getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getContext, getConverterService, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMaxForwards, getMetadataService, getMethod, getProtocol, getQuery, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestEntity, getResponse, getResponseAttributes, getResponseEntity, getRootRef, getServerInfo, getStatus, getStatusService, init, isConfidential, release, setRequest, setResponse
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryUserResource

public DirectoryUserResource()
Method Detail

delete

public org.restlet.representation.Representation delete()
Can recursively delete directory with request parameter recursive=true

Overrides:
delete in class org.restlet.resource.ServerResource
Returns:
a representation of the delete answer

doInit

public void doInit()
This initialization method aims at answering the following questions:

The following constraints must be taken into account:

Overrides:
doInit in class org.restlet.resource.UniformResource

getVariants

public java.util.List<org.restlet.representation.Variant> getVariants(org.restlet.data.Method method)
Returns the list of variants for the given method.

Overrides:
getVariants in class AbstractDirectoryServerResource
Parameters:
method - The related method.
Returns:
The list of variants for the given method.
See Also:
DirectoryServerResource.getVariants(Method method)

handle

public org.restlet.representation.Representation handle()
Overrides:
handle in class AbstractDirectoryServerResource


Copyright © 2010-2013 CNES. All Rights Reserved.