Enterprise Information Portal APIs

com.ibm.gcs.netutil
Class GCSContentHandlerFactory

java.lang.Object
  |
  +--com.ibm.gcs.netutil.GCSContentHandlerFactory
All Implemented Interfaces:
java.net.ContentHandlerFactory

public class GCSContentHandlerFactory
extends java.lang.Object
implements java.net.ContentHandlerFactory

The GCSContentHandlerFactory implements the java.net.ContentHandlerFactory interface. Based on the content type string (see java.net.URLConnection#getContentType() and the getContentType methods of the URLConnection class' derived classes).


Constructor Summary
GCSContentHandlerFactory()
           
 
Method Summary
 java.net.ContentHandler createContentHandler(java.lang.String t)
          Creates a content handler based upon the contentType string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GCSContentHandlerFactory

public GCSContentHandlerFactory()
Method Detail

createContentHandler

public java.net.ContentHandler createContentHandler(java.lang.String t)
Creates a content handler based upon the contentType string. Currently it understands only "nntp" mime types, and "file" mime types.
Specified by:
createContentHandler in interface java.net.ContentHandlerFactory
Parameters:
type - content type string
Returns:
a content handler specific to the content type
Throws:
-  
See Also:
ContentHandlerFactory, GCSContentHandlerFactory, GCSFileContentHandler, GCSNntpContentHandler

EIP Web Crawler APIs

(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.