Package | Description |
---|---|
java.net | |
sun.net |
Modifier and Type | Field and Description |
---|---|
protected URL |
URLConnection.url
The URL represents the remote object on the World Wide Web to which this connection is opened.
|
Modifier and Type | Method and Description |
---|---|
URL |
URLConnection.getURL()
Returns the value of this
URLConnection 's URL field. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
URLStreamHandler.equals(URL u1,
URL u2)
Provides the default equals calculation.
|
protected int |
URLStreamHandler.hashCode(URL u)
Provides the default hash calculation.
|
protected boolean |
URLStreamHandler.hostsEqual(URL u1,
URL u2)
Compares the host components of two URLs.
|
protected abstract URLConnection |
URLStreamHandler.openConnection(URL u)
Opens a connection to the object referenced by the
URL argument. |
protected void |
URLStreamHandler.parseURL(URL u,
java.lang.String spec,
int start,
int limit)
Parses the string representation of a
URL into a
URL object. |
boolean |
URL.sameFile(URL other)
Compares two URLs, excluding the fragment component.
|
protected boolean |
URLStreamHandler.sameFile(URL u1,
URL u2)
Compare two urls to see whether they refer to the same file,
i.e., having the same protocol, host, port, and path.
|
protected void |
URLStreamHandler.setURL(URL u,
java.lang.String protocol,
java.lang.String host,
int port,
java.lang.String file,
java.lang.String ref)
Deprecated.
Use setURL(URL, String, String, int, String, String, String,
String);
|
protected void |
URLStreamHandler.setURL(URL u,
java.lang.String protocol,
java.lang.String host,
int port,
java.lang.String authority,
java.lang.String userInfo,
java.lang.String path,
java.lang.String query,
java.lang.String ref)
Sets the fields of the
URL argument to the indicated values. |
protected java.lang.String |
URLStreamHandler.toExternalForm(URL u)
Converts a
URL of a specific protocol to a
String . |
Constructor and Description |
---|
URL(URL context,
java.lang.String spec)
Creates a URL by parsing the given spec within a specified context.
|
URL(URL context,
java.lang.String spec,
URLStreamHandler handler)
Creates a URL by parsing the given spec with the specified handler within a specified context.
|
URLConnection(URL url)
Constructs a URL connection to the specified URL.
|
Modifier and Type | Method and Description |
---|---|
URL |
ProgressSource.getURL()
Return URL of progress source.
|
URL |
ProgressEvent.getURL()
Return URL related to the progress.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ProgressMonitor.shouldMeterInput(URL url,
java.lang.String method)
Return true if metering should be turned on
for a particular URL input stream.
|
boolean |
ProgressMeteringPolicy.shouldMeterInput(URL url,
java.lang.String method)
Return true if metering should be turned on for a particular network input stream.
|
Constructor and Description |
---|
ProgressEvent(ProgressSource source,
URL url,
java.lang.String method,
java.lang.String contentType,
ProgressSource.State state,
long progress,
long expected)
Construct a ProgressEvent object.
|
ProgressSource(URL url,
java.lang.String method)
Construct progress source object.
|
ProgressSource(URL url,
java.lang.String method,
long expected)
Construct progress source object.
|