@Response(code=305, description="Use Proxy") public class UseProxy extends HttpResponse
The requested resource is available only through a proxy, the address for which is provided in the response. Many HTTP clients (such as Mozilla and Internet Explorer) do not correctly handle responses with this status code, primarily for security reasons.
Modifier and Type | Field and Description |
---|---|
static int |
CODE
HTTP status code
|
static UseProxy |
INSTANCE
Reusable instance.
|
static String |
MESSAGE
Default message
|
Constructor and Description |
---|
UseProxy()
Constructor using HTTP-standard message.
|
UseProxy(String message)
Constructor using custom message.
|
Modifier and Type | Method and Description |
---|---|
UseProxy |
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 UseProxy()
public UseProxy 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.