public static ResponseBuilder ok(Object entity, Variant variant) { ResponseBuilder b = ok(); b.entity(entity); b.variant(variant); return b; }
/** * Create a new ResponseBuilder that contains a representation. It is the * callers responsibility to wrap the actual entity with * {@link GenericEntity} if preservation of its generic type is required. * * @param entity the representation entity data. * @param variant representation metadata. * @return a new response builder. */ public static ResponseBuilder ok(Object entity, Variant variant) { return ok().entity(entity).variant(variant); }
/** * Create a new ResponseBuilder that contains a representation. It is the * callers responsibility to wrap the actual entity with * {@link GenericEntity} if preservation of its generic type is required. * * @param entity the representation entity data. * @param variant representation metadata. * @return a new response builder. */ public static ResponseBuilder ok(Object entity, Variant variant) { return ok().entity(entity).variant(variant); }
public static ResponseBuilder ok(Object entity, Variant variant) { return ok().entity(entity).variant(variant); }
public static ResponseBuilder ok(Object entity, Variant variant) { return ok().entity(entity).variant(variant); }
public static Response.ResponseBuilder ok(Object entity, Variant variant) { return status(Status.OK).entity(entity).variant(variant); }
public static ResponseBuilder ok(Object entity, Variant variant) { return ok().entity(entity).variant(variant); }
protected static Response createCorrectVariant(Object responseObj, HttpHeaders headers, javax.ws.rs.core.Response.Status status) { Response.ResponseBuilder responseBuilder = null; Variant v = getVariant(headers); if( v == null ) { v = defaultVariant; } if( status != null ) { responseBuilder = Response.status(status).entity(responseObj).variant(v); } else { responseBuilder = Response.ok(responseObj, v); } return responseBuilder.build(); }
public static ResponseBuilder ok(Object entity, Variant variant) { return ok().entity(entity).variant(variant); }
public static Response createCreatedVariant(String responseObj, HttpHeaders headers, UriBuilder builder) { Variant v = getVariant(headers); return Response.created(builder.build()).entity(responseObj).variant(v).build(); }
/** * Create a new ResponseBuilder that contains a representation. It is the * callers responsibility to wrap the actual entity with * {@link GenericEntity} if preservation of its generic type is required. * * @param entity the representation entity data. * @param variant representation metadata. * @return a new response builder. */ public static ResponseBuilder ok(Object entity, Variant variant) { return ok().entity(entity).variant(variant); }
/** * Create a new ResponseBuilder that contains a representation. It is the * callers responsibility to wrap the actual entity with * {@link GenericEntity} if preservation of its generic type is required. * * @param entity the representation entity data. * @param variant representation metadata. * @return a new response builder. */ public static ResponseBuilder ok(Object entity, Variant variant) { return ok().entity(entity).variant(variant); }
public static ResponseBuilder ok(Object entity, Variant variant) { ResponseBuilder b = ok(); b.entity(entity); b.variant(variant); return b; }
/** * Create a new ResponseBuilder that contains a representation. It is the * callers responsibility to wrap the actual entity with * {@link GenericEntity} if preservation of its generic type is required. * * @param entity the representation entity data. * @param variant representation metadata. * @return a new response builder. */ public static ResponseBuilder ok(Object entity, Variant variant) { return ok().entity(entity).variant(variant); }
public static Response createCorrectVariant(String responseObj, HttpHeaders headers, javax.ws.rs.core.Response.Status status) { Response.ResponseBuilder responseBuilder = null; Variant v = getVariant(headers); if( status != null ) { responseBuilder = Response.status(status).entity(responseObj).variant(v); } else { responseBuilder = Response.ok(responseObj, v); } return responseBuilder.build(); }
/** * Create a new ResponseBuilder that contains a representation. It is the * callers responsibility to wrap the actual entity with * {@link GenericEntity} if preservation of its generic type is required. * * @param entity the representation entity data. * @param variant representation metadata. * @return a new response builder. */ public static ResponseBuilder ok(Object entity, Variant variant) { return ok().entity(entity).variant(variant); }
/** * Create a new ResponseBuilder that contains a representation. It is the * callers responsibility to wrap the actual entity with * {@link GenericEntity} if preservation of its generic type is required. * * @param entity the representation entity data. * @param variant representation metadata. * @return a new response builder. */ public static ResponseBuilder ok(Object entity, Variant variant) { return ok().entity(entity).variant(variant); }
/** * Create a new ResponseBuilder that contains a representation. It is the * callers responsibility to wrap the actual entity with * {@link GenericEntity} if preservation of its generic type is required. * * @param entity the representation entity data. * @param variant representation metadata. * @return a new response builder. */ public static ResponseBuilder ok(Object entity, Variant variant) { return ok().entity(entity).variant(variant); }
/** * Create a new ResponseBuilder that contains a representation. It is the * callers responsibility to wrap the actual entity with * {@link GenericEntity} if preservation of its generic type is required. * * @param entity the representation entity data. * @param variant representation metadata. * @return a new response builder. */ public static ResponseBuilder ok(Object entity, Variant variant) { return ok().entity(entity).variant(variant); }
/** * Create a new ResponseBuilder that contains a representation. It is the * callers responsibility to wrap the actual entity with * {@link GenericEntity} if preservation of its generic type is required. * * @param entity the representation entity data. * @param variant representation metadata. * @return a new response builder. */ public static ResponseBuilder ok(Object entity, Variant variant) { return ok().entity(entity).variant(variant); }