| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String[] | LOCALE_TEST_ATTRIBUTES
Lower and upper-case strings will be dynamically generated. |
| private static final String | |
| private static final String | STRUTS_LOCALE_KEY
The session attributes key under which the user's selected |
| private static final String[] | USER_TEST_ATTRIBUTES
For efficient operation, list the attributes here with the typically used capitalisation. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static long | |
| public static long | |
| public static long | |
| public static Locale | Returns: the localeThe session in_session)Try to get user locale from the session, if possible. |
| public static Locale | |
| public static Object | Returns: the userThe session in_session)Try to get user from the session, if possible. |
| JSTL_LOCALE_KEY | back to summary |
|---|---|
| private static final String JSTL_LOCALE_KEY | |
| LOCALE_TEST_ATTRIBUTES | back to summary |
|---|---|
| private static final String[] LOCALE_TEST_ATTRIBUTES Lower and upper-case strings will be dynamically generated. Put mid-capitalised strings here! | |
| SPRING_LOCALE_KEY | back to summary |
|---|---|
| private static final String SPRING_LOCALE_KEY | |
| STRUTS_LOCALE_KEY | back to summary |
|---|---|
| private static final String STRUTS_LOCALE_KEY The session attributes key under which the user's selected | |
| USER_TEST_ATTRIBUTES | back to summary |
|---|---|
| private static final String[] USER_TEST_ATTRIBUTES For efficient operation, list the attributes here with the typically used capitalisation. This will be tried first and then the auto-generated upper and lower case versions will be tried. | |
| SessionUtils | back to summary |
|---|---|
| private SessionUtils() | |
| getInactiveTimeForSession | back to summary |
|---|---|
| public static long getInactiveTimeForSession(Session in_session) | |
| getTTLForSession | back to summary |
|---|---|
| public static long getTTLForSession(Session in_session) | |
| getUsedTimeForSession | back to summary |
|---|---|
| public static long getUsedTimeForSession(Session in_session) | |
| guessLocaleFromSession | back to summary |
|---|---|
| public static Locale guessLocaleFromSession(final Session in_session) Try to get user locale from the session, if possible. Implementation Note this method has explicit support for Tapestry 3, Struts 1.x and Spring JSF check the browser meta tag "accept languages" to choose what language to display. | |
| guessLocaleFromSession | back to summary |
|---|---|
| public static Locale guessLocaleFromSession(final HttpSession in_session) | |
| guessUserFromSession | back to summary |
|---|---|
| public static Object guessUserFromSession(final Session in_session) Try to get user from the session, if possible. | |