Package org.eclipse.equinox.plurl
Interface PlurlStreamHandler
- All Known Implementing Classes:
BundleResourceHandler
,Handler
,Handler
,Handler
,PlurlStreamHandlerBase
public interface PlurlStreamHandler
The
PlurlStreamHandler
interface has public versions of the protected
URLStreamHandler
methods.
The important differences between this interface and the
URLStreamHandler
class are that the setURL
method is absent
and the parseURL
method takes a PlurlStreamHandler.PlurlSetter
object as the
first argument. Classes implementing this interface must call the
setURL
method on the PlurlSetter
object received in the
parseURL
method instead of URLStreamHandler.setURL
to avoid a
SecurityException
.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Interface used byPlurlStreamHandler
objects to call thesetURL
method on the plurl proxyURLStreamHandler
object. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
boolean
hostsEqual
(URL u1, URL u2) openConnection
(URL u, Proxy p) void
parseURL
(PlurlStreamHandler.PlurlSetter plurlSetter, URL u, String spec, int start, int limit) Parse a URL.boolean
void
If the plurlSetter is notnull
from theparseURL(PlurlSetter, URL, String, int, int)
then call thePlurlStreamHandler.PlurlSetter.setURL(URL, String, String, int, String, String, String, String, String)
method.void
setURL
(URL u, String proto, String host, int port, String auth, String user, String path, String query, String ref) If the plurlSetter is notnull
from theparseURL(PlurlSetter, URL, String, int, int)
then call thePlurlStreamHandler.PlurlSetter.setURL(URL, String, String, int, String, String, String, String, String)
method.
-
Method Details
-
equals
- See Also:
-
hashCode
- See Also:
-
hostsEqual
- See Also:
-
getDefaultPort
int getDefaultPort()- See Also:
-
getHostAddress
- See Also:
-
openConnection
- Throws:
IOException
- See Also:
-
openConnection
- Throws:
IOException
- See Also:
-
sameFile
- See Also:
-
toExternalForm
- See Also:
-
parseURL
Parse a URL. This method is called by theURLStreamHandler
proxy implemented by plurl, instead ofjava.net.URLStreamHandler.parseURL
, passing aPlurlSetter
object.- Parameters:
plurlSetter
- The object on whichsetURL
must be invoked for this URL. If the setter isnull
then thesetURL(URL, String, String, int, String, String, String, String, String)
method can be called directly.- See Also:
-
setURL
If the plurlSetter is notnull
from theparseURL(PlurlSetter, URL, String, int, int)
then call thePlurlStreamHandler.PlurlSetter.setURL(URL, String, String, int, String, String, String, String, String)
method. Otherwise callsuper.setURL
.- See Also:
-
setURL
void setURL(URL u, String proto, String host, int port, String auth, String user, String path, String query, String ref) If the plurlSetter is notnull
from theparseURL(PlurlSetter, URL, String, int, int)
then call thePlurlStreamHandler.PlurlSetter.setURL(URL, String, String, int, String, String, String, String, String)
method. Otherwise callsuper.setURL
.- See Also:
-