org.jboss.resteasy.plugins.server.servlet
Class HttpServletResponseWrapper

java.lang.Object
  extended by org.jboss.resteasy.plugins.server.servlet.HttpServletResponseWrapper
All Implemented Interfaces:
HttpResponse

public class HttpServletResponseWrapper
extends java.lang.Object
implements HttpResponse

Version:
$Revision: 1 $
Author:
Bill Burke

Constructor Summary
HttpServletResponseWrapper(javax.servlet.http.HttpServletResponse response, ResteasyProviderFactory factory)
           
 
Method Summary
 void addNewCookie(NewCookie cookie)
           
 MultivaluedMap<java.lang.String,java.lang.Object> getOutputHeaders()
           
 java.io.OutputStream getOutputStream()
           
 int getStatus()
           
 boolean isCommitted()
           
 void reset()
          reset status and headers.
 void sendError(int status)
           
 void sendError(int status, java.lang.String message)
           
 void setStatus(int status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpServletResponseWrapper

public HttpServletResponseWrapper(javax.servlet.http.HttpServletResponse response,
                                  ResteasyProviderFactory factory)
Method Detail

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<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(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

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


Copyright © 2009. All Rights Reserved.