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
Modifier and TypeMethodDescriptionvoid
addNewCookie
(javax.ws.rs.core.NewCookie cookie) int
boolean
void
reset()
reset status and headers.void
sendError
(int status) void
void
void
setStatus
(int status)
-
Method Details
-
getStatus
int getStatus() -
setStatus
void setStatus(int status) -
getOutputHeaders
-
getOutputStream
- Throws:
IOException
-
setOutputStream
-
addNewCookie
void addNewCookie(javax.ws.rs.core.NewCookie cookie) -
sendError
- Throws:
IOException
-
sendError
- Throws:
IOException
-
isCommitted
boolean isCommitted() -
reset
void reset()reset status and headers. Will fail if response is committed
-