@Response(code=301, description="Moved Permanently") @BeanIgnore public class MovedPermanently extends HttpResponse
HTTP 301 Moved Permanently
response.
This and all future requests should be directed to the given URI.
Modifier and Type | Field and Description |
---|---|
static int |
CODE
HTTP status code
|
static MovedPermanently |
INSTANCE
Reusable instance.
|
static String |
MESSAGE
Default message
|
Constructor and Description |
---|
MovedPermanently()
Constructor using HTTP-standard message.
|
MovedPermanently(String message)
Constructor with no redirect.
|
MovedPermanently(String message,
URI location)
Constructor using custom message.
|
MovedPermanently(URI location)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
URI |
getLocation() |
toString
public static final int CODE
public static final String MESSAGE
public static final MovedPermanently INSTANCE
public MovedPermanently()
public MovedPermanently(String message)
Used for end-to-end interfaces.
message
- Message to send as the response.public MovedPermanently(String message, URI location)
message
- Message to send as the response.location
- Location
header value.public MovedPermanently(URI location)
location
- Location
header value.@ResponseHeader(name="Location", description="New location of resource.") public URI getLocation()
Location
header value.Copyright © 2018 Apache. All rights reserved.