|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.ws.rest.api.response.HttpResponse com.sun.ws.rest.api.response.TemporaryRedirect
public class TemporaryRedirect
An abstraction for a HTTP response to temporarily redirect a client to a new URI.
Constructor Summary | |
---|---|
TemporaryRedirect()
Creates a new instance of TemporaryRedirect |
|
TemporaryRedirect(java.net.URI location)
Creates a new instance of TemporaryRedirect |
Method Summary | |
---|---|
void |
addResponseHeaders(HttpContext context)
Add the HTTP headers for this type of response to the response context. |
java.net.URI |
getLocation()
Get the location where clients wil be redirected. |
void |
setLocation(java.net.URI location)
Set the location where clients wil be redirected. |
Methods inherited from class com.sun.ws.rest.api.response.HttpResponse |
---|
getCacheControl, getCacheControl, getRepresentation, getStatus, setRepresentation, setStatus |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemporaryRedirect()
public TemporaryRedirect(java.net.URI location)
location
- the location where clients wil be redirected. Relative URIs
are allowed, the runtime will resolve such URIs against the URI of the
resource whose method returned the representation.Method Detail |
---|
public void setLocation(java.net.URI location)
location
- the location where clients wil be redirected. Relative URIs
are allowed, the runtime will resolve such URIs against the URI of the
resource whose method returned the representation.public java.net.URI getLocation()
public void addResponseHeaders(HttpContext context)
addResponseHeaders
in class HttpResponse
context
- the current HTTP context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |