Package org.apache.cxf.jaxrs.impl
Class AbstractResponseContextImpl
- java.lang.Object
-
- org.apache.cxf.jaxrs.impl.AbstractResponseContextImpl
-
- Direct Known Subclasses:
ContainerResponseContextImpl
public abstract class AbstractResponseContextImpl extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.cxf.message.Messagemprotected ResponseImplr
-
Constructor Summary
Constructors Constructor Description AbstractResponseContextImpl(ResponseImpl r, org.apache.cxf.message.Message m)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getAllowedMethods()Map<String,javax.ws.rs.core.NewCookie>getCookies()DategetDate()ObjectgetEntity()javax.ws.rs.core.EntityTaggetEntityTag()StringgetHeaderString(String name)LocalegetLanguage()DategetLastModified()intgetLength()javax.ws.rs.core.LinkgetLink(String rel)javax.ws.rs.core.Link.BuildergetLinkBuilder(String rel)Set<javax.ws.rs.core.Link>getLinks()URIgetLocation()javax.ws.rs.core.MediaTypegetMediaType()protected Annotation[]getResponseEntityAnnotations()intgetStatus()javax.ws.rs.core.Response.StatusTypegetStatusInfo()javax.ws.rs.core.MultivaluedMap<String,String>getStringHeaders()booleanhasEntity()booleanhasLink(String rel)voidsetEntity(Object entity)voidsetEntity(Object entity, Annotation[] anns, javax.ws.rs.core.MediaType mt)voidsetStatus(int status)voidsetStatusInfo(javax.ws.rs.core.Response.StatusType status)
-
-
-
Field Detail
-
m
protected org.apache.cxf.message.Message m
-
r
protected ResponseImpl r
-
-
Constructor Detail
-
AbstractResponseContextImpl
public AbstractResponseContextImpl(ResponseImpl r, org.apache.cxf.message.Message m)
-
-
Method Detail
-
getDate
public Date getDate()
-
getEntity
public Object getEntity()
-
getEntityTag
public javax.ws.rs.core.EntityTag getEntityTag()
-
getLanguage
public Locale getLanguage()
-
getLastModified
public Date getLastModified()
-
getLength
public int getLength()
-
getLink
public javax.ws.rs.core.Link getLink(String rel)
-
getLinkBuilder
public javax.ws.rs.core.Link.Builder getLinkBuilder(String rel)
-
getLinks
public Set<javax.ws.rs.core.Link> getLinks()
-
getLocation
public URI getLocation()
-
getMediaType
public javax.ws.rs.core.MediaType getMediaType()
-
getStatus
public int getStatus()
-
getStatusInfo
public javax.ws.rs.core.Response.StatusType getStatusInfo()
-
hasEntity
public boolean hasEntity()
-
hasLink
public boolean hasLink(String rel)
-
setEntity
public void setEntity(Object entity, Annotation[] anns, javax.ws.rs.core.MediaType mt)
-
setEntity
public void setEntity(Object entity)
-
getResponseEntityAnnotations
protected Annotation[] getResponseEntityAnnotations()
-
setStatus
public void setStatus(int status)
-
setStatusInfo
public void setStatusInfo(javax.ws.rs.core.Response.StatusType status)
-
-