org.resteasy.plugins.server.grizzly
Class GrizzlyHttpResponse
java.lang.Object
org.resteasy.plugins.server.grizzly.GrizzlyHttpResponse
- All Implemented Interfaces:
- HttpResponse
public class GrizzlyHttpResponse
- extends java.lang.Object
- implements HttpResponse
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
Field Summary |
protected javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> |
outputHeaders
|
protected com.sun.grizzly.tcp.http11.GrizzlyResponse |
response
|
protected int |
status
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
response
protected com.sun.grizzly.tcp.http11.GrizzlyResponse response
status
protected int status
outputHeaders
protected javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> outputHeaders
GrizzlyHttpResponse
public GrizzlyHttpResponse(com.sun.grizzly.tcp.http11.GrizzlyResponse response,
ResteasyProviderFactory factory)
getStatus
public int getStatus()
- Specified by:
getStatus
in interface HttpResponse
setStatus
public void setStatus(int status)
- Specified by:
setStatus
in interface HttpResponse
getOutputHeaders
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> getOutputHeaders()
- Specified by:
getOutputHeaders
in interface HttpResponse
getOutputStream
public java.io.OutputStream getOutputStream()
throws java.io.IOException
- Specified by:
getOutputStream
in interface HttpResponse
- Throws:
java.io.IOException
addNewCookie
public void addNewCookie(javax.ws.rs.core.NewCookie cookie)
- Specified by:
addNewCookie
in interface HttpResponse
sendError
public void sendError(int status)
throws java.io.IOException
- Specified by:
sendError
in interface HttpResponse
- Throws:
java.io.IOException
sendError
public void sendError(int status,
java.lang.String message)
throws java.io.IOException
- Specified by:
sendError
in interface HttpResponse
- Throws:
java.io.IOException
Copyright © 2008. All Rights Reserved.