public class MimeResponseDelegate extends Object implements ResponseDelegate
MimeResponse
.Constructor and Description |
---|
MimeResponseDelegate(javax.portlet.MimeResponse response)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public MimeResponseDelegate(javax.portlet.MimeResponse response)
response
- The response.public OutputStream getOutputStream() throws IOException
getOutputStream
in interface ResponseDelegate
IOException
- If the underlying response causes a problem.public PrintWriter getPrintWriter() throws IOException
getPrintWriter
in interface ResponseDelegate
IOException
- If the underlying response causes a problem.public Writer getWriter() throws IOException
getWriter
in interface ResponseDelegate
IOException
- If the underlying response causes a problem.public boolean isResponseCommitted()
isResponseCommitted
in interface ResponseDelegate
true
if the response is committed.public void setContentType(String contentType)
setContentType
in interface ResponseDelegate
contentType
- The content type.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.