public class ContainerResponse extends Object implements GenericContainerResponse
| Constructor and Description |
|---|
ContainerResponse(ContainerResponseWriter responseWriter) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.MediaType |
getContentType() |
Object |
getEntity() |
Type |
getEntityType() |
javax.ws.rs.core.MultivaluedMap<String,Object> |
getHttpHeaders() |
javax.ws.rs.core.Response |
getResponse()
Get preset
Response. |
int |
getStatus() |
void |
setResponse(javax.ws.rs.core.Response response)
Set response.
|
void |
writeResponse()
Write response to output stream.
|
public ContainerResponse(ContainerResponseWriter responseWriter)
responseWriter - See ContainerResponseWriterpublic void setResponse(javax.ws.rs.core.Response response)
GenericContainerResponsesetResponse in interface GenericContainerResponseresponse - See Responsepublic javax.ws.rs.core.Response getResponse()
GenericContainerResponseResponse. This method can be useful for modification
GenericContainerResponse. See
ResponseFilter.doFilter(GenericContainerResponse).getResponse in interface GenericContainerResponseResponse or null if it was not initialized yet.public void writeResponse()
throws IOException
GenericContainerResponsewriteResponse in interface GenericContainerResponseIOException - if any i/o errors occurspublic javax.ws.rs.core.MediaType getContentType()
getContentType in interface GenericContainerResponsepublic Type getEntityType()
getEntityType in interface GenericContainerResponsepublic Object getEntity()
getEntity in interface GenericContainerResponsepublic javax.ws.rs.core.MultivaluedMap<String,Object> getHttpHeaders()
getHttpHeaders in interface GenericContainerResponsepublic int getStatus()
getStatus in interface GenericContainerResponseCopyright © 2015. All rights reserved.