@Response(code=203, description="Non-Authoritative Information") public class NonAuthoritiveInformation extends HttpResponse
The server is a transforming proxy (e.g. a Web accelerator) that received a 200 OK from its origin, but is returning a modified version of the origin's response.
Modifier and Type | Field and Description |
---|---|
static int |
CODE
HTTP status code
|
static NonAuthoritiveInformation |
INSTANCE
Reusable instance.
|
static String |
MESSAGE
Default message
|
Constructor and Description |
---|
NonAuthoritiveInformation()
Constructor using HTTP-standard message.
|
NonAuthoritiveInformation(String message)
Constructor using custom message.
|
Modifier and Type | Method and Description |
---|---|
NonAuthoritiveInformation |
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 NonAuthoritiveInformation INSTANCE
public NonAuthoritiveInformation()
public NonAuthoritiveInformation(String message)
message
- Message to send as the response.public NonAuthoritiveInformation 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.