Enterprise Information Portal APIs

com.ibm.gcs.component.config
Class URLNamePattern

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

public class URLNamePattern
extends URLExcIncPattern

This type of URLExcIncPattern matches a URL using a single name string and wildcards. The '*' wild cards can be at the beginning and/or end of the name string, and match any (or no) characters. This pattern can be used in the content-type-pattern-list or the exclude-pattern-list or the include-pattern-list of a CrawlPattern in a Group in the GCS Config. It is constructed from a url-name-pattern element.

See Also:
URLExcIncPattern, CrawlPattern, Group, Config

Method Summary
 java.lang.String getURLNamePattern()
          returns the url pattern in string form
 boolean matches(java.lang.String urlpiece)
          checks whether a given URL piece matches this URLNamePattern
 boolean matches(java.net.URL url)
          checks whether a given URL matches this URLNamePattern
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getURLNamePattern

public java.lang.String getURLNamePattern()
returns the url pattern in string form

matches

public boolean matches(java.net.URL url)
checks whether a given URL matches this URLNamePattern
Overrides:
matches in class URLExcIncPattern

matches

public boolean matches(java.lang.String urlpiece)
checks whether a given URL piece matches this URLNamePattern

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

EIP Web Crawler APIs

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