public interface INBSPage
render()
method of a compiled nbspage renders the page
to the output stream set via the set(java.lang.String, java.lang.Object)
method.Modifier and Type | Method and Description |
---|---|
String |
babble(String s)
Returns the specified string, marking it for localization.
|
void |
clear()
Cleans up after rendering.
|
Object |
get(String name)
Returns specified parameter.
|
Object |
get(String name,
boolean ignoreUrlParams) |
Object |
get(String name,
Class<?> reqClass,
Object defaultValue)
Returns specified parameter in a classcast safe manner.
|
String |
getString(String name,
String defaultValue)
Returns string version of specified parameter.
|
String |
getString(String name,
String defaultValue,
boolean ignoreUrlParams) |
void |
init(INBSPRuntime runtime)
Initializes this page.
|
void |
prepare(Map<String,Object> params)
Prepares this page for rendering.
|
void |
print(boolean p)
Prints the specified primitive.
|
void |
print(byte p)
Prints the specified primitive.
|
void |
print(byte[] a)
Prints the specified array.
|
void |
print(byte[] a,
int start,
int length)
Prints the specified array.
|
void |
print(char p)
Prints the specified primitive.
|
void |
print(char[] a)
Prints the specified array.
|
void |
print(char[] a,
int start,
int length)
Prints the specified array.
|
void |
print(double p)
Prints the specified primitive.
|
void |
print(float p)
Prints the specified primitive.
|
void |
print(int p)
Prints the specified primitive.
|
void |
print(long p)
Prints the specified primitive.
|
void |
print(Object o)
Prints the specified object.
|
void |
print(String o)
Prints the specified object.
|
void |
render()
Renders this page.
|
void |
render(String file)
Renders the specified page to this page's out with this page's params.
|
void |
set(String name,
Object o)
Sets the specified object with the specified name.
|
void init(INBSPRuntime runtime)
void print(boolean p) throws IOException
p
- Primitive to printIOException
void print(byte p) throws IOException
p
- Primitive to printIOException
void print(char p) throws IOException
p
- Primitive to printIOException
void print(int p) throws IOException
p
- Primitive to printIOException
void print(long p) throws IOException
p
- Primitive to printIOException
void print(float p) throws IOException
p
- Primitive to printIOException
void print(double p) throws IOException
p
- Primitive to printIOException
void print(byte[] a) throws IOException
a
- Array to printIOException
void print(byte[] a, int start, int length) throws IOException
a
- Array to printstart
- Index of first item to print.length
- Length of items to printIOException
void print(char[] a) throws IOException
a
- Array to printIOException
void print(char[] a, int start, int length) throws IOException
a
- Array to printstart
- Index of first item to print.length
- Length of items to printIOException
void print(Object o) throws IOException
o
- Object to printIOException
void print(String o) throws IOException
o
- Object to printIOException
String babble(String s)
s
- String marked for localization.Object get(String name)
name
- Name of parameter to get.String getString(String name, String defaultValue)
name
- Name of parameter to get.defaultValue
- Default value to return if parameter not found
or not a string.Object get(String name, Class<?> reqClass, Object defaultValue)
name
- Name of parameter to get.reqClass
- the class the parameter must be.defaultValue
- Default value to return if parameter not found
or not an instance of the required class.void set(String name, Object o)
void render(String file) throws Exception
file
- URI specifing file to render.Exception
void clear()