|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.archive.wayback.core.UIResults
public class UIResults
Simple class which acts as the go-between between Java request handling code and .jsp files which actually draw various forms of results for end user consumption. Designed to be flexible enough to handle forward various types of data to the eventual .jsp files, and provides a handful of convenience method to simplify .jsp code. 5 main "forms" of this object: 1) Generic: has WaybackRequest, uriConverter 2) Exception: has WaybackRequest, uriConverter, WaybackException 3) CaptureQuery: has WaybackRequest, uriConverter, CaptureSearchResults 4) UrlQuery: has WaybackRequest, uriConverter, UrlSearchResults 5) Replay: has WaybackRequest, uriConverter, CaptureSearchResult, CaptureSearchResults, Resource There are constructors to create each of these forms from the appropriate component objects. There is also a common method "forward()" which will store the UIResults object into an HttpServletRequest, for later retrieval by .jsp files. There are static methods to extract each of these from an HttpServletRequest, which will also verify that the appropriate internal objects are present. These methods are intended to be used by the target .jsp files.
| Constructor Summary | |
|---|---|
UIResults(WaybackRequest wbRequest,
ResultURIConverter uriConverter)
|
|
UIResults(WaybackRequest wbRequest,
ResultURIConverter uriConverter,
CaptureSearchResults captureResults)
|
|
UIResults(WaybackRequest wbRequest,
ResultURIConverter uriConverter,
CaptureSearchResults captureResults,
CaptureSearchResult result,
Resource resource)
|
|
UIResults(WaybackRequest wbRequest,
ResultURIConverter uriConverter,
UrlSearchResults urlResults)
|
|
UIResults(WaybackRequest wbRequest,
ResultURIConverter uriConverter,
WaybackException exception)
|
|
| Method Summary | |
|---|---|
static java.lang.String |
encodeXMLContent(java.lang.String content)
return a string appropriate for inclusion as an XML tag |
static java.lang.String |
encodeXMLEntity(java.lang.String tagName)
return a string appropriate for inclusion as an XML tag |
static java.lang.String |
encodeXMLEntityQuote(java.lang.String content)
return a string appropriate for inclusion as an XML tag |
static UIResults |
extractCaptureQuery(javax.servlet.http.HttpServletRequest httpRequest)
|
static UIResults |
extractException(javax.servlet.http.HttpServletRequest httpRequest)
|
static UIResults |
extractReplay(javax.servlet.http.HttpServletRequest httpRequest)
|
static UIResults |
extractUrlQuery(javax.servlet.http.HttpServletRequest httpRequest)
|
void |
forward(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String target)
|
CaptureSearchResults |
getCaptureResults()
|
java.lang.String |
getContentJsp()
|
java.lang.String |
getContextConfig(java.lang.String configName)
|
java.lang.String |
getContextPrefix()
Deprecated. |
WaybackException |
getException()
|
StringFormatter |
getFormatter()
Deprecated. |
static UIResults |
getGeneric(javax.servlet.http.HttpServletRequest httpRequest)
|
java.lang.String |
getOriginalRequestURL()
|
Resource |
getResource()
|
CaptureSearchResult |
getResult()
|
java.lang.String |
getServerPrefix()
Deprecated. |
ResultURIConverter |
getURIConverter()
|
UrlSearchResults |
getUrlResults()
|
WaybackRequest |
getWbRequest()
|
java.lang.String |
makeCaptureQueryUrl(java.lang.String url)
|
java.lang.String |
makeReplayUrl(java.lang.String url,
java.lang.String timestamp)
Deprecated. |
java.lang.String |
resultToReplayUrl(CaptureSearchResult result)
|
void |
setContentJsp(java.lang.String contentJsp)
Deprecated. |
void |
storeInRequest(javax.servlet.http.HttpServletRequest httpRequest,
java.lang.String contentJsp)
Store this UIResults in the HttpServletRequest argument. |
java.lang.String |
urlForPage(int pageNum)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UIResults(WaybackRequest wbRequest,
ResultURIConverter uriConverter)
public UIResults(WaybackRequest wbRequest,
ResultURIConverter uriConverter,
WaybackException exception)
public UIResults(WaybackRequest wbRequest,
ResultURIConverter uriConverter,
CaptureSearchResults captureResults)
public UIResults(WaybackRequest wbRequest,
ResultURIConverter uriConverter,
UrlSearchResults urlResults)
public UIResults(WaybackRequest wbRequest,
ResultURIConverter uriConverter,
CaptureSearchResults captureResults,
CaptureSearchResult result,
Resource resource)
| Method Detail |
|---|
public WaybackRequest getWbRequest()
public ResultURIConverter getURIConverter()
public CaptureSearchResults getCaptureResults()
public UrlSearchResults getUrlResults()
public CaptureSearchResult getResult()
public Resource getResource()
public WaybackException getException()
public java.lang.String getContentJsp()
public java.lang.String getOriginalRequestURL()
public java.lang.String makeCaptureQueryUrl(java.lang.String url)
url -
public java.lang.String getContextConfig(java.lang.String configName)
configName -
public java.lang.String resultToReplayUrl(CaptureSearchResult result)
result -
public java.lang.String urlForPage(int pageNum)
pageNum -
public void storeInRequest(javax.servlet.http.HttpServletRequest httpRequest,
java.lang.String contentJsp)
httpRequest - contentJsp -
public void forward(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String target)
throws javax.servlet.ServletException,
java.io.IOException
request - response - targt -
javax.servlet.ServletException
java.io.IOExceptionpublic static UIResults getGeneric(javax.servlet.http.HttpServletRequest httpRequest)
httpRequest -
public static UIResults extractException(javax.servlet.http.HttpServletRequest httpRequest)
throws javax.servlet.ServletException
httpRequest -
javax.servlet.ServletException
public static UIResults extractCaptureQuery(javax.servlet.http.HttpServletRequest httpRequest)
throws javax.servlet.ServletException
httpRequest -
javax.servlet.ServletException
public static UIResults extractUrlQuery(javax.servlet.http.HttpServletRequest httpRequest)
throws javax.servlet.ServletException
httpRequest -
javax.servlet.ServletException
public static UIResults extractReplay(javax.servlet.http.HttpServletRequest httpRequest)
throws javax.servlet.ServletException
httpRequest -
javax.servlet.ServletExceptionpublic static java.lang.String encodeXMLEntity(java.lang.String tagName)
tagName -
public static java.lang.String encodeXMLContent(java.lang.String content)
content -
public static java.lang.String encodeXMLEntityQuote(java.lang.String content)
content -
public java.lang.String getContextPrefix()
public StringFormatter getFormatter()
public java.lang.String getServerPrefix()
public void setContentJsp(java.lang.String contentJsp)
contentJsp - the contentJsp to set
public java.lang.String makeReplayUrl(java.lang.String url,
java.lang.String timestamp)
url - timestamp -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||