Content Handler

Description
This bundle demonstrates how to use the OSGi URL Handlers Service. It registers a content handler for the "text/plain" MIME type. This example marks a departure from most OSGi services in that there is no service interface associated with a content handler, instead a class is used.

Contributor(s)
Stephane Chomat (stephane.chomat@imag.fr)

License
GPL

Services
Name(s)
java.net.ContentHandler
Relevant class(es)
public abstract class ContentHandler
{
public ContentHandler() { ... }
public abstract Object getContent(URLConnection urlc);
public Object getContent(URLConnection urlc, Class[] classes)
throws IOException;
}

Properties
None

Requirements
org.osgi.service.url