public class MockfriendlyResponse
extends javax.ws.rs.core.Response
Modifier and Type | Class and Description |
---|---|
static class |
MockfriendlyResponse.MockedResponseBuilder |
Modifier and Type | Field and Description |
---|---|
static javax.ws.rs.ProcessingException |
CONNECTION_REFUSED |
static javax.ws.rs.core.Response |
DEFAULT_RESPONSE |
static Map<String,RuntimeException> |
errors |
static Map<String,javax.ws.rs.core.Response> |
responses |
Constructor and Description |
---|
MockfriendlyResponse() |
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 static final Map<String,RuntimeException> errors
public static javax.ws.rs.core.Response DEFAULT_RESPONSE
public static javax.ws.rs.ProcessingException CONNECTION_REFUSED
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 © 2016 Digipost Open Source. All rights reserved.