org.osgi.service.url.AbstractURLStreamHandlerService Class Reference

Inheritance diagram for org.osgi.service.url.AbstractURLStreamHandlerService:

org.osgi.service.url.URLStreamHandlerService

List of all members.


Detailed Description

Abstract implementation of the URLStreamHandlerService interface.

All the methods simply invoke the corresponding methods on java.net.URLStreamHandler except for parseURL and setURL, which use the URLStreamHandlerSetter parameter. Subclasses of this abstract class should not need to override the setURL and parseURL(URLStreamHandlerSetter,...) methods.

Version:
Revision
1.8

Definition at line 34 of file AbstractURLStreamHandlerService.java.


Public Member Functions

abstract URLConnection openConnection (URL u) throws java.io.IOException
 
See also:
"java.net.URLStreamHandler.openConnection"

void parseURL (URLStreamHandlerSetter realHandler, URL u, String spec, int start, int limit)
 Parse a URL using the URLStreamHandlerSetter object.
String toExternalForm (URL u)
 This method calls super.toExternalForm.
boolean equals (URL u1, URL u2)
 This method calls super.equals(URL,URL).
int getDefaultPort ()
 This method calls super.getDefaultPort.
InetAddress getHostAddress (URL u)
 This method calls super.getHostAddress.
int hashCode (URL u)
 This method calls super.hashCode(URL).
boolean hostsEqual (URL u1, URL u2)
 This method calls super.hostsEqual.
boolean sameFile (URL u1, URL u2)
 This method calls super.sameFile.

Protected Member Functions

void setURL (URL u, String proto, String host, int port, String file, String ref)
 This method calls realHandler.setURL(URL,String,String,int,String,String).
void setURL (URL u, String proto, String host, int port, String auth, String user, String path, String query, String ref)
 This method calls realHandler.setURL(URL,String,String,int,String,String,String,String).

Protected Attributes

URLStreamHandlerSetter realHandler
 The URLStreamHandlerSetter object passed to the parseURL method.

Member Function Documentation

void org.osgi.service.url.AbstractURLStreamHandlerService.parseURL ( URLStreamHandlerSetter  realHandler,
URL  u,
String  spec,
int  start,
int  limit 
)

Parse a URL using the URLStreamHandlerSetter object.

This method sets the realHandler field with the specified URLStreamHandlerSetter object and then calls parseURL(URL,String,int,int).

Parameters:
realHandler The object on which the setURL method must be invoked for the specified URL.
See also:
"java.net.URLStreamHandler.parseURL"

Implements org.osgi.service.url.URLStreamHandlerService.

Definition at line 58 of file AbstractURLStreamHandlerService.java.

String org.osgi.service.url.AbstractURLStreamHandlerService.toExternalForm ( URL  u  ) 

This method calls super.toExternalForm.

See also:
"java.net.URLStreamHandler.toExternalForm"

Implements org.osgi.service.url.URLStreamHandlerService.

Definition at line 69 of file AbstractURLStreamHandlerService.java.

boolean org.osgi.service.url.AbstractURLStreamHandlerService.equals ( URL  u1,
URL  u2 
)

This method calls super.equals(URL,URL).

See also:
"java.net.URLStreamHandler.equals(URL,URL)"

Implements org.osgi.service.url.URLStreamHandlerService.

Definition at line 78 of file AbstractURLStreamHandlerService.java.

int org.osgi.service.url.AbstractURLStreamHandlerService.getDefaultPort (  ) 

This method calls super.getDefaultPort.

See also:
"java.net.URLStreamHandler.getDefaultPort"

Implements org.osgi.service.url.URLStreamHandlerService.

Definition at line 87 of file AbstractURLStreamHandlerService.java.

InetAddress org.osgi.service.url.AbstractURLStreamHandlerService.getHostAddress ( URL  u  ) 

This method calls super.getHostAddress.

See also:
"java.net.URLStreamHandler.getHostAddress"

Implements org.osgi.service.url.URLStreamHandlerService.

Definition at line 96 of file AbstractURLStreamHandlerService.java.

int org.osgi.service.url.AbstractURLStreamHandlerService.hashCode ( URL  u  ) 

This method calls super.hashCode(URL).

See also:
"java.net.URLStreamHandler.hashCode(URL)"

Implements org.osgi.service.url.URLStreamHandlerService.

Definition at line 105 of file AbstractURLStreamHandlerService.java.

boolean org.osgi.service.url.AbstractURLStreamHandlerService.hostsEqual ( URL  u1,
URL  u2 
)

This method calls super.hostsEqual.

See also:
"java.net.URLStreamHandler.hostsEqual"

Implements org.osgi.service.url.URLStreamHandlerService.

Definition at line 114 of file AbstractURLStreamHandlerService.java.

boolean org.osgi.service.url.AbstractURLStreamHandlerService.sameFile ( URL  u1,
URL  u2 
)

This method calls super.sameFile.

See also:
"java.net.URLStreamHandler.sameFile"

Implements org.osgi.service.url.URLStreamHandlerService.

Definition at line 123 of file AbstractURLStreamHandlerService.java.

void org.osgi.service.url.AbstractURLStreamHandlerService.setURL ( URL  u,
String  proto,
String  host,
int  port,
String  file,
String  ref 
) [protected]

This method calls realHandler.setURL(URL,String,String,int,String,String).

See also:
"java.net.URLStreamHandler.setURL(URL,String,String,int,String,String)"
Deprecated:
This method is only for compatibility with handlers written for JDK 1.1.

Definition at line 135 of file AbstractURLStreamHandlerService.java.

References org.osgi.service.url.AbstractURLStreamHandlerService.realHandler, and org.osgi.service.url.URLStreamHandlerSetter.setURL().

void org.osgi.service.url.AbstractURLStreamHandlerService.setURL ( URL  u,
String  proto,
String  host,
int  port,
String  auth,
String  user,
String  path,
String  query,
String  ref 
) [protected]

This method calls realHandler.setURL(URL,String,String,int,String,String,String,String).

See also:
"java.net.URLStreamHandler.setURL(URL,String,String,int,String,String,String,String)"

Definition at line 146 of file AbstractURLStreamHandlerService.java.

References org.osgi.service.url.AbstractURLStreamHandlerService.realHandler, and org.osgi.service.url.URLStreamHandlerSetter.setURL().


The documentation for this class was generated from the following file:
Generated on Mon Jan 11 21:19:24 2010 for OpenMobileIS by  doxygen 1.5.4