fr.cnes.sitools.proxy
Class ReferenceFileList

java.lang.Object
  extended by org.restlet.util.WrapperList<org.restlet.data.Reference>
      extended by org.restlet.data.ReferenceList
          extended by fr.cnes.sitools.proxy.ReferenceFileList
All Implemented Interfaces:
java.lang.Iterable<org.restlet.data.Reference>, java.util.Collection<org.restlet.data.Reference>, java.util.List<org.restlet.data.Reference>

public final class ReferenceFileList
extends org.restlet.data.ReferenceList

To provide more complete information on files references in Directory Resource representation.

Author:
jp.boignard (AKKA Technologies)

Constructor Summary
ReferenceFileList()
          Constructor
ReferenceFileList(int initialCapacity)
          Constructor with initial capacity
ReferenceFileList(java.util.List<org.restlet.data.Reference> delegate)
          Constructor with references
ReferenceFileList(org.restlet.representation.Representation uriList)
          Constructor with URIs
 
Method Summary
 void addFileReference(java.lang.String reference, java.io.File file)
          Add a reference to file
 java.io.File get(java.lang.String item)
          Get a file
 java.lang.String getRegexp()
          Gets the regexp value
 void setRegexp(java.lang.String regexp)
          Sets the value of regexp
 
Methods inherited from class org.restlet.data.ReferenceList
add, getIdentifier, getTextRepresentation, getWebRepresentation, setIdentifier, setIdentifier, subList
 
Methods inherited from class org.restlet.util.WrapperList
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReferenceFileList

public ReferenceFileList()
Constructor


ReferenceFileList

public ReferenceFileList(int initialCapacity)
Constructor with initial capacity

Parameters:
initialCapacity - the initial capacity

ReferenceFileList

public ReferenceFileList(java.util.List<org.restlet.data.Reference> delegate)
Constructor with references

Parameters:
delegate - list of references

ReferenceFileList

public ReferenceFileList(org.restlet.representation.Representation uriList)
                  throws java.io.IOException
Constructor with URIs

Parameters:
uriList - list of URI
Throws:
java.io.IOException - when occurs
Method Detail

addFileReference

public void addFileReference(java.lang.String reference,
                             java.io.File file)
Add a reference to file

Parameters:
reference - reference to add
file - to use

get

public java.io.File get(java.lang.String item)
Get a file

Parameters:
item - the item name
Returns:
the file corresponding

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


Copyright © 2010-2013 CNES. All Rights Reserved.