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
- Session from which the locale should be guessedpublic static String guessDisplayUserFromSession(Session in_session)
in_session
- The Servlet sessionpublic 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)
buffer
- The XML to escapepublic static String formatNumber(long number)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.