Package org.jboss.resteasy.spi
Interface HttpResponse
-
- All Known Implementing Classes:
HttpServletResponseWrapper
,MockHttpResponse
public interface HttpResponse
Bridge interface between the base Resteasy JAX-RS implementation and the actual HTTP transport (i.e. a servlet container)- Version:
- $Revision: 1 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addNewCookie(javax.ws.rs.core.NewCookie cookie)
javax.ws.rs.core.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
setOutputStream(java.io.OutputStream os)
void
setStatus(int status)
-
-
-
Method Detail
-
getStatus
int getStatus()
-
setStatus
void setStatus(int status)
-
getOutputHeaders
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> getOutputHeaders()
-
getOutputStream
java.io.OutputStream getOutputStream() throws java.io.IOException
- Throws:
java.io.IOException
-
setOutputStream
void setOutputStream(java.io.OutputStream os)
-
addNewCookie
void addNewCookie(javax.ws.rs.core.NewCookie cookie)
-
sendError
void sendError(int status) throws java.io.IOException
- Throws:
java.io.IOException
-
sendError
void sendError(int status, java.lang.String message) throws java.io.IOException
- Throws:
java.io.IOException
-
isCommitted
boolean isCommitted()
-
reset
void reset()
reset status and headers. Will fail if response is committed
-
-