|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectno.sesat.search.http.filters.SiteLocatorFilter
public final class SiteLocatorFilter
Loads the appropriate Site object in as a request attribute.
Will redirect to correct (search-front-config) url for resources (css,images, javascript).
Also responsible for logging each request and response like an apache access logfile.
| Field Summary | |
|---|---|
static Site.Context |
SITE_CONTEXT
The context that we'll need to use every invocation of doFilter(..). |
| Constructor Summary | |
|---|---|
SiteLocatorFilter()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
destroy()
Destroy method for this filter |
void |
doFilter(ServletRequest request,
ServletResponse r,
FilterChain chain)
Will redirect to correct (search-config) url for resources (css,images, javascript). |
FilterConfig |
getFilterConfig()
Return the filter configuration object for this filter. |
static Site |
getSite(ServletRequest servletRequest)
The method to obtain the correct Site from the request. |
void |
init(FilterConfig filterConfig)
Init method for this filter |
void |
setFilterConfig(FilterConfig filterConfig)
Set the filter configuration object for this filter. |
String |
toString()
Return a String representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Site.Context SITE_CONTEXT
| Constructor Detail |
|---|
public SiteLocatorFilter()
| Method Detail |
|---|
public void doFilter(ServletRequest request,
ServletResponse r,
FilterChain chain)
throws IOException,
ServletException
doFilter in interface Filterrequest - The servlet request we are processingr - The servlet responsechain - The filter chain we are processing
IOException - if an input/output error occurs
ServletException - if a servlet error occurspublic FilterConfig getFilterConfig()
public void setFilterConfig(FilterConfig filterConfig)
filterConfig - The filter configuration objectpublic void destroy()
destroy in interface Filterpublic void init(FilterConfig filterConfig)
init in interface Filterpublic String toString()
toString in class Objectpublic static Site getSite(ServletRequest servletRequest)
servletRequest -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||