• 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/compatability/HTMLPage2Content.java
1
/*
2
 * SPDX-License-Identifier: Apache-2.0
3
 * Copyright 2011-2026 Hazendaz
4
 */
5
package com.opensymphony.sitemesh.compatability;
6

7
import com.opensymphony.module.sitemesh.HTMLPage;
8
import com.opensymphony.sitemesh.Content;
9

10
import java.io.IOException;
11
import java.io.Writer;
12

13
/**
14
 * Adapts a SiteMesh 2 {@link HTMLPage} to a SiteMesh 3 {@link Content}.
15
 *
16
 * @author Joe Walnes
17
 *
18
 * @since SiteMesh 3
19
 */
20
public class HTMLPage2Content implements Content {
21

22
    /** The page. */
23
    private final HTMLPage page;
24

25
    /**
26
     * Instantiates a new HTML page 2 content.
27
     *
28
     * @param page
29
     *            the page
30
     */
31
    public HTMLPage2Content(HTMLPage page) {
×
32
        this.page = page;
×
33
    }
×
34

35
    @Override
36
    public void writeOriginal(Writer out) throws IOException {
37
        page.writePage(out);
×
38
    }
×
39

40
    @Override
41
    public void writeBody(Writer out) throws IOException {
42
        page.writeBody(out);
×
43
    }
×
44

45
    @Override
46
    public void writeHead(Writer out) throws IOException {
47
        page.writeHead(out);
×
48
    }
×
49

50
    @Override
51
    public String getTitle() {
52
        return page.getTitle();
×
53
    }
54

55
    @Override
56
    public String getProperty(String name) {
57
        return page.getProperty(name);
×
58
    }
59

60
    @Override
61
    public String[] getPropertyKeys() {
62
        return page.getPropertyKeys();
×
63
    }
64

65
    @Override
66
    public void addProperty(String name, String value) {
67
        page.addProperty(name, value);
×
68
    }
×
69

70
}
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