org.apache.tiles.request.portlet.delegate
Class StateAwareResponseDelegate

Package class diagram package StateAwareResponseDelegate
java.lang.Object
  extended by org.apache.tiles.request.portlet.delegate.StateAwareResponseDelegate
All Implemented Interfaces:
ResponseDelegate

public class StateAwareResponseDelegate
extends Object
implements ResponseDelegate

A state aware response does not allow to access to the output stream and similar, so it is, essentially, a feature blocker.

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

Constructor Summary
StateAwareResponseDelegate()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateAwareResponseDelegate

public StateAwareResponseDelegate()
Method Detail

getOutputStream

public OutputStream getOutputStream()
Description copied from interface: ResponseDelegate
Returns the output stream.

Specified by:
getOutputStream in interface ResponseDelegate
Returns:
The output stream.

getPrintWriter

public PrintWriter getPrintWriter()
Description copied from interface: ResponseDelegate
Returns the print writer.

Specified by:
getPrintWriter in interface ResponseDelegate
Returns:
The print writer.

getWriter

public Writer getWriter()
Description copied from interface: ResponseDelegate
Returns the writer.

Specified by:
getWriter in interface ResponseDelegate
Returns:
The writer.

isResponseCommitted

public boolean isResponseCommitted()
Description copied from interface: ResponseDelegate
Checks if the response is committed.

Specified by:
isResponseCommitted in interface ResponseDelegate
Returns:
true if the response is committed.

setContentType

public void setContentType(String contentType)
Description copied from interface: ResponseDelegate
Sets the content type of the response.

Specified by:
setContentType in interface ResponseDelegate
Parameters:
contentType - The content type.


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