Package de.xima.fc.portal.model
Class PortalFilterWrapper
- java.lang.Object
-
- de.xima.fc.portal.model.PortalFilterWrapper
-
- All Implemented Interfaces:
Comparable<PortalFilterWrapper>
,javax.servlet.Filter
public class PortalFilterWrapper extends Object implements javax.servlet.Filter, Comparable<PortalFilterWrapper>
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description PortalFilterWrapper(Class<? extends javax.servlet.Filter> wrappedClass, javax.servlet.annotation.WebFilter annotation)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
compareTo(PortalFilterWrapper other)
void
destroy()
void
doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
boolean
equals(Object obj)
javax.servlet.annotation.WebFilter
getAnnotation()
String
getName()
String[]
getUrlMappings()
javax.servlet.Filter
getWrapped()
Deprecated.You should not care about the wrapped filter.int
hashCode()
void
init(javax.servlet.FilterConfig config)
-
-
-
Constructor Detail
-
PortalFilterWrapper
public PortalFilterWrapper(Class<? extends javax.servlet.Filter> wrappedClass, javax.servlet.annotation.WebFilter annotation)
-
-
Method Detail
-
init
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Filter
- Throws:
javax.servlet.ServletException
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
- Specified by:
doFilter
in interfacejavax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
-
getAnnotation
public javax.servlet.annotation.WebFilter getAnnotation()
- Returns:
- The web filter annotation, if present of the filtet class of the portal plugin.
-
getUrlMappings
public String[] getUrlMappings()
-
getWrapped
@Deprecated public javax.servlet.Filter getWrapped()
Deprecated.You should not care about the wrapped filter.- Returns:
- The underlying web filter from the portal plugin wrapped by this instance.
-
getName
public String getName()
- Returns:
- The name of this filter, either from the annotation or the class name, if no name was set in the annotation.
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Filter
-
compareTo
public int compareTo(PortalFilterWrapper other)
- Specified by:
compareTo
in interfaceComparable<PortalFilterWrapper>
-
-