org.archive.wayback.query
Class Renderer

java.lang.Object
  extended by org.archive.wayback.query.Renderer
All Implemented Interfaces:
QueryRenderer

public class Renderer
extends Object
implements QueryRenderer

Brain-dead simple QueryRenderer implementation, which shunts all the work off to a .jsp file as defined by administrators. Also has basic logic to switch to a different .jsp to format request asking for XML data.

Version:
$Date: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
Author:
brad

Constructor Summary
Renderer()
           
 
Method Summary
 String getCaptureJsp()
           
 String getUrlJsp()
           
 String getXmlCaptureJsp()
           
 String getXmlUrlJsp()
           
 void renderCaptureResults(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse, WaybackRequest wbRequest, CaptureSearchResults results, ResultURIConverter uriConverter)
          Display matching SearchResults for the WaybackRequest to the user.
 void renderUrlResults(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse, WaybackRequest wbRequest, UrlSearchResults results, ResultURIConverter uriConverter)
          Show the SearchResults of the request which may have resulted in multiple matching URLs.
 void setCaptureJsp(String captureJsp)
           
 void setUrlJsp(String urlJsp)
           
 void setXmlCaptureJsp(String xmlCaptureJsp)
           
 void setXmlUrlJsp(String xmlUrlJsp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Renderer

public Renderer()
Method Detail

renderCaptureResults

public void renderCaptureResults(javax.servlet.http.HttpServletRequest httpRequest,
                                 javax.servlet.http.HttpServletResponse httpResponse,
                                 WaybackRequest wbRequest,
                                 CaptureSearchResults results,
                                 ResultURIConverter uriConverter)
                          throws javax.servlet.ServletException,
                                 IOException
Description copied from interface: QueryRenderer
Display matching SearchResults for the WaybackRequest to the user.

Specified by:
renderCaptureResults in interface QueryRenderer
Parameters:
httpRequest - the HttpServletRequest
httpResponse - the HttpServletResponse
wbRequest - the WaybackRequest that returned the results
results - the SearchResults that the WaybackRequest matched
uriConverter - the URI converter to use to translate matching results into replayable URLs
Throws:
javax.servlet.ServletException - per usual
IOException - per usual

renderUrlResults

public void renderUrlResults(javax.servlet.http.HttpServletRequest httpRequest,
                             javax.servlet.http.HttpServletResponse httpResponse,
                             WaybackRequest wbRequest,
                             UrlSearchResults results,
                             ResultURIConverter uriConverter)
                      throws javax.servlet.ServletException,
                             IOException
Description copied from interface: QueryRenderer
Show the SearchResults of the request which may have resulted in multiple matching URLs.

Specified by:
renderUrlResults in interface QueryRenderer
Parameters:
httpRequest - the HttpServletRequest
httpResponse - the HttpServletResponse
wbRequest - the WaybackRequest that returned the results
results - the SearchResults that the WaybackRequest matched
uriConverter - the URI converter to use to translate matching results into replayable URLs
Throws:
javax.servlet.ServletException - per usual
IOException - per usual

getCaptureJsp

public String getCaptureJsp()
Returns:
the captureJsp

setCaptureJsp

public void setCaptureJsp(String captureJsp)
Parameters:
captureJsp - the captureJsp to set

getUrlJsp

public String getUrlJsp()
Returns:
the urlJsp

setUrlJsp

public void setUrlJsp(String urlJsp)
Parameters:
urlJsp - the urlJsp to set

getXmlCaptureJsp

public String getXmlCaptureJsp()
Returns:
the xmlCaptureJsp

setXmlCaptureJsp

public void setXmlCaptureJsp(String xmlCaptureJsp)
Parameters:
xmlCaptureJsp - the xmlCaptureJsp to set

getXmlUrlJsp

public String getXmlUrlJsp()
Returns:
the xmlUrlJsp

setXmlUrlJsp

public void setXmlUrlJsp(String xmlUrlJsp)
Parameters:
xmlUrlJsp - the xmlUrlJsp to set


Copyright © 2005-2011 Internet Archive. All Rights Reserved.