public class StateAwareResponseDelegate extends Object implements ResponseDelegate
Constructor and Description |
---|
StateAwareResponseDelegate() |
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 OutputStream getOutputStream()
ResponseDelegate
getOutputStream
in interface ResponseDelegate
public PrintWriter getPrintWriter()
ResponseDelegate
getPrintWriter
in interface ResponseDelegate
public Writer getWriter()
ResponseDelegate
getWriter
in interface ResponseDelegate
public boolean isResponseCommitted()
ResponseDelegate
isResponseCommitted
in interface ResponseDelegate
true
if the response is committed.public void setContentType(String contentType)
ResponseDelegate
setContentType
in interface ResponseDelegate
contentType
- The content type.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.