public static class AbstractMockClient.FakeInboundResponse
extends javax.ws.rs.core.Response
Constructor and Description |
---|
FakeInboundResponse(javax.ws.rs.core.Response.Status status,
Object entity,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedHashMap<String,Object> headers) |
Modifier and Type | Method and Description |
---|---|
boolean |
bufferEntity() |
void |
close() |
Set<String> |
getAllowedMethods() |
Map<String,javax.ws.rs.core.NewCookie> |
getCookies() |
Date |
getDate() |
Object |
getEntity() |
javax.ws.rs.core.EntityTag |
getEntityTag() |
String |
getHeaderString(String name) |
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() |
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) |
<T> T |
readEntity(Class<T> entityType) |
<T> T |
readEntity(Class<T> entityType,
Annotation[] annotations) |
<T> T |
readEntity(javax.ws.rs.core.GenericType<T> entityType) |
<T> T |
readEntity(javax.ws.rs.core.GenericType<T> entityType,
Annotation[] annotations) |
public int getStatus()
getStatus
in class javax.ws.rs.core.Response
public javax.ws.rs.core.Response.StatusType getStatusInfo()
getStatusInfo
in class javax.ws.rs.core.Response
public Object getEntity()
getEntity
in class javax.ws.rs.core.Response
public <T> T readEntity(Class<T> entityType)
readEntity
in class javax.ws.rs.core.Response
public <T> T readEntity(javax.ws.rs.core.GenericType<T> entityType)
readEntity
in class javax.ws.rs.core.Response
public <T> T readEntity(Class<T> entityType, Annotation[] annotations)
readEntity
in class javax.ws.rs.core.Response
public <T> T readEntity(javax.ws.rs.core.GenericType<T> entityType, Annotation[] annotations)
readEntity
in class javax.ws.rs.core.Response
public boolean hasEntity()
hasEntity
in class javax.ws.rs.core.Response
public boolean bufferEntity()
bufferEntity
in class javax.ws.rs.core.Response
public void close()
close
in class javax.ws.rs.core.Response
public javax.ws.rs.core.MediaType getMediaType()
getMediaType
in class javax.ws.rs.core.Response
public Locale getLanguage()
getLanguage
in class javax.ws.rs.core.Response
public int getLength()
getLength
in class javax.ws.rs.core.Response
public Set<String> getAllowedMethods()
getAllowedMethods
in class javax.ws.rs.core.Response
public Map<String,javax.ws.rs.core.NewCookie> getCookies()
getCookies
in class javax.ws.rs.core.Response
public javax.ws.rs.core.EntityTag getEntityTag()
getEntityTag
in class javax.ws.rs.core.Response
public Date getDate()
getDate
in class javax.ws.rs.core.Response
public Date getLastModified()
getLastModified
in class javax.ws.rs.core.Response
public URI getLocation()
getLocation
in class javax.ws.rs.core.Response
public Set<javax.ws.rs.core.Link> getLinks()
getLinks
in class javax.ws.rs.core.Response
public boolean hasLink(String relation)
hasLink
in class javax.ws.rs.core.Response
public javax.ws.rs.core.Link getLink(String relation)
getLink
in class javax.ws.rs.core.Response
public javax.ws.rs.core.Link.Builder getLinkBuilder(String relation)
getLinkBuilder
in class javax.ws.rs.core.Response
public javax.ws.rs.core.MultivaluedMap<String,Object> getMetadata()
getMetadata
in class javax.ws.rs.core.Response
public javax.ws.rs.core.MultivaluedMap<String,String> getStringHeaders()
getStringHeaders
in class javax.ws.rs.core.Response
Copyright © 2018 Vitam. All rights reserved.