Package org.eclipse.equinox.plurl
Class PlurlStreamHandlerBase
java.lang.Object
java.net.URLStreamHandler
org.eclipse.equinox.plurl.PlurlStreamHandlerBase
- All Implemented Interfaces:
PlurlStreamHandler
- Direct Known Subclasses:
BundleResourceHandler
,Handler
Abstract implementation of the
PlurlStreamHandler
interface. All
the methods simply invoke the corresponding methods on
java.net.URLStreamHandler
except for parseURL
and
setURL
, which use the PlurlSetter
parameter.
Subclasses of this abstract class should not need to override the
setURL
and parseURL(URLStreamHandlerSetter,...)
methods.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.equinox.plurl.PlurlStreamHandler
PlurlStreamHandler.PlurlSetter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
This method callssuper.equals(URL,URL)
.int
This method callssuper.getDefaultPort
.This method callssuper.getHostAddress
.int
This method callssuper.hashCode(URL)
.boolean
hostsEqual
(URL u1, URL u2) This method callssuper.hostsEqual
.abstract URLConnection
openConnection
(URL u, Proxy p) This method callssuper.openConnection(URL, Proxy)
void
parseURL
(PlurlStreamHandler.PlurlSetter setter, URL u, String spec, int start, int limit) Parse a URL using thePlurlSetter
object.boolean
This method callssuper.sameFile
.void
This method callsplurlSetter.setURL(URL,String,String,int,String,String,String,String)
.void
setURL
(URL u, String proto, String host, int port, String auth, String user, String path, String query, String ref) This method callsrealHandler.setURL(URL,String,String,int,String,String,String,String)
.This method callssuper.toExternalForm
.Methods inherited from class java.net.URLStreamHandler
parseURL
-
Constructor Details
-
PlurlStreamHandlerBase
public PlurlStreamHandlerBase()
-
-
Method Details
-
openConnection
- Specified by:
openConnection
in interfacePlurlStreamHandler
- Specified by:
openConnection
in classURLStreamHandler
- Throws:
IOException
- See Also:
-
parseURL
public void parseURL(PlurlStreamHandler.PlurlSetter setter, URL u, String spec, int start, int limit) Parse a URL using thePlurlSetter
object. This method sets theplurlSetter
field with the specifiedPlurlSetter
object and then callsparseURL(URL,String,int,int)
.- Specified by:
parseURL
in interfacePlurlStreamHandler
- Parameters:
setter
- The object on which thesetURL
method must be invoked for the specified URL.- See Also:
-
openConnection
This method callssuper.openConnection(URL, Proxy)
- Specified by:
openConnection
in interfacePlurlStreamHandler
- Overrides:
openConnection
in classURLStreamHandler
- Throws:
IOException
- See Also:
-
toExternalForm
This method callssuper.toExternalForm
.- Specified by:
toExternalForm
in interfacePlurlStreamHandler
- Overrides:
toExternalForm
in classURLStreamHandler
- See Also:
-
equals
This method callssuper.equals(URL,URL)
.- Specified by:
equals
in interfacePlurlStreamHandler
- Overrides:
equals
in classURLStreamHandler
- See Also:
-
getDefaultPort
public int getDefaultPort()This method callssuper.getDefaultPort
.- Specified by:
getDefaultPort
in interfacePlurlStreamHandler
- Overrides:
getDefaultPort
in classURLStreamHandler
- See Also:
-
getHostAddress
This method callssuper.getHostAddress
.- Specified by:
getHostAddress
in interfacePlurlStreamHandler
- Overrides:
getHostAddress
in classURLStreamHandler
- See Also:
-
hashCode
This method callssuper.hashCode(URL)
.- Specified by:
hashCode
in interfacePlurlStreamHandler
- Overrides:
hashCode
in classURLStreamHandler
- See Also:
-
hostsEqual
This method callssuper.hostsEqual
.- Specified by:
hostsEqual
in interfacePlurlStreamHandler
- Overrides:
hostsEqual
in classURLStreamHandler
- See Also:
-
sameFile
This method callssuper.sameFile
.- Specified by:
sameFile
in interfacePlurlStreamHandler
- Overrides:
sameFile
in classURLStreamHandler
- See Also:
-
setURL
This method callsplurlSetter.setURL(URL,String,String,int,String,String,String,String)
.- Specified by:
setURL
in interfacePlurlStreamHandler
- Overrides:
setURL
in classURLStreamHandler
- See Also:
-
setURL
public void setURL(URL u, String proto, String host, int port, String auth, String user, String path, String query, String ref) This method callsrealHandler.setURL(URL,String,String,int,String,String,String,String)
.- Specified by:
setURL
in interfacePlurlStreamHandler
- Overrides:
setURL
in classURLStreamHandler
- See Also:
-