public class NettyHttpResponse extends Object implements HttpResponse
| Constructor and Description |
|---|
NettyHttpResponse(org.jboss.netty.channel.Channel channel,
boolean keepAlive) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNewCookie(NewCookie cookie) |
org.jboss.netty.buffer.ChannelBuffer |
getBuffer() |
MultivaluedMap<String,Object> |
getOutputHeaders() |
OutputStream |
getOutputStream() |
int |
getStatus() |
boolean |
isCommitted() |
boolean |
isKeepAlive() |
void |
reset()
reset status and headers.
|
void |
sendError(int status) |
void |
sendError(int status,
String message) |
void |
setOutputStream(OutputStream os) |
void |
setStatus(int status) |
public NettyHttpResponse(org.jboss.netty.channel.Channel channel,
boolean keepAlive)
public void setOutputStream(OutputStream os)
setOutputStream in interface HttpResponsepublic org.jboss.netty.buffer.ChannelBuffer getBuffer()
public int getStatus()
getStatus in interface HttpResponsepublic void setStatus(int status)
setStatus in interface HttpResponsepublic MultivaluedMap<String,Object> getOutputHeaders()
getOutputHeaders in interface HttpResponsepublic OutputStream getOutputStream() throws IOException
getOutputStream in interface HttpResponseIOExceptionpublic void addNewCookie(NewCookie cookie)
addNewCookie in interface HttpResponsepublic void sendError(int status)
throws IOException
sendError in interface HttpResponseIOExceptionpublic void sendError(int status,
String message)
throws IOException
sendError in interface HttpResponseIOExceptionpublic boolean isCommitted()
isCommitted in interface HttpResponsepublic void reset()
HttpResponsereset in interface HttpResponsepublic boolean isKeepAlive()
Copyright © 2013. All Rights Reserved.