SeeOther
@Response(code=303, description="See Other") @BeanIgnore @Deprecated public class SeeOther extends HttpResponse
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
Deprecated.
HTTP status code
|
static SeeOther |
INSTANCE
Deprecated.
Reusable instance.
|
static String |
MESSAGE
Deprecated.
Default message
|
Constructor and Description |
---|
SeeOther()
Deprecated.
Constructor using HTTP-standard message.
|
SeeOther(String message)
Deprecated.
Constructor with no redirect.
|
SeeOther(String uri,
Object uriArgs)
Deprecated.
Constructor.
|
SeeOther(String message,
String uri,
Object uriArgs)
Deprecated.
Constructor.
|
SeeOther(String message,
URI location)
Deprecated.
Constructor using custom message.
|
SeeOther(URI location)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
URI |
getLocation()
Deprecated.
|
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
- 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(URI location)
location
- 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()
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.