public class

RedirectLocations

extends Object
java.lang.Object
   ↳ org.apache.http.impl.client.RedirectLocations

Class Overview

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

Summary

Public Constructors
RedirectLocations()
Public Methods
void add(URI uri)
Adds a new URI to the collection.
boolean contains(URI uri)
Test if the URI is present in the collection.
List<URI> getAll()
Returns all redirect URIs in the order they were added to the collection.
boolean remove(URI uri)
Removes a URI from the collection.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RedirectLocations ()

Also: HttpClient

Public Methods

public void add (URI uri)

Also: HttpClient

Adds a new URI to the collection.

public boolean contains (URI uri)

Also: HttpClient

Test if the URI is present in the collection.

public List<URI> getAll ()

Also: HttpClient

Returns all redirect URIs in the order they were added to the collection.

Returns
  • list of all URIs

public boolean remove (URI uri)

Also: HttpClient

Removes a URI from the collection.