com.webobjects.appserver
Class WOResponseWrapper
java.lang.Object
com.webobjects.appserver.WOResponseWrapper
- All Implemented Interfaces:
- org.jboss.netty.handler.codec.http.HttpMessage, org.jboss.netty.handler.codec.http.HttpResponse
public class WOResponseWrapper
- extends Object
- implements org.jboss.netty.handler.codec.http.HttpResponse
Wrapper for WOResponse to pass to Netty HttpResponseEncoder
- Author:
- ravim
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WOResponseWrapper
public WOResponseWrapper(WOResponse response)
getStatus
public org.jboss.netty.handler.codec.http.HttpResponseStatus getStatus()
- Specified by:
getStatus in interface org.jboss.netty.handler.codec.http.HttpResponse
setStatus
public void setStatus(org.jboss.netty.handler.codec.http.HttpResponseStatus status)
- Specified by:
setStatus in interface org.jboss.netty.handler.codec.http.HttpResponse
addHeader
public void addHeader(String name,
Object value)
- Specified by:
addHeader in interface org.jboss.netty.handler.codec.http.HttpMessage
clearHeaders
public void clearHeaders()
- Specified by:
clearHeaders in interface org.jboss.netty.handler.codec.http.HttpMessage
containsHeader
public boolean containsHeader(String name)
- Specified by:
containsHeader in interface org.jboss.netty.handler.codec.http.HttpMessage
getContent
public org.jboss.netty.buffer.ChannelBuffer getContent()
- Specified by:
getContent in interface org.jboss.netty.handler.codec.http.HttpMessage
getContentLength
@Deprecated
public long getContentLength()
- Deprecated.
- Specified by:
getContentLength in interface org.jboss.netty.handler.codec.http.HttpMessage
getContentLength
@Deprecated
public long getContentLength(long defaultValue)
- Deprecated.
- Specified by:
getContentLength in interface org.jboss.netty.handler.codec.http.HttpMessage
getHeader
public String getHeader(String name)
- Specified by:
getHeader in interface org.jboss.netty.handler.codec.http.HttpMessage
getHeaderNames
public Set<String> getHeaderNames()
- Specified by:
getHeaderNames in interface org.jboss.netty.handler.codec.http.HttpMessage
getHeaders
public List<Map.Entry<String,String>> getHeaders()
- Specified by:
getHeaders in interface org.jboss.netty.handler.codec.http.HttpMessage
getHeaders
public List<String> getHeaders(String name)
- Specified by:
getHeaders in interface org.jboss.netty.handler.codec.http.HttpMessage
getProtocolVersion
public org.jboss.netty.handler.codec.http.HttpVersion getProtocolVersion()
- Specified by:
getProtocolVersion in interface org.jboss.netty.handler.codec.http.HttpMessage
isChunked
public boolean isChunked()
- Specified by:
isChunked in interface org.jboss.netty.handler.codec.http.HttpMessage
isKeepAlive
public boolean isKeepAlive()
- Specified by:
isKeepAlive in interface org.jboss.netty.handler.codec.http.HttpMessage
removeHeader
public void removeHeader(String name)
- Specified by:
removeHeader in interface org.jboss.netty.handler.codec.http.HttpMessage
setChunked
public void setChunked(boolean chunked)
- Specified by:
setChunked in interface org.jboss.netty.handler.codec.http.HttpMessage
setContent
public void setContent(org.jboss.netty.buffer.ChannelBuffer content)
- Specified by:
setContent in interface org.jboss.netty.handler.codec.http.HttpMessage
setHeader
public void setHeader(String name,
Object value)
- Specified by:
setHeader in interface org.jboss.netty.handler.codec.http.HttpMessage
setHeader
public void setHeader(String name,
Iterable<?> values)
- Specified by:
setHeader in interface org.jboss.netty.handler.codec.http.HttpMessage
setProtocolVersion
public void setProtocolVersion(org.jboss.netty.handler.codec.http.HttpVersion version)
- Specified by:
setProtocolVersion in interface org.jboss.netty.handler.codec.http.HttpMessage
Copyright © 2002 – 2011 Project Wonder.