@Response(code=102, description="Processing") public class Processing extends HttpResponse
A WebDAV request may contain many sub-requests involving file operations, requiring a long time to complete the request. This code indicates that the server has received and is processing the request, but no response is available yet. This prevents the client from timing out and assuming the request was lost.
Modifier and Type | Field and Description |
---|---|
static int |
CODE
HTTP status code
|
static Processing |
INSTANCE
Reusable instance.
|
static String |
MESSAGE
Default message
|
Constructor and Description |
---|
Processing()
Constructor using HTTP-standard message.
|
Processing(String message)
Constructor using custom message.
|
Modifier and Type | Method and Description |
---|---|
Processing |
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 Processing INSTANCE
public Processing()
public Processing(String message)
message
- Message to send as the response.public Processing 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.