javax.ws.rs.core
Class Response
java.lang.Object
javax.ws.rs.core.Response
public abstract class Response
- extends Object
Constructor Summary |
protected |
Response()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Response
protected Response()
created
public static Response.ResponseBuilder created(URI location)
fromResponse
public static Response.ResponseBuilder fromResponse(Response response)
getEntity
public abstract Object getEntity()
getMetadata
public abstract MultivaluedMap<String,Object> getMetadata()
getStatus
public abstract int getStatus()
noContent
public static Response.ResponseBuilder noContent()
notAcceptable
public static Response.ResponseBuilder notAcceptable(List<Variant> values)
notModified
public static Response.ResponseBuilder notModified()
notModified
public static Response.ResponseBuilder notModified(EntityTag value)
notModified
public static Response.ResponseBuilder notModified(String value)
ok
public static Response.ResponseBuilder ok()
ok
public static Response.ResponseBuilder ok(Object entity)
ok
public static Response.ResponseBuilder ok(Object entity,
MediaType mediaType)
ok
public static Response.ResponseBuilder ok(Object entity,
String mediaType)
ok
public static Response.ResponseBuilder ok(Object entity,
Variant variant)
seeOther
public static Response.ResponseBuilder seeOther(URI location)
serverError
public static Response.ResponseBuilder serverError()
status
public static Response.ResponseBuilder status(int status)
status
public static Response.ResponseBuilder status(Response.Status status)
status
public static Response.ResponseBuilder status(Response.StatusType status)
temporaryRedirect
public static Response.ResponseBuilder temporaryRedirect(URI location)
Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.