fr.cnes.sitools.proxy
Class DirectoryProxy

java.lang.Object
  extended by org.restlet.Restlet
      extended by org.restlet.resource.Finder
          extended by org.restlet.resource.Directory
              extended by fr.cnes.sitools.proxy.DirectoryProxy
All Implemented Interfaces:
org.restlet.ext.wadl.WadlDescribable, org.restlet.Uniform
Direct Known Subclasses:
DirectoryUser

public class DirectoryProxy
extends org.restlet.resource.Directory
implements org.restlet.ext.wadl.WadlDescribable

Directory proxy

Author:
jp.boignard (AKKA Technologies)

Constructor Summary
DirectoryProxy(org.restlet.Context context, org.restlet.data.Reference rootLocalReference, java.lang.String proxyBaseRef)
          Constructor
DirectoryProxy(org.restlet.Context context, java.lang.String rootUri)
          Constructor
DirectoryProxy(org.restlet.Context context, java.lang.String rootUri, java.lang.String proxyBaseRef)
          Constructor with proxyBaseRef
 
Method Summary
 org.restlet.representation.Representation getIndexRepresentation(org.restlet.representation.Variant variant, org.restlet.data.ReferenceList indexContent)
           
 java.util.List<org.restlet.representation.Variant> getIndexVariants(org.restlet.data.ReferenceList indexContent)
          Returns the variant representations of a directory index.
 java.lang.String getProxyBaseRef()
          Gets the proxyBaseRef value
 java.lang.String getRegexp()
          Gets the regexp value
 org.restlet.ext.wadl.ResourceInfo getResourceInfo(org.restlet.ext.wadl.ApplicationInfo applicationInfo)
           
 boolean isNocache()
          Gets the nocache value
 void setNocache(boolean nocache)
          Sets the value of nocache
 void setRegexp(java.lang.String regexp)
          Sets the value of regexp
 
Methods inherited from class org.restlet.resource.Directory
getComparator, getIndexName, getRootRef, handle, isDeeplyAccessible, isListingAllowed, isModifiable, isNegotiateContent, isNegotiatingContent, setAlphaComparator, setAlphaNumComparator, setComparator, setDeeplyAccessible, setIndexName, setListingAllowed, setModifiable, setNegotiateContent, setNegotiatingContent, setRootRef
 
Methods inherited from class org.restlet.resource.Finder
create, create, createFinder, find, findTarget, getTargetClass, setTargetClass
 
Methods inherited from class org.restlet.Restlet
getApplication, getAuthor, getContext, getDescription, getLogger, getName, getOwner, isStarted, isStopped, setAuthor, setContext, setDescription, setName, setOwner, start, stop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryProxy

public DirectoryProxy(org.restlet.Context context,
                      org.restlet.data.Reference rootLocalReference,
                      java.lang.String proxyBaseRef)
Constructor

Parameters:
context - restlet context
rootLocalReference - root local reference
proxyBaseRef - proxy bas reference

DirectoryProxy

public DirectoryProxy(org.restlet.Context context,
                      java.lang.String rootUri,
                      java.lang.String proxyBaseRef)
Constructor with proxyBaseRef

Parameters:
context - restlet context
rootUri - root URI
proxyBaseRef - proxy base reference

DirectoryProxy

public DirectoryProxy(org.restlet.Context context,
                      java.lang.String rootUri)
Constructor

Parameters:
context - parent context
rootUri - Directory path
Method Detail

getProxyBaseRef

public java.lang.String getProxyBaseRef()
Gets the proxyBaseRef value

Returns:
the proxyBaseRef

getIndexRepresentation

public org.restlet.representation.Representation getIndexRepresentation(org.restlet.representation.Variant variant,
                                                                        org.restlet.data.ReferenceList indexContent)
Overrides:
getIndexRepresentation in class org.restlet.resource.Directory

getIndexVariants

public java.util.List<org.restlet.representation.Variant> getIndexVariants(org.restlet.data.ReferenceList indexContent)
Returns the variant representations of a directory index. This method can be subclassed in order to provide alternative representations. By default it returns a simple HTML document and a textual URI list as variants. Note that a new instance of the list is created for each call.

Overrides:
getIndexVariants in class org.restlet.resource.Directory
Parameters:
indexContent - The list of references contained in the directory index.
Returns:
The variant representations of a directory.

getResourceInfo

public org.restlet.ext.wadl.ResourceInfo getResourceInfo(org.restlet.ext.wadl.ApplicationInfo applicationInfo)
Specified by:
getResourceInfo in interface org.restlet.ext.wadl.WadlDescribable

getRegexp

public java.lang.String getRegexp()
Gets the regexp value

Returns:
the regexp

setRegexp

public void setRegexp(java.lang.String regexp)
Sets the value of regexp

Parameters:
regexp - the regexp to set

setNocache

public void setNocache(boolean nocache)
Sets the value of nocache

Parameters:
nocache - the nocache to set

isNocache

public boolean isNocache()
Gets the nocache value

Returns:
the nocache


Copyright © 2010-2013 CNES. All Rights Reserved.