com.taursys.servlet.respond
Class HTMLResponder

java.lang.Object
  extended bycom.taursys.servlet.respond.AbstractResponder
      extended bycom.taursys.servlet.respond.ContentResponder
          extended bycom.taursys.servlet.respond.HTMLResponder
All Implemented Interfaces:
Responder

public class HTMLResponder
extends ContentResponder

HTMLResponder provides rendering and sending Document as response.

Version:
1.0
Author:
Marty Phelan

Constructor Summary
HTMLResponder()
          Constructs a new HTMLResponder and sets contentType to text/html.
 
Method Summary
 void respond()
          Render the Components to the Document it as the response.
 
Methods inherited from class com.taursys.servlet.respond.ContentResponder
getContentType, setContentType
 
Methods inherited from class com.taursys.servlet.respond.AbstractResponder
getServletForm, setServletForm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLResponder

public HTMLResponder()
Constructs a new HTMLResponder and sets contentType to text/html.

Method Detail

respond

public void respond()
             throws java.lang.Exception
Render the Components to the Document it as the response. This method first invokes the ServletForm's RenderDispatcher to notify Components to render themselves to the Document. It then sets the response's contentType. Finally, it uses the DocumentAdapter to render the Document to the response's PrintWriter.

Specified by:
respond in interface Responder
Specified by:
respond in class AbstractResponder
Throws:
java.lang.Exception - generated by Components during rendering.


Copyright © 2007 Martin T Phelan. All Rights Reserved.