@Response(code=202, description="Accepted") public class Accepted extends HttpResponse
The request has been accepted for processing, but the processing has not been completed. The request might or might not be eventually acted upon, and may be disallowed when processing occurs.
Modifier and Type | Field and Description |
---|---|
static int |
CODE
HTTP status code
|
static Accepted |
INSTANCE
Reusable instance.
|
static String |
MESSAGE
Default message
|
Constructor and Description |
---|
Accepted()
Constructor using HTTP-standard message.
|
Accepted(String message)
Constructor using custom message.
|
Modifier and Type | Method and Description |
---|---|
Accepted |
header(String name,
Object val)
Add an HTTP header to this response.
|
getHeaders, toString
public static final int CODE
public static final String MESSAGE
public Accepted()
public Accepted header(String name, Object val)
HttpResponse
header
in class HttpResponse
name
- The header name.val
- The header value.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.