| org.restlet.data.ReferenceList
ReferenceList | public class ReferenceList extends WrapperList (Code) | | List of URI references.
author: Jerome Louvel (contact@noelios.com) |
Method Summary | |
public boolean | add(String uri) Creates then adds a reference at the end of the list.
Parameters: uri - The uri of the reference to add. | public Reference | getIdentifier() Returns the list identifier. | public Representation | getTextRepresentation() Returns a representation of the list in the "text/uri-list" format. | public Representation | getWebRepresentation() Returns a representation of the list in "text/html" format. | public void | setIdentifier(Reference identifier) Sets the list reference. | public void | setIdentifier(String identifier) Sets the list reference. | public ReferenceList | subList(int fromIndex, int toIndex) Returns a view of the portion of this list between the specified
fromIndex, inclusive, and toIndex, exclusive.
Parameters: fromIndex - The start position. Parameters: toIndex - The end position (exclusive). |
ReferenceList | public ReferenceList()(Code) | | Constructor.
|
ReferenceList | public ReferenceList(int initialCapacity)(Code) | | Constructor.
Parameters: initialCapacity - The initial list capacity. |
ReferenceList | public ReferenceList(List<Reference> delegate)(Code) | | Constructor.
Parameters: delegate - The delegate list. |
ReferenceList | public ReferenceList(Representation uriList) throws IOException(Code) | | Constructor from a "text/uri-list" representation.
Parameters: uriList - The "text/uri-list" representation to parse. throws: IOException - |
add | public boolean add(String uri)(Code) | | Creates then adds a reference at the end of the list.
Parameters: uri - The uri of the reference to add. True (as per the general contract of the Collection.add method). |
getIdentifier | public Reference getIdentifier()(Code) | | Returns the list identifier.
The list identifier. |
getTextRepresentation | public Representation getTextRepresentation()(Code) | | Returns a representation of the list in the "text/uri-list" format.
A representation of the list in the "text/uri-list" format. |
getWebRepresentation | public Representation getWebRepresentation()(Code) | | Returns a representation of the list in "text/html" format.
A representation of the list in "text/html" format. |
setIdentifier | public void setIdentifier(Reference identifier)(Code) | | Sets the list reference.
Parameters: identifier - The list identifier. |
setIdentifier | public void setIdentifier(String identifier)(Code) | | Sets the list reference.
Parameters: identifier - The list identifier as a URI. |
subList | public ReferenceList subList(int fromIndex, int toIndex)(Code) | | Returns a view of the portion of this list between the specified
fromIndex, inclusive, and toIndex, exclusive.
Parameters: fromIndex - The start position. Parameters: toIndex - The end position (exclusive). The sub-list. |
|
|