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.ContainerResponseContext
public void setStatus(int code)
setStatus
in interface javax.ws.rs.container.ContainerResponseContext
public javax.ws.rs.core.Response.StatusType getStatusInfo()
getStatusInfo
in interface javax.ws.rs.container.ContainerResponseContext
public void setStatusInfo(javax.ws.rs.core.Response.StatusType statusInfo)
setStatusInfo
in interface javax.ws.rs.container.ContainerResponseContext
public Class<?> getEntityClass()
getEntityClass
in interface javax.ws.rs.container.ContainerResponseContext
public Type getEntityType()
getEntityType
in interface javax.ws.rs.container.ContainerResponseContext
public void setEntity(Object entity)
setEntity
in interface javax.ws.rs.container.ContainerResponseContext
public void setEntity(Object entity, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
setEntity
in interface javax.ws.rs.container.ContainerResponseContext
public javax.ws.rs.core.MultivaluedMap<String,Object> getHeaders()
getHeaders
in interface javax.ws.rs.container.ContainerResponseContext
public Set<String> getAllowedMethods()
getAllowedMethods
in interface javax.ws.rs.container.ContainerResponseContext
public Date getDate()
getDate
in interface javax.ws.rs.container.ContainerResponseContext
public Locale getLanguage()
getLanguage
in interface javax.ws.rs.container.ContainerResponseContext
public int getLength()
getLength
in interface javax.ws.rs.container.ContainerResponseContext
public javax.ws.rs.core.MediaType getMediaType()
getMediaType
in interface javax.ws.rs.container.ContainerResponseContext
public Map<String,javax.ws.rs.core.NewCookie> getCookies()
getCookies
in interface javax.ws.rs.container.ContainerResponseContext
public javax.ws.rs.core.EntityTag getEntityTag()
getEntityTag
in interface javax.ws.rs.container.ContainerResponseContext
public Date getLastModified()
getLastModified
in interface javax.ws.rs.container.ContainerResponseContext
public URI getLocation()
getLocation
in interface javax.ws.rs.container.ContainerResponseContext
public Set<javax.ws.rs.core.Link> getLinks()
getLinks
in interface javax.ws.rs.container.ContainerResponseContext
public boolean hasLink(String relation)
hasLink
in interface javax.ws.rs.container.ContainerResponseContext
public javax.ws.rs.core.Link getLink(String relation)
getLink
in interface javax.ws.rs.container.ContainerResponseContext
public javax.ws.rs.core.Link.Builder getLinkBuilder(String relation)
getLinkBuilder
in interface javax.ws.rs.container.ContainerResponseContext
public boolean hasEntity()
hasEntity
in interface javax.ws.rs.container.ContainerResponseContext
public Object getEntity()
getEntity
in interface javax.ws.rs.container.ContainerResponseContext
public OutputStream getEntityStream()
getEntityStream
in interface javax.ws.rs.container.ContainerResponseContext
public void setEntityStream(OutputStream entityStream)
setEntityStream
in interface javax.ws.rs.container.ContainerResponseContext
public Annotation[] getEntityAnnotations()
getEntityAnnotations
in interface javax.ws.rs.container.ContainerResponseContext
public javax.ws.rs.core.MultivaluedMap<String,String> getStringHeaders()
getStringHeaders
in interface javax.ws.rs.container.ContainerResponseContext
Copyright © 2015 JBoss by Red Hat. All rights reserved.