Package org.osgi.service.url
Interface URLStreamHandlerService
- All Known Implementing Classes:
 AbstractURLStreamHandlerService
@ConsumerType
public interface URLStreamHandlerService
Service interface with public versions of the protected
 
java.net.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 URLStreamHandlerSetter object
 as the first argument. Classes implementing this interface must call the
 setURL method on the URLStreamHandlerSetter object received
 in the parseURL method instead of URLStreamHandler.setURL to
 avoid a SecurityException.
- Author:
 - $Id: 810d8718f5ad689981fbb2c22886ad2695f17297 $
 - See Also:
 
- 
Method Summary
Modifier and TypeMethodDescriptionbooleanintintbooleanhostsEqual(URL u1, URL u2) voidparseURL(URLStreamHandlerSetter realHandler, URL u, String spec, int start, int limit) Parse a URL.boolean 
- 
Method Details
- 
openConnection
- Throws:
 IOException- See Also:
 
 - 
parseURL
Parse a URL. This method is called by theURLStreamHandlerproxy, instead ofjava.net.URLStreamHandler.parseURL, passing aURLStreamHandlerSetterobject.- Parameters:
 realHandler- The object on whichsetURLmust be invoked for this URL.- See Also:
 
 - 
toExternalForm
- See Also:
 
 - 
equals
- See Also:
 
 - 
getDefaultPort
int getDefaultPort()- See Also:
 
 - 
getHostAddress
- See Also:
 
 - 
hashCode
- See Also:
 
 - 
hostsEqual
- See Also:
 
 - 
sameFile
- See Also:
 
 
 -