|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.bootstrap.BootstrapServer
public class BootstrapServer
A URL for a GWebCache endpoint, plus some additional connection history data:
GWebCache
,
HostCatcher
,
Serialized FormConstructor Summary | |
---|---|
BootstrapServer()
|
|
BootstrapServer(java.lang.String s)
Constructs a new BootstrapServer from a URL or an extended gnutella.net data line. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Returns true if o is a BootStrapServer with the same URL. |
java.lang.String |
get_url()
|
java.lang.String |
getURLString()
Returns the URL to the server, minus any request parameters. |
int |
hashCode()
Creates an integer suitable for hash table indexing. |
void |
set_url(java.lang.String url)
|
static boolean |
startsWithIgnoreCase(java.lang.String s,
java.lang.String prefix)
Returns true iff s starts with prefix, ignoring case. |
java.lang.String |
toString()
Returns a parsable represenation of this. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BootstrapServer()
public BootstrapServer(java.lang.String s) throws java.text.ParseException
s
- single line of the form "http://server.com/path/to/script" or
or "http://server.com/path/to/script,dtime,ctimes,ftimes". In the
extended format, "dtime" is the host discovery time, ctimes is a
semicolon separated list of successful connect times, and ftimes is
semicolon separated list of unsuccessful connect times.
java.text.ParseException
- line could not be be parsed in
either format. The offset is not necessarily set.Method Detail |
---|
public java.lang.String getURLString()
public void set_url(java.lang.String url)
public java.lang.String get_url()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
The hash code is based upon all the URL components relevant for URL comparison. As such, this operation is a blocking operation.
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public static boolean startsWithIgnoreCase(java.lang.String s, java.lang.String prefix)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |