org.apache.http.impl.client
Class RedirectLocations

java.lang.Object
  extended by org.apache.http.impl.client.RedirectLocations

@NotThreadSafe
public class RedirectLocations
extends java.lang.Object

This class represents a collection of URIs used as redirect locations.

Since:
4.0

Constructor Summary
RedirectLocations()
           
 
Method Summary
 void add(java.net.URI uri)
          Adds a new URI to the collection.
 boolean contains(java.net.URI uri)
          Test if the URI is present in the collection.
 java.util.List<java.net.URI> getAll()
          Returns all redirect URIs in the order they were added to the collection.
 boolean remove(java.net.URI uri)
          Removes a URI from the collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedirectLocations

public RedirectLocations()
Method Detail

contains

public boolean contains(java.net.URI uri)
Test if the URI is present in the collection.


add

public void add(java.net.URI uri)
Adds a new URI to the collection.


remove

public boolean remove(java.net.URI uri)
Removes a URI from the collection.


getAll

public java.util.List<java.net.URI> getAll()
Returns all redirect URIs in the order they were added to the collection.

Returns:
list of all URIs
Since:
4.1


Copyright © 1999-2011 The Apache Software Foundation. All Rights Reserved.