|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.anotheria.maf.MAFFilter
public class MAFFilter
MAFFilter is the dispatcher filter of the MAF. We are using a Filter instead of Servlet to be able to inject MAF parts in huge we-map-everything-through-one-servlet systems (aka spring). In particular it is useful to inject moskito-webui which is maf-based into an existing spring application.
| Field Summary |
|---|
| Fields inherited from interface net.anotheria.moskito.core.producers.IStatsProducer |
|---|
SUBSYSTEM_BUILTIN |
| Constructor Summary | |
|---|---|
MAFFilter()
|
|
| Method Summary | |
|---|---|
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest sreq,
javax.servlet.ServletResponse sres,
javax.servlet.FilterChain chain)
|
protected ActionFactory |
getActionFactory()
|
String |
getCategory()
|
protected List<ActionMappingsConfigurator> |
getConfigurators()
Overwrite this method and return configurators for your project. |
protected String |
getDefaultActionName()
if not null an empty path is replaced by this default action name, for example 'index'. |
protected net.anotheria.moskito.core.stats.Interval[] |
getMonitoringIntervals()
Override this method to setup custom monitoring intervals. |
String |
getProducerId()
|
List<net.anotheria.moskito.core.producers.IStats> |
getStats()
|
String |
getSubsystem()
|
void |
init(javax.servlet.FilterConfig config)
|
protected boolean |
isPathExcluded(String servletPath)
Decides whether the servlet path is excluded from execution by this filter. |
protected boolean |
operationAllowed(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Override this operation to perform access control to moskitoUI. |
protected void |
setActionFactory(ActionFactory actionFactory)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MAFFilter()
| Method Detail |
|---|
public void destroy()
destroy in interface javax.servlet.Filter
public void init(javax.servlet.FilterConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletException
public void doFilter(javax.servlet.ServletRequest sreq,
javax.servlet.ServletResponse sres,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOException
javax.servlet.ServletExceptionprotected boolean isPathExcluded(String servletPath)
servletPath - path to the servlet.
public List<net.anotheria.moskito.core.producers.IStats> getStats()
getStats in interface net.anotheria.moskito.core.producers.IStatsProducerprotected net.anotheria.moskito.core.stats.Interval[] getMonitoringIntervals()
protected boolean operationAllowed(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
req - the HttpServletRequestres - the HttpServletResponse
public String getProducerId()
getProducerId in interface net.anotheria.moskito.core.producers.IStatsProducerpublic String getSubsystem()
getSubsystem in interface net.anotheria.moskito.core.producers.IStatsProducerpublic String getCategory()
getCategory in interface net.anotheria.moskito.core.producers.IStatsProducerprotected List<ActionMappingsConfigurator> getConfigurators()
protected String getDefaultActionName()
protected ActionFactory getActionFactory()
protected void setActionFactory(ActionFactory actionFactory)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||