com.twitter.common.net
Class UrlResolver.ResolvedUrl

java.lang.Object
  extended by com.twitter.common.net.UrlResolver.ResolvedUrl
Enclosing class:
UrlResolver

public static class UrlResolver.ResolvedUrl
extends Object

Class to wrap the result of a URL resolution.


Nested Class Summary
static class UrlResolver.ResolvedUrl.EndState
           
 
Constructor Summary
UrlResolver.ResolvedUrl()
           
UrlResolver.ResolvedUrl(UrlResolver.ResolvedUrl.EndState endState, String startUrl, String... resolveChain)
           
 
Method Summary
 UrlResolver.ResolvedUrl.EndState getEndState()
           
 String getEndUrl()
          Returns the last URL resolved following a redirect chain, or null if the startUrl is a landing URL.
 Iterable<String> getIntermediateUrls()
          Returns any immediate URLs encountered on the resolution chain.
 String getStartUrl()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UrlResolver.ResolvedUrl

public UrlResolver.ResolvedUrl()

UrlResolver.ResolvedUrl

public UrlResolver.ResolvedUrl(UrlResolver.ResolvedUrl.EndState endState,
                               String startUrl,
                               String... resolveChain)
Method Detail

getStartUrl

public String getStartUrl()

getEndUrl

public String getEndUrl()
Returns the last URL resolved following a redirect chain, or null if the startUrl is a landing URL.


getIntermediateUrls

public Iterable<String> getIntermediateUrls()
Returns any immediate URLs encountered on the resolution chain. If the startUrl redirects directly to the endUrl or they are the same the imtermediate URLs will be empty.


getEndState

public UrlResolver.ResolvedUrl.EndState getEndState()

toString

public String toString()
Overrides:
toString in class Object