@Singleton
public class SkillzFilter
extends java.lang.Object
implements javax.servlet.Filter
Constructor and Description |
---|
SkillzFilter()
For simple JavaEE type usage, the default constructor will create a registry,
a DefaultTypeFactory, and a FormatterMappings instance for the filter.
|
SkillzFilter(Registry registry,
TypeFactory factory,
FormatterMappings mappings)
The standard Dependency-Injected constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain) |
TypeFactory |
getFactory() |
FormatterMappings |
getMappings() |
Registry |
getRegistry() |
void |
init(javax.servlet.FilterConfig filterConfig) |
void |
setPathPrefix(java.lang.String pathPrefix) |
@Inject public SkillzFilter(Registry registry, TypeFactory factory, FormatterMappings mappings)
registry
- The registry to use.factory
- The TypeFactory to build instances with.mappings
- FormatterMappings for building SpeechletResponsespublic SkillzFilter()
public Registry getRegistry()
public TypeFactory getFactory()
public FormatterMappings getMappings()
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void setPathPrefix(java.lang.String pathPrefix)
public void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
java.io.IOException
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter