Skip navigation links

Oracle® Ultra Search Java API Reference
11g Release 1 (11.1)

B28329-02


oracle.ultrasearch.crawler
Interface UrlRewriter


public interface UrlRewriter

UrlRewriter is an interface for crawler user to rewrite the url links extracted from the web page


Method Summary
 void close()
          Close url rewriter
 void open(java.io.PrintWriter log)
          Open url rewriter
 boolean rewrite(UrlCandidate candidate)
          rewrite the submitted url

 

Method Detail

open

void open(java.io.PrintWriter log)
          throws UrlRewriteException
Open url rewriter
Parameters:
log - the crawler log file
Throws:
UrlRewriteException - if error

close

void close()
           throws UrlRewriteException
Close url rewriter
Throws:
UrlRewriteException - if error

rewrite

boolean rewrite(UrlCandidate candidate)
                throws UrlRewriteException
rewrite the submitted url
Parameters:
candidate - the target url string
Returns:
true if url has been rewritten, false if no change
Throws:
UrlRewriteException - if error

Skip navigation links

Oracle® Ultra Search Java API Reference
11g Release 1 (11.1)

B28329-02


Copyright © 2002,2008, Oracle. All Rights Reserved.