public class WOResponseWrapper extends Object implements org.jboss.netty.handler.codec.http.HttpResponse
Constructor and Description |
---|
WOResponseWrapper(WOResponse response) |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String name,
Object value) |
void |
clearHeaders() |
boolean |
containsHeader(String name) |
org.jboss.netty.buffer.ChannelBuffer |
getContent() |
long |
getContentLength()
Deprecated.
|
long |
getContentLength(long defaultValue)
Deprecated.
|
String |
getHeader(String name) |
Set<String> |
getHeaderNames() |
List<Map.Entry<String,String>> |
getHeaders() |
List<String> |
getHeaders(String name) |
org.jboss.netty.handler.codec.http.HttpVersion |
getProtocolVersion() |
org.jboss.netty.handler.codec.http.HttpResponseStatus |
getStatus() |
boolean |
isChunked() |
boolean |
isKeepAlive() |
void |
removeHeader(String name) |
void |
setChunked(boolean chunked) |
void |
setContent(org.jboss.netty.buffer.ChannelBuffer content) |
void |
setHeader(String name,
Iterable<?> values) |
void |
setHeader(String name,
Object value) |
void |
setProtocolVersion(org.jboss.netty.handler.codec.http.HttpVersion version) |
void |
setStatus(org.jboss.netty.handler.codec.http.HttpResponseStatus status) |
public WOResponseWrapper(WOResponse response)
public org.jboss.netty.handler.codec.http.HttpResponseStatus getStatus()
getStatus
in interface org.jboss.netty.handler.codec.http.HttpResponse
public void setStatus(org.jboss.netty.handler.codec.http.HttpResponseStatus status)
setStatus
in interface org.jboss.netty.handler.codec.http.HttpResponse
public void addHeader(String name, Object value)
addHeader
in interface org.jboss.netty.handler.codec.http.HttpMessage
public void clearHeaders()
clearHeaders
in interface org.jboss.netty.handler.codec.http.HttpMessage
public boolean containsHeader(String name)
containsHeader
in interface org.jboss.netty.handler.codec.http.HttpMessage
public org.jboss.netty.buffer.ChannelBuffer getContent()
getContent
in interface org.jboss.netty.handler.codec.http.HttpMessage
@Deprecated public long getContentLength()
getContentLength
in interface org.jboss.netty.handler.codec.http.HttpMessage
@Deprecated public long getContentLength(long defaultValue)
getContentLength
in interface org.jboss.netty.handler.codec.http.HttpMessage
public String getHeader(String name)
getHeader
in interface org.jboss.netty.handler.codec.http.HttpMessage
public Set<String> getHeaderNames()
getHeaderNames
in interface org.jboss.netty.handler.codec.http.HttpMessage
public List<Map.Entry<String,String>> getHeaders()
getHeaders
in interface org.jboss.netty.handler.codec.http.HttpMessage
public List<String> getHeaders(String name)
getHeaders
in interface org.jboss.netty.handler.codec.http.HttpMessage
public org.jboss.netty.handler.codec.http.HttpVersion getProtocolVersion()
getProtocolVersion
in interface org.jboss.netty.handler.codec.http.HttpMessage
public boolean isChunked()
isChunked
in interface org.jboss.netty.handler.codec.http.HttpMessage
public boolean isKeepAlive()
isKeepAlive
in interface org.jboss.netty.handler.codec.http.HttpMessage
public void removeHeader(String name)
removeHeader
in interface org.jboss.netty.handler.codec.http.HttpMessage
public void setChunked(boolean chunked)
setChunked
in interface org.jboss.netty.handler.codec.http.HttpMessage
public void setContent(org.jboss.netty.buffer.ChannelBuffer content)
setContent
in interface org.jboss.netty.handler.codec.http.HttpMessage
public void setHeader(String name, Object value)
setHeader
in interface org.jboss.netty.handler.codec.http.HttpMessage
public void setHeader(String name, Iterable<?> values)
setHeader
in interface org.jboss.netty.handler.codec.http.HttpMessage
public void setProtocolVersion(org.jboss.netty.handler.codec.http.HttpVersion version)
setProtocolVersion
in interface org.jboss.netty.handler.codec.http.HttpMessage
Copyright © 2002 – 2024 Project Wonder.