org.apache.tiles.request.portlet.delegate
Interface ResponseDelegate

Package class diagram package ResponseDelegate
All Known Implementing Classes:
MimeResponseDelegate, StateAwareResponseDelegate

public interface ResponseDelegate

Exposes features of a response, if they are available.

Version:
$Rev: 1066849 $ $Date: 2011-02-03 11:12:39 -0500 (Thu, 03 Feb 2011) $

Method Summary
 OutputStream getOutputStream()
          Returns the output stream.
 PrintWriter getPrintWriter()
          Returns the print writer.
 Writer getWriter()
          Returns the writer.
 boolean isResponseCommitted()
          Checks if the response is committed.
 void setContentType(String contentType)
          Sets the content type of the response.
 

Method Detail

getOutputStream

OutputStream getOutputStream()
                             throws IOException
Returns the output stream.

Returns:
The output stream.
Throws:
IOException - If the underlying response causes a problem.

getPrintWriter

PrintWriter getPrintWriter()
                           throws IOException
Returns the print writer.

Returns:
The print writer.
Throws:
IOException - If the underlying response causes a problem.

getWriter

Writer getWriter()
                 throws IOException
Returns the writer.

Returns:
The writer.
Throws:
IOException - If the underlying response causes a problem.

setContentType

void setContentType(String contentType)
Sets the content type of the response.

Parameters:
contentType - The content type.

isResponseCommitted

boolean isResponseCommitted()
Checks if the response is committed.

Returns:
true if the response is committed.


Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.