public class BuiltResponse
extends javax.ws.rs.core.Response
| Modifier and Type | Field and Description |
|---|---|
protected Annotation[] |
annotations |
protected Object |
entity |
protected Class |
entityClass |
protected Type |
genericType |
protected boolean |
isClosed |
protected Headers<Object> |
metadata |
protected HeaderValueProcessor |
processor |
protected int |
status |
| Constructor and Description |
|---|
BuiltResponse() |
BuiltResponse(int status,
Headers<Object> metadata,
Object entity,
Annotation[] entityAnnotations) |
| Modifier and Type | Method and Description |
|---|---|
void |
abortIfClosed() |
void |
addMethodAnnotations(Annotation[] methodAnnotations) |
boolean |
bufferEntity() |
void |
close() |
Set<String> |
getAllowedMethods() |
Annotation[] |
getAnnotations() |
Map<String,javax.ws.rs.core.NewCookie> |
getCookies() |
Date |
getDate() |
Object |
getEntity() |
Class |
getEntityClass() |
javax.ws.rs.core.EntityTag |
getEntityTag() |
Type |
getGenericType() |
String |
getHeaderString(String name) |
protected HeaderValueProcessor |
getHeaderValueProcessor() |
Locale |
getLanguage() |
Date |
getLastModified() |
int |
getLength() |
javax.ws.rs.core.Link |
getLink(String relation) |
javax.ws.rs.core.Link.Builder |
getLinkBuilder(String relation) |
protected LinkHeaders |
getLinkHeaders() |
Set<javax.ws.rs.core.Link> |
getLinks() |
URI |
getLocation() |
javax.ws.rs.core.MediaType |
getMediaType() |
javax.ws.rs.core.MultivaluedMap<String,Object> |
getMetadata() |
int |
getStatus() |
javax.ws.rs.core.Response.StatusType |
getStatusInfo() |
javax.ws.rs.core.MultivaluedMap<String,String> |
getStringHeaders() |
boolean |
hasEntity() |
boolean |
hasLink(String relation) |
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 |
setEntity(Object entity) |
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) |
protected Object entity
protected int status
protected Annotation[] annotations
protected Class entityClass
protected Type genericType
protected HeaderValueProcessor processor
protected boolean isClosed
public BuiltResponse()
public BuiltResponse(int status,
Headers<Object> metadata,
Object entity,
Annotation[] entityAnnotations)
public Class getEntityClass()
public void setEntityClass(Class entityClass)
protected HeaderValueProcessor getHeaderValueProcessor()
public Object getEntity()
getEntity in class javax.ws.rs.core.Responsepublic int getStatus()
getStatus in class javax.ws.rs.core.Responsepublic javax.ws.rs.core.Response.StatusType getStatusInfo()
getStatusInfo in class javax.ws.rs.core.Responsepublic javax.ws.rs.core.MultivaluedMap<String,Object> getMetadata()
getMetadata in class javax.ws.rs.core.Responsepublic void setEntity(Object entity)
public void setStatus(int status)
public Annotation[] getAnnotations()
public void addMethodAnnotations(Annotation[] methodAnnotations)
public void setAnnotations(Annotation[] annotations)
public Type getGenericType()
public void setGenericType(Type genericType)
public <T> T readEntity(Class<T> type, Annotation[] annotations)
readEntity in class javax.ws.rs.core.Responsepublic <T> T readEntity(javax.ws.rs.core.GenericType<T> entityType,
Annotation[] annotations)
readEntity in class javax.ws.rs.core.Responsepublic <T> T readEntity(Class<T> type)
readEntity in class javax.ws.rs.core.Responsepublic <T> T readEntity(javax.ws.rs.core.GenericType<T> entityType)
readEntity in class javax.ws.rs.core.Responsepublic <T> T readEntity(Class<T> type, Type genericType, Annotation[] anns)
public boolean hasEntity()
hasEntity in class javax.ws.rs.core.Responsepublic boolean bufferEntity()
bufferEntity in class javax.ws.rs.core.Responsepublic boolean isClosed()
public void abortIfClosed()
public void close()
close in class javax.ws.rs.core.Responsepublic Locale getLanguage()
getLanguage in class javax.ws.rs.core.Responsepublic int getLength()
getLength in class javax.ws.rs.core.Responsepublic javax.ws.rs.core.MediaType getMediaType()
getMediaType in class javax.ws.rs.core.Responsepublic Map<String,javax.ws.rs.core.NewCookie> getCookies()
getCookies in class javax.ws.rs.core.Responsepublic javax.ws.rs.core.EntityTag getEntityTag()
getEntityTag in class javax.ws.rs.core.Responsepublic Date getDate()
getDate in class javax.ws.rs.core.Responsepublic Date getLastModified()
getLastModified in class javax.ws.rs.core.Responsepublic Set<String> getAllowedMethods()
getAllowedMethods in class javax.ws.rs.core.Responsepublic javax.ws.rs.core.MultivaluedMap<String,String> getStringHeaders()
getStringHeaders in class javax.ws.rs.core.Responsepublic String getHeaderString(String name)
getHeaderString in class javax.ws.rs.core.Responsepublic URI getLocation()
getLocation in class javax.ws.rs.core.Responsepublic Set<javax.ws.rs.core.Link> getLinks()
getLinks in class javax.ws.rs.core.Responseprotected LinkHeaders getLinkHeaders()
public boolean hasLink(String relation)
hasLink in class javax.ws.rs.core.Responsepublic javax.ws.rs.core.Link getLink(String relation)
getLink in class javax.ws.rs.core.Responsepublic javax.ws.rs.core.Link.Builder getLinkBuilder(String relation)
getLinkBuilder in class javax.ws.rs.core.ResponseCopyright © 2017 JBoss by Red Hat. All rights reserved.