public class IlxWUtil
extends java.lang.Object
implements ilog.webui.dhtml.IlxWConstants
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
escape(java.lang.String s)
Escapes the given text into a JavaScript string.
|
static boolean |
hasSessionExpired(javax.servlet.http.HttpSession session) |
static void |
prettyPrintBOM(java.io.Reader reader,
java.io.Writer out)
Formats the BOM code read in the given reader in an HTML block.
|
static void |
prettyPrintIrl(java.io.Reader reader,
java.io.Writer out)
Formats the IRL code read in the given reader in an HTML block.
|
static void |
prettyPrintJava(java.io.Reader reader,
java.io.Writer out)
Formats the Java code read in the given reader in an HTML block.
|
static void |
prettyPrintJSP(java.io.Reader reader,
java.io.Writer out)
Formats the JSP code read in the given reader in an HTML block.
|
static void |
sendLoadURL(javax.servlet.http.HttpServletResponse response,
java.lang.String url)
Prints an HTML page containing a script block that asks the browser
to request the specified URL.
|
static void |
setClientStatus(java.lang.String message)
Asks to modify the status of the browser window with the given
message.
|
static java.lang.String |
toHtml(java.awt.Color color)
Converts the given AWT color to an hexadecimal string representation
of the color.
|
static java.lang.String |
toHtml(java.lang.String s)
Converts the given string into an HTML string.
|
static java.lang.String |
toXml(java.lang.String s)
Converts the given string into an XML string.
|
public static java.lang.String toHtml(java.lang.String s)
This method is similar to toXml(java.lang.String) except that it generates
some special HTML text for special characters:
public static java.lang.String toXml(java.lang.String s)
public static java.lang.String escape(java.lang.String s)
The surrounding quotes are not included; they must be placed by the caller.
public static java.lang.String toHtml(java.awt.Color color)
For instance Color.white is converted
into "#FFFFF".
color - An AWT color. May be null.null if the given color is
null.public static void setClientStatus(java.lang.String message)
This will be done using the current port and adding a JavaScript command to it, which will be executed when the response associated with the port will be sent to the client.
message - The message to display.IlxWPort.getCurrentPort()public static void sendLoadURL(javax.servlet.http.HttpServletResponse response,
java.lang.String url)
throws java.io.IOException
This method performs almost the same job as
HttpServletResponse.sendRedirect, but is safer, since
sendRedirect has a bad behavior on IE5.0 and IE5.5.
Actually, when redirecting the response to a given URL, the caching
headers are not taken into account by the browser and the page
is directly reloaded from the IE cache. This has been fixed in IE6.0.
For optimal portability, use sendLoadURL
instead of sendRedirect.
java.io.IOExceptionpublic static void prettyPrintJSP(java.io.Reader reader,
java.io.Writer out)
public static void prettyPrintBOM(java.io.Reader reader,
java.io.Writer out)
public static void prettyPrintJava(java.io.Reader reader,
java.io.Writer out)
public static void prettyPrintIrl(java.io.Reader reader,
java.io.Writer out)
public static boolean hasSessionExpired(javax.servlet.http.HttpSession session)
© Copyright IBM Corp. 1987, 2017