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

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

public class MimeResponseDelegate
extends Object
implements ResponseDelegate

Response delegate in case of MimeResponse.

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

Constructor Summary
MimeResponseDelegate(MimeResponse response)
          Constructor.
 
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

MimeResponseDelegate

public MimeResponseDelegate(MimeResponse response)
Constructor.

Parameters:
response - The response.
Method Detail

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Returns the output stream.

Specified by:
getOutputStream in interface ResponseDelegate
Returns:
The output stream.
Throws:
IOException - If the underlying response causes a problem.

getPrintWriter

public PrintWriter getPrintWriter()
                           throws IOException
Returns the print writer.

Specified by:
getPrintWriter in interface ResponseDelegate
Returns:
The print writer.
Throws:
IOException - If the underlying response causes a problem.

getWriter

public Writer getWriter()
                 throws IOException
Returns the writer.

Specified by:
getWriter in interface ResponseDelegate
Returns:
The writer.
Throws:
IOException - If the underlying response causes a problem.

isResponseCommitted

public boolean isResponseCommitted()
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)
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.