org.jboss.netty.handler.codec.http2
Class DefaultHttpResponse
java.lang.Object
org.jboss.netty.handler.codec.http2.DefaultHttpMessage
org.jboss.netty.handler.codec.http2.DefaultHttpResponse
- All Implemented Interfaces:
- HttpMessage, HttpResponse
public class DefaultHttpResponse
- extends DefaultHttpMessage
- implements HttpResponse
The default HttpResponse implementation.
- Version:
- $Rev: 619 $, $Date: 2010-11-11 20:30:06 +0100 (jeu., 11 nov. 2010) $
- Author:
- The Netty Project, Andy Taylor (andy.taylor@jboss.org), Trustin Lee
| Methods inherited from class org.jboss.netty.handler.codec.http2.DefaultHttpMessage |
addHeader, clearHeaders, containsHeader, getContent, getContentLength, getContentLength, getHeader, getHeaderNames, getHeaders, getHeaders, getProtocolVersion, isChunked, isKeepAlive, removeHeader, setChunked, setContent, setHeader, setHeader, setProtocolVersion |
| Methods inherited from interface org.jboss.netty.handler.codec.http2.HttpMessage |
addHeader, clearHeaders, containsHeader, getContent, getContentLength, getContentLength, getHeader, getHeaderNames, getHeaders, getHeaders, getProtocolVersion, isChunked, isKeepAlive, removeHeader, setChunked, setContent, setHeader, setHeader, setProtocolVersion |
DefaultHttpResponse
public DefaultHttpResponse(HttpVersion version,
HttpResponseStatus status)
- Creates a new instance.
- Parameters:
version - the HTTP version of this responsestatus - the status of this response
getStatus
public HttpResponseStatus getStatus()
- Description copied from interface:
HttpResponse
- Returns the status of this response.
- Specified by:
getStatus in interface HttpResponse
setStatus
public void setStatus(HttpResponseStatus status)
- Description copied from interface:
HttpResponse
- Sets the status of this response.
- Specified by:
setStatus in interface HttpResponse
toString
public String toString()
- Overrides:
toString in class DefaultHttpMessage
Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.