@Response(code=303, description="See Other") @BeanIgnore public class SeeOther extends HttpResponse
HTTP 303 See Other
response.
The response to the request can be found under another URI using the GET method. When received in response to a POST (or PUT/DELETE), the client should presume that the server has received the data and should issue a new GET request to the given URI.
Modifier and Type | Field and Description |
---|---|
static int |
CODE
HTTP status code
|
static SeeOther |
INSTANCE
Reusable instance.
|
static String |
MESSAGE
Default message
|
Constructor and Description |
---|
SeeOther()
Constructor using HTTP-standard message.
|
SeeOther(String message)
Constructor with no redirect.
|
SeeOther(String uri,
Object uriArgs)
Constructor.
|
SeeOther(String message,
String uri,
Object uriArgs)
Constructor.
|
SeeOther(String message,
URI location)
Constructor using custom message.
|
SeeOther(URI location)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
URI |
getLocation() |
toString
public static final int CODE
public static final String MESSAGE
public SeeOther()
public SeeOther(String message)
Used for end-to-end interfaces.
message
- Message to send as the response.public SeeOther(String message, URI location)
message
- Message to send as the response.location
- Location
header value.public SeeOther(String message, String uri, Object uriArgs)
message
- Message to send as the response.uri
- URI containing MessageFormat
-style arguments.uriArgs
- MessageFormat
-style arguments.public SeeOther(String uri, Object uriArgs)
uri
- URI containing MessageFormat
-style arguments.uriArgs
- MessageFormat
-style arguments.@ResponseHeader(name="Location", description="Other location.") public URI getLocation()
Location
header value.Copyright © 2018 Apache. All rights reserved.