ilog.rules.webui

Class IlrWUtils

  • java.lang.Object
    • ilog.rules.webui.IlrWUtils


  • public class IlrWUtils
    extends java.lang.Object
    Utility methods.

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static void closeCurrentPort() 
      static java.lang.String getContextPath() 
      static IlxWPort getCurrentPort() 
      static javax.servlet.http.HttpSession getHttpSession() 
      static java.lang.String getIconResourceName(java.lang.String key)
      Retrieves the path of the icon (a .gif file) designated by the given key, in the ilog.rules preferences namespace.
      static ilog.rules.shared.util.IlrPreferenceProvider getPreferences() 
      static javax.servlet.http.HttpServletRequest getRequest() 
      static void setRequest(javax.servlet.http.HttpServletRequest request)
      Put the given request in a thread local to be used by some of the methods of this utility class.
      • Methods inherited from class java.lang.Object

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

      • getIconResourceName

        public static java.lang.String getIconResourceName(java.lang.String key)
        Retrieves the path of the icon (a .gif file) designated by the given key, in the ilog.rules preferences namespace.

        For instance, the following code: IlrWUtils.getIconResourceName("ui.Rule.Rule.template.icon"); returns /ilog/rules/builder/ruletemplate.gif.

        See Also:
        IlrPreferences
      • getPreferences

        public static ilog.rules.shared.util.IlrPreferenceProvider getPreferences()
      • getRequest

        public static javax.servlet.http.HttpServletRequest getRequest()
      • getHttpSession

        public static javax.servlet.http.HttpSession getHttpSession()
      • getCurrentPort

        public static IlxWPort getCurrentPort()
      • closeCurrentPort

        public static void closeCurrentPort()
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • setRequest

        public static void setRequest(javax.servlet.http.HttpServletRequest request)
        Put the given request in a thread local to be used by some of the methods of this utility class. If can be typically set in a servlet, when some code using the beans of the application must be called out of the JSF scope (if when FacesContext.getCurrentInstance() returns null).
        Parameters:
        request -
      • getContextPath

        public static java.lang.String getContextPath()

© Copyright IBM Corp. 1987, 2017