API Overview API Index Package Overview Direct link to this page
Sitemesh 2.3
  com.opensymphony.sitemesh. Content View Javadoc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61

font color='#880088'>
package com.opensymphony.sitemesh;

import java.io.IOException;
import java.io.Writer;

/**
 * @author Joe Walnes
 * @since SiteMesh 3
 */
public interface Content {

    /**
     * Write out the original unprocessed content.
     */
    void writeOriginal(Writer writer) throws IOException;

    /**
     * Length of the original unprocessed content.
     */
    int originalLength();


    /**
     * Write the contents of the <code>&lt;body&gt;</code> tag.
     */
    void writeBody(Writer out) throws IOException;

    /**
     * Write the contents of the <code>&lt;head&gt;</code> tag.
     */
    void writeHead(Writer out) throws IOException;

    /**
     * Get the Title of the document
     */
    String getTitle();


    /**
     * Get a property embedded into the <code>Page</code> as a <code>String</code>.
     *
     * @param name Name of property
     * @return Property value
     */
    String getProperty(String name);


    /**
     * Get all available property keys for the <code>Page</code>.
     *
     * @return Property keys
     */
    String[] getPropertyKeys();

    /**
     * Manually add a property to page.
     */
    void addProperty(String name, String value);

}

Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar