public class JspHelper extends Object
Modifier and Type | Method and Description |
---|---|
static String |
escapeXml(Object obj) |
static String |
escapeXml(String buffer)
Performs the following substring replacements
(to facilitate output to XML/HTML pages):
& -> &
< -> <
> -> >
" -> "
' -> '
See also OutSupport.writeEscapedXml().
|
static String |
formatNumber(long number) |
static String |
getDisplayCreationTimeForSession(Session in_session) |
static String |
getDisplayInactiveTimeForSession(Session in_session) |
static String |
getDisplayLastAccessedTimeForSession(Session in_session) |
static String |
getDisplayTTLForSession(Session in_session) |
static String |
getDisplayUsedTimeForSession(Session in_session) |
static String |
guessDisplayLocaleFromSession(Session in_session)
Try to get user locale from the session, if possible.
|
static String |
guessDisplayUserFromSession(Session in_session)
Try to get user name from the session, if possible.
|
static String |
secondsToTimeString(long in_seconds) |
public static String guessDisplayLocaleFromSession(Session in_session)
in_session
- public static String guessDisplayUserFromSession(Session in_session)
in_session
- public static String getDisplayCreationTimeForSession(Session in_session)
public static String getDisplayLastAccessedTimeForSession(Session in_session)
public static String getDisplayInactiveTimeForSession(Session in_session)
public static String secondsToTimeString(long in_seconds)
public static String escapeXml(String buffer)
public static String formatNumber(long number)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.