Class LicenseEnforcerFilter
- java.lang.Object
-
- ro.sync.ecss.extensions.api.webapp.license.LicenseEnforcerFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
@API(type=NOT_EXTENDABLE, src=PRIVATE) public class LicenseEnforcerFilter extends java.lang.Object implements javax.servlet.Filter
A servlet filter that MUST be used to license the WebApp. The path of the license file is specified by theLICENSE_PATH
filter parameter configured in the 'web.xml' file. The path is relative to the root of the archive. If not set, the default location isLICENSE_DEFAULT_PATH
.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LICENSE_DEFAULT_PATH
The default path for the license file.static java.lang.String
LICENSE_PATH
The filter parameter specifying the license path.
-
Constructor Summary
Constructors Constructor Description LicenseEnforcerFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp, javax.servlet.FilterChain chain)
The method that takes care of executing the request on behalf of the correct user.void
init(javax.servlet.FilterConfig config)
Initializes the filter.
-
-
-
Field Detail
-
LICENSE_PATH
public static final java.lang.String LICENSE_PATH
The filter parameter specifying the license path.- See Also:
- Constant Field Values
-
LICENSE_DEFAULT_PATH
public static final java.lang.String LICENSE_DEFAULT_PATH
The default path for the license file.- See Also:
- Constant Field Values
-
-
Method Detail
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Filter
- See Also:
Filter.destroy()
-
doFilter
public void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException
The method that takes care of executing the request on behalf of the correct user.- Specified by:
doFilter
in interfacejavax.servlet.Filter
- Throws:
java.io.IOException
javax.servlet.ServletException
-
init
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
Initializes the filter.- Specified by:
init
in interfacejavax.servlet.Filter
- Throws:
javax.servlet.ServletException
-
-