• 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

43.75
/src/main/java/com/opensymphony/module/sitemesh/parser/AbstractHTMLPage.java
1
/*
2
 * SPDX-License-Identifier: Apache-2.0
3
 * Copyright 2011-2026 Hazendaz
4
 */
5
/*
6
 * Title:        AbstractHTMLPage
7
 * Description:
8
 *
9
 * This software is published under the terms of the OpenSymphony Software
10
 * License version 1.1, of which a copy has been included with this
11
 * distribution in the LICENSE.txt file.
12
 */
13

14
package com.opensymphony.module.sitemesh.parser;
15

16
import com.opensymphony.module.sitemesh.HTMLPage;
17
import com.opensymphony.module.sitemesh.SitemeshBuffer;
18

19
import java.io.IOException;
20
import java.io.Writer;
21

22
/**
23
 * Abstract implementation of {@link com.opensymphony.module.sitemesh.HTMLPage}.
24
 * <p>
25
 * Adds to {@link com.opensymphony.module.sitemesh.parser.AbstractPage} some HTML methods. To implement, follow
26
 * guidelines of super-class, and implement the 2 abstract methods states below.
27
 *
28
 * @author <a href="joe@truemesh.com">Joe Walnes</a>
29
 *
30
 * @see com.opensymphony.module.sitemesh.parser.AbstractPage
31
 * @see com.opensymphony.module.sitemesh.HTMLPage
32
 */
33
public abstract class AbstractHTMLPage extends AbstractPage implements HTMLPage {
34

35
    /**
36
     * Instantiates a new abstract HTML page.
37
     *
38
     * @param sitemeshBuffer
39
     *            the sitemesh buffer
40
     */
41
    protected AbstractHTMLPage(SitemeshBuffer sitemeshBuffer) {
42
        super(sitemeshBuffer);
1✔
43
    }
1✔
44

45
    /**
46
     * Write data of html <code>&lt;head&gt;</code> tag.
47
     * <p>
48
     * Must be implemented. Data written should not actually contain the head tags, but all the data in between.
49
     */
50
    @Override
51
    public abstract void writeHead(Writer out) throws IOException;
52

53
    @Override
54
    public boolean isFrameSet() {
55
        return isPropertySet("frameset") && getProperty("frameset").equalsIgnoreCase("true");
×
56
    }
57

58
    @Override
59
    public void setFrameSet(boolean frameset) {
60
        if (frameset) {
1!
61
            addProperty("frameset", "true");
×
62
        } else if (isPropertySet("frameset")) {
1!
63
            addProperty("frameset", "false");
×
64
        }
65
    }
1✔
66
}
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