| Modifier and Type | Method and Description |
|---|---|
static javax.ws.rs.core.Response |
badRequest() |
static javax.ws.rs.core.Response |
badRequest(String msg) |
static javax.ws.rs.core.Response |
conflict() |
static javax.ws.rs.core.Response |
conflict(String msg) |
static javax.ws.rs.core.Response |
created(URI location) |
static javax.ws.rs.core.Response |
forbidden() |
static javax.ws.rs.core.Response |
forbidden(String msg) |
static javax.ws.rs.core.Response |
locked() |
static javax.ws.rs.core.Response |
noContent() |
static javax.ws.rs.core.Response |
notFound() |
static javax.ws.rs.core.Response |
notFound(Object entity) |
static javax.ws.rs.core.Response |
notFound(Object entity,
javax.ws.rs.core.MediaType type) |
static javax.ws.rs.core.Response |
ok() |
static javax.ws.rs.core.Response |
ok(boolean entity) |
static javax.ws.rs.core.Response |
ok(InputStream in,
Option<String> contentType,
Option<Long> streamLength,
Option<String> fileName)
Create a response with status OK from a stream.
|
static javax.ws.rs.core.Response |
ok(InputStream in,
String contentType,
Option<Long> streamLength,
Option<String> fileName)
Create a response with status OK from a stream.
|
static javax.ws.rs.core.Response |
ok(Job job) |
static javax.ws.rs.core.Response |
ok(Jsons.Obj json) |
static javax.ws.rs.core.Response |
ok(javax.ws.rs.core.MediaType type,
Object entity) |
static javax.ws.rs.core.Response |
ok(Object entity) |
static javax.ws.rs.core.Response |
preconditionFailed()
Creates a precondition failed status response
|
static javax.ws.rs.core.Response |
preconditionFailed(String message)
Creates a precondition failed status response with a message
|
static javax.ws.rs.core.Response |
serverError() |
public static javax.ws.rs.core.Response ok()
public static javax.ws.rs.core.Response ok(Object entity)
public static javax.ws.rs.core.Response ok(boolean entity)
public static javax.ws.rs.core.Response ok(Jsons.Obj json)
public static javax.ws.rs.core.Response ok(Job job)
public static javax.ws.rs.core.Response ok(javax.ws.rs.core.MediaType type,
Object entity)
public static javax.ws.rs.core.Response ok(InputStream in, String contentType, Option<Long> streamLength, Option<String> fileName)
in - the input stream to read fromcontentType - the content type to set the Content-Type response header tostreamLength - an optional value for the Content-Length response headerfileName - an optional file name for the Content-Disposition response headerpublic static javax.ws.rs.core.Response ok(InputStream in, Option<String> contentType, Option<Long> streamLength, Option<String> fileName)
in - the input stream to read fromcontentType - the content type to set the Content-Type response header tostreamLength - an optional value for the Content-Length response headerfileName - an optional file name for the Content-Disposition response headerpublic static javax.ws.rs.core.Response created(URI location)
public static javax.ws.rs.core.Response notFound()
public static javax.ws.rs.core.Response notFound(Object entity)
public static javax.ws.rs.core.Response notFound(Object entity, javax.ws.rs.core.MediaType type)
public static javax.ws.rs.core.Response locked()
public static javax.ws.rs.core.Response serverError()
public static javax.ws.rs.core.Response conflict()
public static javax.ws.rs.core.Response noContent()
public static javax.ws.rs.core.Response badRequest()
public static javax.ws.rs.core.Response badRequest(String msg)
public static javax.ws.rs.core.Response forbidden()
public static javax.ws.rs.core.Response forbidden(String msg)
public static javax.ws.rs.core.Response conflict(String msg)
public static javax.ws.rs.core.Response preconditionFailed()
public static javax.ws.rs.core.Response preconditionFailed(String message)
message - The message bodyCopyright © 2009–2020 Opencast Project. All rights reserved.