public class ContainerResponseContextImpl extends Object implements javax.ws.rs.container.ContainerResponseContext
| Modifier and Type | Field and Description |
|---|---|
protected HttpResponse |
httpResponse |
protected BuiltResponse |
jaxrsResponse |
protected HttpRequest |
request |
| Constructor and Description |
|---|
ContainerResponseContextImpl(HttpRequest request,
HttpResponse httpResponse,
BuiltResponse serverResponse) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAllowedMethods() |
Map<String,javax.ws.rs.core.NewCookie> |
getCookies() |
Date |
getDate() |
Object |
getEntity() |
Annotation[] |
getEntityAnnotations() |
Class<?> |
getEntityClass() |
OutputStream |
getEntityStream() |
javax.ws.rs.core.EntityTag |
getEntityTag() |
Type |
getEntityType() |
javax.ws.rs.core.MultivaluedMap<String,Object> |
getHeaders() |
String |
getHeaderString(String name) |
HttpResponse |
getHttpResponse() |
BuiltResponse |
getJaxrsResponse() |
Locale |
getLanguage() |
Date |
getLastModified() |
int |
getLength() |
javax.ws.rs.core.Link |
getLink(String relation) |
javax.ws.rs.core.Link.Builder |
getLinkBuilder(String relation) |
Set<javax.ws.rs.core.Link> |
getLinks() |
URI |
getLocation() |
javax.ws.rs.core.MediaType |
getMediaType() |
int |
getStatus() |
javax.ws.rs.core.Response.StatusType |
getStatusInfo() |
javax.ws.rs.core.MultivaluedMap<String,String> |
getStringHeaders() |
boolean |
hasEntity() |
boolean |
hasLink(String relation) |
void |
setEntity(Object entity) |
void |
setEntity(Object entity,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
void |
setEntityStream(OutputStream entityStream) |
void |
setStatus(int code) |
void |
setStatusInfo(javax.ws.rs.core.Response.StatusType statusInfo) |
protected final HttpRequest request
protected final HttpResponse httpResponse
protected final BuiltResponse jaxrsResponse
public ContainerResponseContextImpl(HttpRequest request, HttpResponse httpResponse, BuiltResponse serverResponse)
public BuiltResponse getJaxrsResponse()
public HttpResponse getHttpResponse()
public int getStatus()
getStatus in interface javax.ws.rs.container.ContainerResponseContextpublic void setStatus(int code)
setStatus in interface javax.ws.rs.container.ContainerResponseContextpublic javax.ws.rs.core.Response.StatusType getStatusInfo()
getStatusInfo in interface javax.ws.rs.container.ContainerResponseContextpublic void setStatusInfo(javax.ws.rs.core.Response.StatusType statusInfo)
setStatusInfo in interface javax.ws.rs.container.ContainerResponseContextpublic Class<?> getEntityClass()
getEntityClass in interface javax.ws.rs.container.ContainerResponseContextpublic Type getEntityType()
getEntityType in interface javax.ws.rs.container.ContainerResponseContextpublic void setEntity(Object entity)
setEntity in interface javax.ws.rs.container.ContainerResponseContextpublic void setEntity(Object entity, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
setEntity in interface javax.ws.rs.container.ContainerResponseContextpublic javax.ws.rs.core.MultivaluedMap<String,Object> getHeaders()
getHeaders in interface javax.ws.rs.container.ContainerResponseContextpublic Set<String> getAllowedMethods()
getAllowedMethods in interface javax.ws.rs.container.ContainerResponseContextpublic Date getDate()
getDate in interface javax.ws.rs.container.ContainerResponseContextpublic Locale getLanguage()
getLanguage in interface javax.ws.rs.container.ContainerResponseContextpublic int getLength()
getLength in interface javax.ws.rs.container.ContainerResponseContextpublic javax.ws.rs.core.MediaType getMediaType()
getMediaType in interface javax.ws.rs.container.ContainerResponseContextpublic Map<String,javax.ws.rs.core.NewCookie> getCookies()
getCookies in interface javax.ws.rs.container.ContainerResponseContextpublic javax.ws.rs.core.EntityTag getEntityTag()
getEntityTag in interface javax.ws.rs.container.ContainerResponseContextpublic Date getLastModified()
getLastModified in interface javax.ws.rs.container.ContainerResponseContextpublic URI getLocation()
getLocation in interface javax.ws.rs.container.ContainerResponseContextpublic Set<javax.ws.rs.core.Link> getLinks()
getLinks in interface javax.ws.rs.container.ContainerResponseContextpublic boolean hasLink(String relation)
hasLink in interface javax.ws.rs.container.ContainerResponseContextpublic javax.ws.rs.core.Link getLink(String relation)
getLink in interface javax.ws.rs.container.ContainerResponseContextpublic javax.ws.rs.core.Link.Builder getLinkBuilder(String relation)
getLinkBuilder in interface javax.ws.rs.container.ContainerResponseContextpublic boolean hasEntity()
hasEntity in interface javax.ws.rs.container.ContainerResponseContextpublic Object getEntity()
getEntity in interface javax.ws.rs.container.ContainerResponseContextpublic OutputStream getEntityStream()
getEntityStream in interface javax.ws.rs.container.ContainerResponseContextpublic void setEntityStream(OutputStream entityStream)
setEntityStream in interface javax.ws.rs.container.ContainerResponseContextpublic Annotation[] getEntityAnnotations()
getEntityAnnotations in interface javax.ws.rs.container.ContainerResponseContextpublic javax.ws.rs.core.MultivaluedMap<String,String> getStringHeaders()
getStringHeaders in interface javax.ws.rs.container.ContainerResponseContextCopyright © 2017 JBoss by Red Hat. All rights reserved.