|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ViewHandler
ViewHandler - View Handler Interface
Method Summary | |
---|---|
java.lang.String |
getName()
Gets the name of the view handler as declared in the controller configuration file. |
void |
init(ServletContext context)
Initializes the handler. |
void |
render(java.lang.String name,
java.lang.String page,
java.lang.String info,
java.lang.String contentType,
java.lang.String encoding,
HttpServletRequest request,
HttpServletResponse response)
Render the page. |
void |
setName(java.lang.String name)
Sets the name of the view handler as declared in the controller configuration file. |
Method Detail |
---|
void setName(java.lang.String name)
name
- String The name of the view handler as declared in the controller configuration file.java.lang.String getName()
void init(ServletContext context) throws ViewHandlerException
context
- ServletContext This may be needed by the handler in order to lookup properties or XML
definition files for rendering pages or handler options.
ViewHandlerException
void render(java.lang.String name, java.lang.String page, java.lang.String info, java.lang.String contentType, java.lang.String encoding, HttpServletRequest request, HttpServletResponse response) throws ViewHandlerException
name
- The name of the view.page
- The source of the view; could be a page, url, etc depending on the type of handler.info
- An info string attached to this viewrequest
- The HttpServletRequest object used when requesting this page.response
- The HttpServletResponse object to be used to present the page.
ViewHandlerException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |