Apache JMeter

org.apache.jmeter.protocol.http.parser
Class URLString

java.lang.Object
  extended by org.apache.jmeter.protocol.http.parser.URLString
All Implemented Interfaces:
java.lang.Comparable

public class URLString
extends java.lang.Object
implements java.lang.Comparable

Helper class to allow URLs to be stored in Collections without incurring the cost of the hostname lookup performed by the URL methods equals() and hashCode() URL is a final class, so cannot be extended ...

Version:
$Revision: 768439 $

Constructor Summary
URLString(java.lang.String s)
           
URLString(java.net.URL u)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object o)
           
 java.net.URL getURL()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

URLString

public URLString(java.net.URL u)

URLString

public URLString(java.lang.String s)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getURL

public java.net.URL getURL()

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

Apache JMeter

Copyright © 1998-2009 Apache Software Foundation. All Rights Reserved.