public class Handler extends URLStreamHandler implements URLStreamHandlerFactory
| Constructor and Description |
|---|
Handler() |
| Modifier and Type | Method and Description |
|---|---|
URLStreamHandler |
createURLStreamHandler(String protocol)
creates URLStreamHandler instance for FSP protocol.
|
protected boolean |
equals(URL u1,
URL u2)
Check if two FSP URLs are Equal.
|
protected int |
getDefaultPort()
Get default port in none is specified in URL.
|
protected int |
hashCode(URL u) |
protected URLConnection |
openConnection(URL u)
opens a FSP connection.
|
protected String |
toExternalForm(URL u)
Converts FSP protocol URL to String
|
getHostAddress, hostsEqual, openConnection, parseURL, sameFile, setURL, setURLpublic URLStreamHandler createURLStreamHandler(String protocol)
createURLStreamHandler in interface URLStreamHandlerFactoryprotocol - requested protocol. Only FSP is supported.protected boolean equals(URL u1, URL u2)
equals in class URLStreamHandleru1 - first FSP url to compareu2 - second FSP url to compareprotected int getDefaultPort()
getDefaultPort in class URLStreamHandlerprotected int hashCode(URL u)
hashCode in class URLStreamHandlerprotected URLConnection openConnection(URL u)
openConnection in class URLStreamHandleru - URL to be openedFSPURLConnectionprotected String toExternalForm(URL u)
toExternalForm in class URLStreamHandleru - URL to be convertedCopyright © 2019 FSP Project. All rights reserved.