Enterprise Information Portal APIs

com.ibm.gcs.component.config
Class ResourceHandler

java.lang.Object
  |
  +--com.ibm.gcs.component.config.ResourceHandler

public class ResourceHandler
extends java.lang.Object

This part of a SummarizerConfig maps a com.ibm.gcs.summarizer.Summarizable class and a com.ibm.gcs.summarizer.SummaryMaker class to a specified content-type pattern. It can also have a set of optional params. This class corresponds to a content-handler element in the config file.

See Also:
SummarizerConfig, Group, Config

Method Summary
 java.lang.String getContentType()
          returns the content-type String for this handler
 Group getGroup()
          returns the group that this handler belongs to
 java.lang.String getParam(java.lang.String name)
          returns the value of particular param (this will not work well if there is more than one param with the same name!!!)
 java.lang.String[][] getParams()
          returns all of the params
 java.lang.String getSummarizableClassName()
          returns the Summarizable class name for this handler
 java.lang.reflect.Constructor getSummarizableConstructor()
          returns the Summarizable Constructor for this handler
 java.lang.String getSummaryMakerClassName()
          returns the SummaryMaker class name for this handler
 java.lang.reflect.Constructor getSummaryMakerConstructor()
          returns the SummaryMaker Constructor for this handler
 boolean matches(java.lang.String contentType, java.lang.String extension)
          checks if a specified content-type is handled by this ResourceHandler
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

matches

public boolean matches(java.lang.String contentType,
                       java.lang.String extension)
checks if a specified content-type is handled by this ResourceHandler

getContentType

public java.lang.String getContentType()
returns the content-type String for this handler

getSummarizableClassName

public java.lang.String getSummarizableClassName()
returns the Summarizable class name for this handler

getSummarizableConstructor

public java.lang.reflect.Constructor getSummarizableConstructor()
returns the Summarizable Constructor for this handler

getSummaryMakerClassName

public java.lang.String getSummaryMakerClassName()
returns the SummaryMaker class name for this handler

getSummaryMakerConstructor

public java.lang.reflect.Constructor getSummaryMakerConstructor()
returns the SummaryMaker Constructor for this handler

getParams

public java.lang.String[][] getParams()
returns all of the params

getParam

public java.lang.String getParam(java.lang.String name)
returns the value of particular param (this will not work well if there is more than one param with the same name!!!)

getGroup

public Group getGroup()
returns the group that this handler belongs to

EIP Web Crawler APIs

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