~ubuntu-branches/ubuntu/oneiric/tomcat6/oneiric

« back to all changes in this revision

Viewing changes to java/org/apache/catalina/manager/util/SessionUtils.java

  • Committer: Bazaar Package Importer
  • Author(s): Thierry Carrez
  • Date: 2010-07-20 14:36:48 UTC
  • mfrom: (2.2.17 sid)
  • Revision ID: james.westby@ubuntu.com-20100720143648-23y81x6cq1kv1z00
Tags: 6.0.28-2
* Add debconf questions for user, group and Java options.
* Use ucf to install /etc/default/tomcat6 from a template
* Drop CATALINA_BASE and CATALINA_HOME from /etc/default/tomcat6 since we
  shouldn't encourage users to change those anyway

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
    private static final String[] LOCALE_TEST_ATTRIBUTES = new String[] {
59
59
        STRUTS_LOCALE_KEY, SPRING_LOCALE_KEY, JSTL_LOCALE_KEY, "Locale", "java.util.Locale" };
60
60
    /**
61
 
     * Lower and upper-case strings will be dynamically generated. Put mid-capitalised strings here!
 
61
     * For efficient operation, list the attributes here with the typically used
 
62
     * capitalisation. This will be tried first and then the auto-generated
 
63
     * upper and lower case versions will be tried.
62
64
     */
63
65
    private static final String[] USER_TEST_ATTRIBUTES = new String[] {
64
 
        "Login", "User", "userName", "UserName", "Utilisateur" };
 
66
        "Login", "User", "userName", "UserName", "Utilisateur",
 
67
        "SPRING_SECURITY_LAST_USERNAME"};
65
68
 
66
69
    /**
67
70
     * Try to get user locale from the session, if possible.