|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.meshcms.core.HitFilter
Filter used to handle the requests for web pages.
Field Summary | |
static java.lang.String |
ACTION_EDIT
Value of ACTION_NAME used to indicate that the current page
must be edited. |
static java.lang.String |
ACTION_NAME
Name of the request parameter that is used to specify some actions. |
static java.lang.String |
BLOCK_CACHE_ATTRIBUTE
|
static java.lang.String |
CACHE_FILE_NAME
Name of a cache file in the repository. |
static java.lang.String |
HOTLINKING_ALLOWED
Name of the session attribute that allows hotlinking within the session itself. |
static java.lang.String |
LAST_MODIFIED_ATTRIBUTE
|
static java.lang.String |
LOCALE_ATTRIBUTE
|
static java.lang.String |
ROOT_WEBSITE
|
static java.lang.String |
THEME_FILE_ATTRIBUTE
Name of the request attribute that contains the name of the current theme file. |
static java.lang.String |
THEME_PATH_ATTRIBUTE
Name of the request attribute that contains the name of the current theme folder. |
static java.lang.String |
WEBSITE_ATTRIBUTE
|
Constructor Summary | |
HitFilter()
|
Method Summary | |
static void |
blockRemoteCaching(javax.servlet.http.HttpServletResponse httpRes)
Sets some headers to discourage remote caching of pages. |
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
This filter manages a page to make sure it is served correctly. |
static Path |
getPreferredLanguage(javax.servlet.http.HttpServletRequest request)
|
static WebSite |
getRootSite(javax.servlet.ServletContext sc,
boolean alwaysCreate)
Returns the main website instance. |
void |
init(javax.servlet.FilterConfig filterConfig)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String CACHE_FILE_NAME
public static final java.lang.String THEME_FILE_ATTRIBUTE
RequestDecoratorMapper
,
Constant Field Valuespublic static final java.lang.String THEME_PATH_ATTRIBUTE
public static final java.lang.String LOCALE_ATTRIBUTE
public static final java.lang.String LAST_MODIFIED_ATTRIBUTE
public static final java.lang.String BLOCK_CACHE_ATTRIBUTE
public static final java.lang.String WEBSITE_ATTRIBUTE
public static final java.lang.String HOTLINKING_ALLOWED
public static final java.lang.String ACTION_NAME
ACTION_EDIT
is used as value. This parameter is
read by custom JSP tags.
public static final java.lang.String ACTION_EDIT
ACTION_NAME
used to indicate that the current page
must be edited.
public static final java.lang.String ROOT_WEBSITE
Constructor Detail |
public HitFilter()
Method Detail |
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
java.io.IOException
javax.servlet.ServletException
public static WebSite getRootSite(javax.servlet.ServletContext sc, boolean alwaysCreate)
public static void blockRemoteCaching(javax.servlet.http.HttpServletResponse httpRes)
public static Path getPreferredLanguage(javax.servlet.http.HttpServletRequest request) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |