Oracle Ultra Search Java API Reference
9.0.3

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

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

close

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

rewrite

public 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

Oracle Ultra Search Java API Reference
9.0.3