• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hazendaz / sitemesh2 / 59

22 Mar 2026 02:30AM UTC coverage: 40.347%. Remained the same
59

push

github

hazendaz
[mvn] Update maven wrapper

698 of 1891 branches covered (36.91%)

Branch coverage included in aggregate %.

1555 of 3693 relevant lines covered (42.11%)

0.42 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/opensymphony/sitemesh/webapp/ContainerTweaks.java
1
/*
2
 * SPDX-License-Identifier: Apache-2.0
3
 * Copyright 2011-2026 Hazendaz
4
 */
5
package com.opensymphony.sitemesh.webapp;
6

7
import com.opensymphony.module.sitemesh.util.Container;
8

9
/**
10
 * Provides details of which tweaks should be used in SiteMesh - necessary because containers behave subtly different.
11
 *
12
 * @author Joe Walnes
13
 *
14
 * @since SiteMesh 3
15
 */
16
public class ContainerTweaks {
×
17

18
    // TODO: Externalize these into a config file (optional of course!), allowing users to change them at runtime if
19
    // needed.
20

21
    /** The container. */
22
    private final int container = Container.get();
×
23

24
    /**
25
     * Should auto create session.
26
     *
27
     * @return true, if successful
28
     */
29
    public boolean shouldAutoCreateSession() {
30
        return false;
×
31
        // return container == Container.TOMCAT; - this is removed due to SIM-151.
32
    }
33

34
    /**
35
     * Should log unhandled exceptions.
36
     *
37
     * @return true, if successful
38
     */
39
    public boolean shouldLogUnhandledExceptions() {
40
        return container == Container.TOMCAT;
×
41
    }
42

43
    /**
44
     * Should ignore illegal state exception on error page.
45
     *
46
     * @return true, if successful
47
     */
48
    public boolean shouldIgnoreIllegalStateExceptionOnErrorPage() {
49
        return container == Container.WEBLOGIC;
×
50
    }
51

52
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc