Decision Center API

ilog.rules.webui
Class IlrWUtils

java.lang.Object
  extended by ilog.rules.webui.IlrWUtils

public class IlrWUtils
extends Object

Utility methods.


Method Summary
static void closeCurrentPort()
           
static String getContextPath()
           
static IlxWPort getCurrentPort()
           
static javax.servlet.http.HttpSession getHttpSession()
           
static String getIconResourceName(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 String getIconResourceName(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 IOException
Throws:
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 String getContextPath()

Decision Center API

© Copyright IBM Corp. 1987, 2013