Interface INBSPage
public interface INBSPage
Interface all compiled nbspages implement.
The
render()
method of a compiled nbspage renders the page
to the output stream set via the set(java.lang.String, java.lang.Object)
method.-
Method Summary
Modifier and TypeMethodDescriptionReturns the specified string, marking it for localization.void
clear()
Cleans up after rendering.Returns specified parameter.Returns specified parameter in a classcast safe manner.Returns string version of specified parameter.void
init
(INBSPRuntime runtime) Initializes this page.void
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
Prints the specified object.void
Prints the specified object.void
render()
Renders this page.void
Renders the specified page to this page's out with this page's params.void
Sets the specified object with the specified name.
-
Method Details
-
init
Initializes this page. Only needs to be done once per instance. -
print
Prints the specified primitive.- Parameters:
p
- Primitive to print- Throws:
IOException
-
print
Prints the specified primitive.- Parameters:
p
- Primitive to print- Throws:
IOException
-
print
Prints the specified primitive.- Parameters:
p
- Primitive to print- Throws:
IOException
-
print
Prints the specified primitive.- Parameters:
p
- Primitive to print- Throws:
IOException
-
print
Prints the specified primitive.- Parameters:
p
- Primitive to print- Throws:
IOException
-
print
Prints the specified primitive.- Parameters:
p
- Primitive to print- Throws:
IOException
-
print
Prints the specified primitive.- Parameters:
p
- Primitive to print- Throws:
IOException
-
print
Prints the specified array.- Parameters:
a
- Array to print- Throws:
IOException
-
print
Prints the specified array.- Parameters:
a
- Array to printstart
- Index of first item to print.length
- Length of items to print- Throws:
IOException
-
print
Prints the specified array.- Parameters:
a
- Array to print- Throws:
IOException
-
print
Prints the specified array.- Parameters:
a
- Array to printstart
- Index of first item to print.length
- Length of items to print- Throws:
IOException
-
print
Prints the specified object.- Parameters:
o
- Object to print- Throws:
IOException
-
print
Prints the specified object.- Parameters:
o
- Object to print- Throws:
IOException
-
babble
Returns the specified string, marking it for localization.- Parameters:
s
- String marked for localization.- Returns:
- The passed string.
-
get
Returns specified parameter.- Parameters:
name
- Name of parameter to get.- Returns:
- Parameter value or null if not found.
-
getString
Returns string version of specified parameter.- Parameters:
name
- Name of parameter to get.defaultValue
- Default value to return if parameter not found or not a string.- Returns:
- String value of specified parameter or the default vaule if not found.
-
get
Returns specified parameter in a classcast safe manner.- Parameters:
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.- Returns:
- value of specified parameter or the default vaule if not found.
-
set
Sets the specified object with the specified name. There are several reserved keys, including "out", "request", and "session", which should be used to set the output stream Writer, the current HttpServletRequest, and the current user's HttpSession, respectively. -
prepare
Prepares this page for rendering. -
render
Renders this page.- Throws:
Exception
-
render
Renders the specified page to this page's out with this page's params.- Parameters:
file
- URI specifing file to render.- Throws:
Exception
-
clear
void clear()Cleans up after rendering. -
get
-
getString
-