org.jboss.resteasy.plugins.server.netty
Class NettyHttpResponse
java.lang.Object
org.jboss.resteasy.plugins.server.netty.NettyHttpResponse
- All Implemented Interfaces:
- HttpResponse
public class NettyHttpResponse
- extends Object
- implements HttpResponse
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
Constructor Summary |
NettyHttpResponse(org.jboss.netty.channel.Channel channel,
boolean keepAlive)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NettyHttpResponse
public NettyHttpResponse(org.jboss.netty.channel.Channel channel,
boolean keepAlive)
getBuffer
public org.jboss.netty.buffer.ChannelBuffer getBuffer()
getStatus
public int getStatus()
- Specified by:
getStatus
in interface HttpResponse
setStatus
public void setStatus(int status)
- Specified by:
setStatus
in interface HttpResponse
getOutputHeaders
public MultivaluedMap<String,Object> getOutputHeaders()
- Specified by:
getOutputHeaders
in interface HttpResponse
getOutputStream
public OutputStream getOutputStream()
throws IOException
- Specified by:
getOutputStream
in interface HttpResponse
- Throws:
IOException
addNewCookie
public void addNewCookie(NewCookie cookie)
- Specified by:
addNewCookie
in interface HttpResponse
sendError
public void sendError(int status)
throws IOException
- Specified by:
sendError
in interface HttpResponse
- Throws:
IOException
sendError
public void sendError(int status,
String message)
throws IOException
- Specified by:
sendError
in interface HttpResponse
- Throws:
IOException
isCommitted
public boolean isCommitted()
- Specified by:
isCommitted
in interface HttpResponse
reset
public void reset()
- Description copied from interface:
HttpResponse
- reset status and headers. Will fail if response is committed
- Specified by:
reset
in interface HttpResponse
isKeepAlive
public boolean isKeepAlive()
Copyright © 2012. All Rights Reserved.