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 TypeMethodDescriptionbooleanThis method callssuper.equals(URL,URL).intThis method callssuper.getDefaultPort.This method callssuper.getHostAddress.intThis method callssuper.hashCode(URL).booleanhostsEqual(URL u1, URL u2) This method callssuper.hostsEqual.abstract URLConnectionopenConnection(URL u, Proxy p) This method callssuper.openConnection(URL, Proxy)voidparseURL(PlurlStreamHandler.PlurlSetter setter, URL u, String spec, int start, int limit) Parse a URL using thePlurlSetterobject.booleanThis method callssuper.sameFile.voidThis method callsplurlSetter.setURL(URL,String,String,int,String,String,String,String).voidsetURL(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:
openConnectionin interfacePlurlStreamHandler- Specified by:
openConnectionin classURLStreamHandler- Throws:
IOException- See Also:
-
parseURL
public void parseURL(PlurlStreamHandler.PlurlSetter setter, URL u, String spec, int start, int limit) Parse a URL using thePlurlSetterobject. This method sets theplurlSetterfield with the specifiedPlurlSetterobject and then callsparseURL(URL,String,int,int).- Specified by:
parseURLin interfacePlurlStreamHandler- Parameters:
setter- The object on which thesetURLmethod must be invoked for the specified URL.- See Also:
-
openConnection
This method callssuper.openConnection(URL, Proxy)- Specified by:
openConnectionin interfacePlurlStreamHandler- Overrides:
openConnectionin classURLStreamHandler- Throws:
IOException- See Also:
-
toExternalForm
This method callssuper.toExternalForm.- Specified by:
toExternalFormin interfacePlurlStreamHandler- Overrides:
toExternalFormin classURLStreamHandler- See Also:
-
equals
This method callssuper.equals(URL,URL).- Specified by:
equalsin interfacePlurlStreamHandler- Overrides:
equalsin classURLStreamHandler- See Also:
-
getDefaultPort
public int getDefaultPort()This method callssuper.getDefaultPort.- Specified by:
getDefaultPortin interfacePlurlStreamHandler- Overrides:
getDefaultPortin classURLStreamHandler- See Also:
-
getHostAddress
This method callssuper.getHostAddress.- Specified by:
getHostAddressin interfacePlurlStreamHandler- Overrides:
getHostAddressin classURLStreamHandler- See Also:
-
hashCode
This method callssuper.hashCode(URL).- Specified by:
hashCodein interfacePlurlStreamHandler- Overrides:
hashCodein classURLStreamHandler- See Also:
-
hostsEqual
This method callssuper.hostsEqual.- Specified by:
hostsEqualin interfacePlurlStreamHandler- Overrides:
hostsEqualin classURLStreamHandler- See Also:
-
sameFile
This method callssuper.sameFile.- Specified by:
sameFilein interfacePlurlStreamHandler- Overrides:
sameFilein classURLStreamHandler- See Also:
-
setURL
This method callsplurlSetter.setURL(URL,String,String,int,String,String,String,String).- Specified by:
setURLin interfacePlurlStreamHandler- Overrides:
setURLin 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:
setURLin interfacePlurlStreamHandler- Overrides:
setURLin classURLStreamHandler- See Also:
-