@Response(code=301, description="Moved Permanently") @BeanIgnore @Deprecated public class MovedPermanently extends HttpResponse
MovedPermanently
This and all future requests should be directed to the given URI.
Modifier and Type | Field and Description |
---|---|
static int |
CODE
Deprecated.
HTTP status code
|
static MovedPermanently |
INSTANCE
Deprecated.
Reusable instance.
|
static String |
MESSAGE
Deprecated.
Default message
|
Constructor and Description |
---|
MovedPermanently()
Deprecated.
Constructor using HTTP-standard message.
|
MovedPermanently(String message)
Deprecated.
Constructor with no redirect.
|
MovedPermanently(String message,
URI location)
Deprecated.
Constructor using custom message.
|
MovedPermanently(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 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
- public MovedPermanently(URI location)
location
- @ResponseHeader(name="Location", description="New location of resource.") public URI getLocation()
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.