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 SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInterface used byPlurlStreamHandlerobjects to call thesetURLmethod on the plurl proxyURLStreamHandlerobject.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanintintbooleanhostsEqual(URL u1, URL u2) openConnection(URL u, Proxy p) voidparseURL(PlurlStreamHandler.PlurlSetter plurlSetter, URL u, String spec, int start, int limit) Parse a URL.booleanvoidIf the plurlSetter is notnullfrom theparseURL(PlurlSetter, URL, String, int, int)then call thePlurlStreamHandler.PlurlSetter.setURL(URL, String, String, int, String, String, String, String, String)method.voidsetURL(URL u, String proto, String host, int port, String auth, String user, String path, String query, String ref) If the plurlSetter is notnullfrom 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:
 
- 
getDefaultPortint getDefaultPort()- See Also:
 
- 
getHostAddress- See Also:
 
- 
openConnection- Throws:
- IOException
- See Also:
 
- 
openConnection- Throws:
- IOException
- See Also:
 
- 
sameFile- See Also:
 
- 
toExternalForm- See Also:
 
- 
parseURLParse a URL. This method is called by theURLStreamHandlerproxy implemented by plurl, instead ofjava.net.URLStreamHandler.parseURL, passing aPlurlSetterobject.- Parameters:
- plurlSetter- The object on which- setURLmust be invoked for this URL. If the setter is- nullthen the- setURL(URL, String, String, int, String, String, String, String, String)method can be called directly.
- See Also:
 
- 
setURLIf the plurlSetter is notnullfrom 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:
 
- 
setURLvoid setURL(URL u, String proto, String host, int port, String auth, String user, String path, String query, String ref) If the plurlSetter is notnullfrom 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:
 
 
-