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 Objectprotected Classprotected Typeprotected booleanprotected HeaderValueProcessorprotected int -
Constructor Summary
ConstructorsConstructorDescriptionBuiltResponse(int status, Headers<Object> metadata, Object entity, Annotation[] entityAnnotations) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddMethodAnnotations(Annotation[] methodAnnotations) booleanvoidclose()getDate()javax.ws.rs.core.EntityTaggetHeaderString(String name) protected HeaderValueProcessorintjavax.ws.rs.core.Linkjavax.ws.rs.core.Link.BuildergetLinkBuilder(String relation) protected LinkHeadersSet<javax.ws.rs.core.Link> getLinks()javax.ws.rs.core.MediaTypeintjavax.ws.rs.core.Response.StatusTypebooleanbooleanbooleanisClosed()<T> TreadEntity(Class<T> type) <T> TreadEntity(Class<T> type, Annotation[] annotations) <T> TreadEntity(Class<T> type, Type genericType, Annotation[] anns) <T> TreadEntity(javax.ws.rs.core.GenericType<T> entityType) <T> TreadEntity(javax.ws.rs.core.GenericType<T> entityType, Annotation[] annotations) voidsetAnnotations(Annotation[] annotations) voidvoidsetEntityClass(Class entityClass) voidsetGenericType(Type genericType) voidsetMetadata(javax.ws.rs.core.MultivaluedMap<String, Object> metadata) voidsetStatus(int status) protected StringtoHeaderString(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:
getEntityin classjavax.ws.rs.core.Response
-
getStatus
public int getStatus()- Specified by:
getStatusin classjavax.ws.rs.core.Response
-
getStatusInfo
public javax.ws.rs.core.Response.StatusType getStatusInfo()- Specified by:
getStatusInfoin classjavax.ws.rs.core.Response
-
getMetadata
-
setEntity
-
setStatus
public void setStatus(int status) -
setMetadata
-
getAnnotations
-
addMethodAnnotations
-
setAnnotations
-
getGenericType
-
setGenericType
-
readEntity
- Specified by:
readEntityin classjavax.ws.rs.core.Response
-
readEntity
- Specified by:
readEntityin classjavax.ws.rs.core.Response
-
readEntity
- Specified by:
readEntityin classjavax.ws.rs.core.Response
-
readEntity
public <T> T readEntity(javax.ws.rs.core.GenericType<T> entityType) - Specified by:
readEntityin classjavax.ws.rs.core.Response
-
readEntity
-
hasEntity
public boolean hasEntity()- Specified by:
hasEntityin classjavax.ws.rs.core.Response
-
bufferEntity
public boolean bufferEntity()- Specified by:
bufferEntityin classjavax.ws.rs.core.Response
-
isClosed
public boolean isClosed() -
abortIfClosed
public void abortIfClosed() -
close
public void close()- Specified by:
closein classjavax.ws.rs.core.Response
-
getLanguage
- Specified by:
getLanguagein classjavax.ws.rs.core.Response
-
getLength
public int getLength()- Specified by:
getLengthin classjavax.ws.rs.core.Response
-
getMediaType
public javax.ws.rs.core.MediaType getMediaType()- Specified by:
getMediaTypein classjavax.ws.rs.core.Response
-
getCookies
-
getEntityTag
public javax.ws.rs.core.EntityTag getEntityTag()- Specified by:
getEntityTagin classjavax.ws.rs.core.Response
-
getDate
- Specified by:
getDatein classjavax.ws.rs.core.Response
-
getLastModified
- Specified by:
getLastModifiedin classjavax.ws.rs.core.Response
-
getAllowedMethods
-
toHeaderString
-
getStringHeaders
-
getHeaderString
-
getLocation
- Specified by:
getLocationin classjavax.ws.rs.core.Response
-
getLinks
- Specified by:
getLinksin classjavax.ws.rs.core.Response
-
getLinkHeaders
-
hasLink
- Specified by:
hasLinkin classjavax.ws.rs.core.Response
-
getLink
- Specified by:
getLinkin classjavax.ws.rs.core.Response
-
getLinkBuilder
- Specified by:
getLinkBuilderin classjavax.ws.rs.core.Response
-