|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.archive.wayback.util.webapp.AbstractRequestHandler
org.archive.wayback.webapp.AccessPoint
public class AccessPoint
Retains all information about a particular Wayback configuration within a ServletContext, including holding references to the implementation instances of the primary Wayback classes: RequestParser ResourceIndex(via WaybackCollection) ResourceStore(via WaybackCollection) QueryRenderer ReplayDispatcher ExceptionRenderer ResultURIConverter
| Field Summary | |
|---|---|
static String |
INTERSTITIAL_JSP
webapp relative location of Interstitial.jsp |
static String |
INTERSTITIAL_SECONDS
argument for Interstitial.jsp seconds to delay |
static String |
INTERSTITIAL_TARGET
argument for Interstitial.jsp target URL |
| Constructor Summary | |
|---|---|
AccessPoint()
|
|
| Method Summary | |
|---|---|
protected boolean |
dispatchLocal(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse)
|
BooleanOperator<WaybackRequest> |
getAuthentication()
|
WaybackCollection |
getCollection()
|
Properties |
getConfigs()
|
ExceptionRenderer |
getException()
|
ExclusionFilterFactory |
getExclusionFactory()
|
List<String> |
getFilePatterns()
|
List<String> |
getFilePrefixes()
|
String |
getInterstitialJsp()
|
String |
getLiveWebPrefix()
|
Locale |
getLocale()
|
RequestParser |
getParser()
|
QueryRenderer |
getQuery()
|
String |
getQueryPrefix()
|
String |
getRefererAuth()
|
ReplayDispatcher |
getReplay()
|
String |
getReplayPrefix()
|
String |
getStaticPrefix()
|
ResultURIConverter |
getUriConverter()
|
String |
getUrlRoot()
Deprecated. use getQueryPrefix, getReplayPrefix, getStaticPrefix |
boolean |
handleRequest(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse)
Possibly handle an incoming HttpServletRequest, much like a normal HttpServlet, but includes a return value. |
boolean |
isBounceToQueryPrefix()
|
boolean |
isBounceToReplayPrefix()
|
boolean |
isExactHostMatch()
|
boolean |
isExactSchemeMatch()
|
boolean |
isServeStatic()
|
boolean |
isUseAnchorWindow()
|
boolean |
isUseServerName()
Deprecated. no longer used, use {replay,query,static}Prefix |
void |
setAuthentication(BooleanOperator<WaybackRequest> auth)
|
void |
setBounceToQueryPrefix(boolean bounceToQueryPrefix)
|
void |
setBounceToReplayPrefix(boolean bounceToReplayPrefix)
|
void |
setCollection(WaybackCollection collection)
|
void |
setConfigs(Properties configs)
|
void |
setExactHostMatch(boolean exactHostMatch)
|
void |
setExactSchemeMatch(boolean exactSchemeMatch)
|
void |
setException(ExceptionRenderer exception)
|
void |
setExclusionFactory(ExclusionFilterFactory exclusionFactory)
|
void |
setFilePatterns(List<String> filePatterns)
|
void |
setFilePrefixes(List<String> filePrefixes)
|
void |
setInterstitialJsp(String interstitialJsp)
|
void |
setLiveWebPrefix(String liveWebPrefix)
|
void |
setLocale(Locale locale)
|
void |
setParser(RequestParser parser)
|
void |
setQuery(QueryRenderer query)
|
void |
setQueryPrefix(String queryPrefix)
|
void |
setRefererAuth(String refererAuth)
|
void |
setReplay(ReplayDispatcher replay)
|
void |
setReplayPrefix(String replayPrefix)
|
void |
setServeStatic(boolean serveStatic)
|
void |
setStaticPrefix(String staticPrefix)
|
void |
setUriConverter(ResultURIConverter uriConverter)
|
void |
setUrlRoot(String urlRoot)
Deprecated. use setQueryPrefix, setReplayPrefix, setStaticPrefix |
void |
setUseAnchorWindow(boolean useAnchorWindow)
|
void |
setUseServerName(boolean useServerName)
Deprecated. no longer used, use {replay,query,static}Prefix |
void |
shutdown()
Release any resources associated with this AccessPoint, including stopping any background processing threads |
| Methods inherited from class org.archive.wayback.util.webapp.AbstractRequestHandler |
|---|
getBeanName, getMapParam, getMapParamOrEmpty, getRequiredMapParam, getServletContext, registerPortListener, setBeanName, setServletContext, translateRequestPath, translateRequestPathQuery |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String INTERSTITIAL_JSP
public static final String INTERSTITIAL_TARGET
public static final String INTERSTITIAL_SECONDS
| Constructor Detail |
|---|
public AccessPoint()
| Method Detail |
|---|
protected boolean dispatchLocal(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletException
IOException
public boolean handleRequest(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse)
throws javax.servlet.ServletException,
IOException
RequestHandler
handleRequest in interface RequestHandlerhttpRequest - HttpServletRequest which is being handledhttpResponse - HttpServletResponse which is being handled
javax.servlet.ServletException - per usual
IOException - per usualpublic void shutdown()
shutdown in interface ShutdownListenerpublic boolean isExactHostMatch()
public void setExactHostMatch(boolean exactHostMatch)
exactHostMatch - if true, then only SearchResults exactly matching
the requested hostname will be returned from this AccessPoint. If
false, then hosts which canonicalize to the same host as requested
hostname will be returned (www.)public boolean isExactSchemeMatch()
public void setExactSchemeMatch(boolean exactSchemeMatch)
exactSchemeMatch - the exactSchemeMatch to setpublic boolean isUseAnchorWindow()
public void setUseAnchorWindow(boolean useAnchorWindow)
useAnchorWindow - , when set to true, causes this AccessPoint to
only replay documents if they are within a certain proximity to
the users requested AnchorDatepublic boolean isUseServerName()
public void setUseServerName(boolean useServerName)
useServerName - the useServerName to setpublic boolean isServeStatic()
public void setServeStatic(boolean serveStatic)
serveStatic - if set to true, this AccessPoint will serve static
content, and .jsp filespublic String getLiveWebPrefix()
public void setLiveWebPrefix(String liveWebPrefix)
liveWebPrefix - the String URL prefix to use to attempt to retrieve
documents missing from the collection from the live web, on demand.public String getStaticPrefix()
public void setStaticPrefix(String staticPrefix)
staticPrefix - explicit URL prefix to use when creating self referencing
static URLspublic String getReplayPrefix()
public void setReplayPrefix(String replayPrefix)
replayPrefix - explicit URL prefix to use when creating self referencing
replay URLspublic void setQueryPrefix(String queryPrefix)
queryPrefix - explicit URL prefix to use when creating self referencing
query URLspublic String getQueryPrefix()
public void setInterstitialJsp(String interstitialJsp)
interstitialJsp - the interstitialJsp to setpublic String getInterstitialJsp()
public void setUrlRoot(String urlRoot)
urlRoot - explicit URL prefix to use when creating ANY self
referencing URLspublic String getUrlRoot()
public Locale getLocale()
public void setLocale(Locale locale)
locale - explicit Locale to use for requests within this
AccessPoint. If not set, will attempt to use the one specified by
each requests User Agent via HTTP headerspublic Properties getConfigs()
public void setConfigs(Properties configs)
configs - the generic customization Properties to use with this
AccessPoint, generally used to tune the UIpublic List<String> getFilePatterns()
public void setFilePatterns(List<String> filePatterns)
filePatterns - List of file Patterns (regular expressions) that
will be matched when querying the ResourceIndex - only SearchResults
matching one of these patterns will be returned.public List<String> getFilePrefixes()
public void setFilePrefixes(List<String> filePrefixes)
filePrefixes - List of String file prefixes that will be matched
when querying the ResourceIndex - only SearchResults from files
with a prefix matching one of those in this List will be returned.public WaybackCollection getCollection()
public void setCollection(WaybackCollection collection)
collection - the WaybackCollection to use with this AccessPointpublic ExceptionRenderer getException()
public void setException(ExceptionRenderer exception)
exception - the ExceptionRender to use with this AccessPointpublic QueryRenderer getQuery()
public void setQuery(QueryRenderer query)
query - the QueryRenderer responsible for returning query data to
clients.public RequestParser getParser()
public void setParser(RequestParser parser)
parser - the RequestParser to use with this AccessPointpublic ReplayDispatcher getReplay()
public void setReplay(ReplayDispatcher replay)
replay - the ReplayDispatcher to use with this AccessPoint.public ResultURIConverter getUriConverter()
public void setUriConverter(ResultURIConverter uriConverter)
uriConverter - the ResultURIConverter to use with this AccessPoint
to construct Replay URLspublic ExclusionFilterFactory getExclusionFactory()
public void setExclusionFactory(ExclusionFilterFactory exclusionFactory)
exclusionFactory - all requests to this AccessPoint will create an
exclusionFilter from this factory when handling requestspublic BooleanOperator<WaybackRequest> getAuthentication()
public void setAuthentication(BooleanOperator<WaybackRequest> auth)
auth - the BooleanOperator which determines if incoming
requests are allowed to connect to this AccessPoint.public String getRefererAuth()
public void setRefererAuth(String refererAuth)
refererAuth - the refererAuth to setpublic boolean isBounceToReplayPrefix()
public void setBounceToReplayPrefix(boolean bounceToReplayPrefix)
bounceToReplayPrefix - the bounceToReplayPrefix to setpublic boolean isBounceToQueryPrefix()
public void setBounceToQueryPrefix(boolean bounceToQueryPrefix)
bounceToQueryPrefix - the bounceToQueryPrefix to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||