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 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 the LICENSE_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 is LICENSE_DEFAULT_PATH.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The default path for the license file.
    static final String
    The filter parameter specifying the license path.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LICENSE_PATH

      public static final String LICENSE_PATH
      The filter parameter specifying the license path.
      See Also:
    • LICENSE_DEFAULT_PATH

      public static final String LICENSE_DEFAULT_PATH
      The default path for the license file.
      See Also:
  • Constructor Details

    • LicenseEnforcerFilter

      public LicenseEnforcerFilter()
  • Method Details

    • destroy

      public void destroy()
      Specified by:
      destroy in interface javax.servlet.Filter
      See Also:
      • Filter.destroy()
    • doFilter

      public void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
      The method that takes care of executing the request on behalf of the correct user.
      Specified by:
      doFilter in interface javax.servlet.Filter
      Throws:
      IOException
      javax.servlet.ServletException
    • init

      public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
      Initializes the filter.
      Specified by:
      init in interface javax.servlet.Filter
      Throws:
      javax.servlet.ServletException