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