org.jboss.resteasy.plugins.server.netty
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 |
setStatus(int status) |
public NettyHttpResponse(org.jboss.netty.channel.Channel channel, boolean keepAlive)
public org.jboss.netty.buffer.ChannelBuffer getBuffer()
public int getStatus()
getStatus
in interface HttpResponse
public void setStatus(int status)
setStatus
in interface HttpResponse
public MultivaluedMap<String,Object> getOutputHeaders()
getOutputHeaders
in interface HttpResponse
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface HttpResponse
IOException
public void addNewCookie(NewCookie cookie)
addNewCookie
in interface HttpResponse
public void sendError(int status) throws IOException
sendError
in interface HttpResponse
IOException
public void sendError(int status, String message) throws IOException
sendError
in interface HttpResponse
IOException
public boolean isCommitted()
isCommitted
in interface HttpResponse
public void reset()
HttpResponse
reset
in interface HttpResponse
public boolean isKeepAlive()
Copyright © 2014. All Rights Reserved.