public final class RedirectLocations
extends java.lang.Object
URIs used
as redirect locations.| Constructor and Description |
|---|
RedirectLocations() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.net.URI uri)
Adds a new URI to the collection.
|
void |
clear() |
boolean |
contains(java.net.URI uri)
Test if the URI is present in the collection.
|
java.net.URI |
get(int index)
Returns the URI at the specified position in this list.
|
java.util.List<java.net.URI> |
getAll()
Returns all redirect
URIs in the order they were added to the collection. |
int |
size()
Returns the number of elements in this list.
|
public boolean contains(java.net.URI uri)
public void add(java.net.URI uri)
public java.util.List<java.net.URI> getAll()
URIs in the order they were added to the collection.public java.net.URI get(int index)
index - index of the location to returnjava.lang.IndexOutOfBoundsException - if the index is out of range (
index < 0 || index >= size())public int size()
Integer.MAX_VALUE elements, returns
Integer.MAX_VALUE.public void clear()