@Response(code=208, description="Already Reported") public class AlreadyReported extends HttpResponse
The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response, and are not being included again.
Modifier and Type | Field and Description |
---|---|
static int |
CODE
HTTP status code
|
static AlreadyReported |
INSTANCE
Reusable instance.
|
static String |
MESSAGE
Default message
|
Constructor and Description |
---|
AlreadyReported()
Constructor using HTTP-standard message.
|
AlreadyReported(String message)
Constructor using custom message.
|
Modifier and Type | Method and Description |
---|---|
AlreadyReported |
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 static final AlreadyReported INSTANCE
public AlreadyReported()
public AlreadyReported(String message)
message
- Message to send as the response.public AlreadyReported 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.