Package org.jboss.resteasy.specimpl
Class BuiltResponse
java.lang.Object
javax.ws.rs.core.Response
org.jboss.resteasy.specimpl.BuiltResponse
- Direct Known Subclasses:
ClientResponse
,ServerResponse
public class BuiltResponse
extends javax.ws.rs.core.Response
A response object not attached to a client or server invocation.
- Version:
- $Revision: 1 $
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.ws.rs.core.Response
javax.ws.rs.core.Response.ResponseBuilder, javax.ws.rs.core.Response.Status, javax.ws.rs.core.Response.StatusType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Annotation[]
protected Object
protected Class
protected Type
protected boolean
protected HeaderValueProcessor
protected int
-
Constructor Summary
ConstructorsConstructorDescriptionBuiltResponse
(int status, Headers<Object> metadata, Object entity, Annotation[] entityAnnotations) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addMethodAnnotations
(Annotation[] methodAnnotations) boolean
void
close()
getDate()
javax.ws.rs.core.EntityTag
getHeaderString
(String name) protected HeaderValueProcessor
int
javax.ws.rs.core.Link
javax.ws.rs.core.Link.Builder
getLinkBuilder
(String relation) protected LinkHeaders
Set<javax.ws.rs.core.Link>
getLinks()
javax.ws.rs.core.MediaType
int
javax.ws.rs.core.Response.StatusType
boolean
boolean
boolean
isClosed()
<T> T
readEntity
(Class<T> type) <T> T
readEntity
(Class<T> type, Annotation[] annotations) <T> T
readEntity
(Class<T> type, Type genericType, Annotation[] anns) <T> T
readEntity
(javax.ws.rs.core.GenericType<T> entityType) <T> T
readEntity
(javax.ws.rs.core.GenericType<T> entityType, Annotation[] annotations) void
setAnnotations
(Annotation[] annotations) void
void
setEntityClass
(Class entityClass) void
setGenericType
(Type genericType) void
setMetadata
(javax.ws.rs.core.MultivaluedMap<String, Object> metadata) void
setStatus
(int status) protected String
toHeaderString
(Object header) Methods inherited from class javax.ws.rs.core.Response
accepted, accepted, created, fromResponse, getHeaders, noContent, notAcceptable, notModified, notModified, notModified, ok, ok, ok, ok, ok, seeOther, serverError, status, status, status, temporaryRedirect
-
Field Details
-
entity
-
status
protected int status -
metadata
-
annotations
-
entityClass
-
genericType
-
processor
-
isClosed
protected boolean isClosed
-
-
Constructor Details
-
BuiltResponse
public BuiltResponse() -
BuiltResponse
public BuiltResponse(int status, Headers<Object> metadata, Object entity, Annotation[] entityAnnotations)
-
-
Method Details
-
getEntityClass
-
setEntityClass
-
getHeaderValueProcessor
-
getEntity
- Specified by:
getEntity
in classjavax.ws.rs.core.Response
-
getStatus
public int getStatus()- Specified by:
getStatus
in classjavax.ws.rs.core.Response
-
getStatusInfo
public javax.ws.rs.core.Response.StatusType getStatusInfo()- Specified by:
getStatusInfo
in classjavax.ws.rs.core.Response
-
getMetadata
- Specified by:
getMetadata
in classjavax.ws.rs.core.Response
-
setEntity
-
setStatus
public void setStatus(int status) -
setMetadata
-
getAnnotations
-
addMethodAnnotations
-
setAnnotations
-
getGenericType
-
setGenericType
-
readEntity
- Specified by:
readEntity
in classjavax.ws.rs.core.Response
-
readEntity
- Specified by:
readEntity
in classjavax.ws.rs.core.Response
-
readEntity
- Specified by:
readEntity
in classjavax.ws.rs.core.Response
-
readEntity
public <T> T readEntity(javax.ws.rs.core.GenericType<T> entityType) - Specified by:
readEntity
in classjavax.ws.rs.core.Response
-
readEntity
-
hasEntity
public boolean hasEntity()- Specified by:
hasEntity
in classjavax.ws.rs.core.Response
-
bufferEntity
public boolean bufferEntity()- Specified by:
bufferEntity
in classjavax.ws.rs.core.Response
-
isClosed
public boolean isClosed() -
abortIfClosed
public void abortIfClosed() -
close
public void close()- Specified by:
close
in classjavax.ws.rs.core.Response
-
getLanguage
- Specified by:
getLanguage
in classjavax.ws.rs.core.Response
-
getLength
public int getLength()- Specified by:
getLength
in classjavax.ws.rs.core.Response
-
getMediaType
public javax.ws.rs.core.MediaType getMediaType()- Specified by:
getMediaType
in classjavax.ws.rs.core.Response
-
getCookies
- Specified by:
getCookies
in classjavax.ws.rs.core.Response
-
getEntityTag
public javax.ws.rs.core.EntityTag getEntityTag()- Specified by:
getEntityTag
in classjavax.ws.rs.core.Response
-
getDate
- Specified by:
getDate
in classjavax.ws.rs.core.Response
-
getLastModified
- Specified by:
getLastModified
in classjavax.ws.rs.core.Response
-
getAllowedMethods
- Specified by:
getAllowedMethods
in classjavax.ws.rs.core.Response
-
toHeaderString
-
getStringHeaders
- Specified by:
getStringHeaders
in classjavax.ws.rs.core.Response
-
getHeaderString
- Specified by:
getHeaderString
in classjavax.ws.rs.core.Response
-
getLocation
- Specified by:
getLocation
in classjavax.ws.rs.core.Response
-
getLinks
- Specified by:
getLinks
in classjavax.ws.rs.core.Response
-
getLinkHeaders
-
hasLink
- Specified by:
hasLink
in classjavax.ws.rs.core.Response
-
getLink
- Specified by:
getLink
in classjavax.ws.rs.core.Response
-
getLinkBuilder
- Specified by:
getLinkBuilder
in classjavax.ws.rs.core.Response
-