public class NullURLStreamHandlerService extends Object implements URLStreamHandlerService
Constructor and Description |
---|
NullURLStreamHandlerService() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(URL url1,
URL url2) |
int |
getDefaultPort() |
InetAddress |
getHostAddress(URL url) |
int |
hashCode(URL url) |
boolean |
hostsEqual(URL url1,
URL url2) |
URLConnection |
openConnection(URL u) |
void |
parseURL(URLStreamHandlerSetter realHandler,
URL u,
String spec,
int start,
int limit)
Parse a URL.
|
boolean |
sameFile(URL url1,
URL url2) |
void |
setURL(URL u,
String protocol,
String host,
int port,
String file,
String ref) |
void |
setURL(URL u,
String protocol,
String host,
int port,
String authority,
String userInfo,
String file,
String query,
String ref) |
String |
toExternalForm(URL url) |
public URLConnection openConnection(URL u) throws IOException
openConnection
in interface URLStreamHandlerService
IOException
public boolean equals(URL url1, URL url2)
equals
in interface URLStreamHandlerService
public int getDefaultPort()
getDefaultPort
in interface URLStreamHandlerService
public InetAddress getHostAddress(URL url)
getHostAddress
in interface URLStreamHandlerService
public int hashCode(URL url)
hashCode
in interface URLStreamHandlerService
public boolean hostsEqual(URL url1, URL url2)
hostsEqual
in interface URLStreamHandlerService
public boolean sameFile(URL url1, URL url2)
sameFile
in interface URLStreamHandlerService
public void setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String file, String query, String ref)
public String toExternalForm(URL url)
toExternalForm
in interface URLStreamHandlerService
public void parseURL(URLStreamHandlerSetter realHandler, URL u, String spec, int start, int limit)
URLStreamHandlerService
URLStreamHandler
proxy,
instead of java.net.URLStreamHandler.parseURL
, passing a
URLStreamHandlerSetter
object.parseURL
in interface URLStreamHandlerService
realHandler
- The object on which setURL
must be invoked for
this URL.Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.