javax.ws.rs.core
Class Response

java.lang.Object
  extended by javax.ws.rs.core.Response

public abstract class Response
extends Object


Nested Class Summary
static class Response.ResponseBuilder
           
static class Response.Status
           
static interface Response.StatusType
           
 
Constructor Summary
protected Response()
           
 
Method Summary
static Response.ResponseBuilder created(URI location)
           
static Response.ResponseBuilder fromResponse(Response response)
           
abstract  Object getEntity()
           
abstract  MultivaluedMap<String,Object> getMetadata()
           
abstract  int getStatus()
           
static Response.ResponseBuilder noContent()
           
static Response.ResponseBuilder notAcceptable(List<Variant> values)
           
static Response.ResponseBuilder notModified()
           
static Response.ResponseBuilder notModified(EntityTag value)
           
static Response.ResponseBuilder notModified(String value)
           
static Response.ResponseBuilder ok()
           
static Response.ResponseBuilder ok(Object entity)
           
static Response.ResponseBuilder ok(Object entity, MediaType mediaType)
           
static Response.ResponseBuilder ok(Object entity, String mediaType)
           
static Response.ResponseBuilder ok(Object entity, Variant variant)
           
static Response.ResponseBuilder seeOther(URI location)
           
static Response.ResponseBuilder serverError()
           
static Response.ResponseBuilder status(int status)
           
static Response.ResponseBuilder status(Response.Status status)
           
static Response.ResponseBuilder status(Response.StatusType status)
           
static Response.ResponseBuilder temporaryRedirect(URI location)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Response

protected Response()
Method Detail

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.