ilog.rules.teamserver.web.servlets.filter

Class IlrRemoteSessionFilter

  • java.lang.Object
    • ilog.rules.teamserver.web.servlets.filter.IlrRemoteSessionFilter
  • All Implemented Interfaces:
    javax.servlet.Filter


    public class IlrRemoteSessionFilter
    extends java.lang.Object
    implements javax.servlet.Filter
    Filter used in a client application to call automatically IlrSession.beginUsage() and IlrSession.endUsage() methods on the IlrSession object bound with the name "ilog.rules.teamserver.session" in the HttpSession. This filter must be declared in the WEB-INF/web.xml file of the client web application in the right place using: sessionFilter ilog.rules.teamserver.web.servlets.filter.IlrRemoteSessionFilter sessionFilter /* The constant SESSION_KEY can be used to bound the IlrSession object in the HttpSession with the right name.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String SESSION_KEY
      The constant used to retrieve the IlrSession object in the HttpSession.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void destroy() 
      void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain chain) 
      protected IlrSession getSession(javax.servlet.ServletRequest servletRequest) 
      void init(javax.servlet.FilterConfig config) 
      • Methods inherited from class java.lang.Object

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

      • SESSION_KEY

        public static final java.lang.String SESSION_KEY
        The constant used to retrieve the IlrSession object in the HttpSession.
        See Also:
        Constant Field Values
    • Constructor Detail

      • IlrRemoteSessionFilter

        public IlrRemoteSessionFilter()
    • Method Detail

      • init

        public void init(javax.servlet.FilterConfig config)
                  throws javax.servlet.ServletException
        Specified by:
        init in interface javax.servlet.Filter
        Throws:
        javax.servlet.ServletException
      • destroy

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

        public void doFilter(javax.servlet.ServletRequest servletRequest,
                    javax.servlet.ServletResponse servletResponse,
                    javax.servlet.FilterChain chain)
                      throws java.io.IOException,
                             javax.servlet.ServletException
        Specified by:
        doFilter in interface javax.servlet.Filter
        Throws:
        java.io.IOException
        javax.servlet.ServletException
      • getSession

        protected IlrSession getSession(javax.servlet.ServletRequest servletRequest)

© Copyright IBM Corp. 1987, 2017