com.scooterframework.web.controller
Interface ContentHandler

All Known Implementing Classes:
DefaultContentHandler

public interface ContentHandler

ContentHandler interface defines methods of a content handler. A content handler is responsible for publishing content to an http client which initiates the request.


Method Summary
 void handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object content, java.lang.String format)
          Handles result content of a http request.
 

Method Detail

handle

void handle(javax.servlet.http.HttpServletRequest request,
            javax.servlet.http.HttpServletResponse response,
            java.lang.Object content,
            java.lang.String format)
            throws java.io.IOException,
                   javax.servlet.ServletException
Handles result content of a http request. The format is the format corresponding to a mime type such as "html", "xml" etc.

Parameters:
request - The http request object.
response - The http response object.
content - The content to be sent.
format - The content format.
Throws:
java.io.IOException
javax.servlet.ServletException