@Response(code=207, description="Multi-Status") public class MultiStatus extends HttpResponse
The message body that follows is by default an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.
Modifier and Type | Field and Description |
---|---|
static int |
CODE
HTTP status code
|
static MultiStatus |
INSTANCE
Reusable instance.
|
static String |
MESSAGE
Default message
|
Constructor and Description |
---|
MultiStatus()
Constructor using HTTP-standard message.
|
MultiStatus(String message)
Constructor using custom message.
|
Modifier and Type | Method and Description |
---|---|
MultiStatus |
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 MultiStatus INSTANCE
public MultiStatus()
public MultiStatus(String message)
message
- Message to send as the response.public MultiStatus 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.