|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restlet.data.Message
org.restlet.data.Response
public class Response
Generic response sent by server connectors. It is then received by client connectors. Responses are uniform across all types of connectors, protocols and components.
Request,
Uniform| Constructor Summary | |
|---|---|
Response(Request request)
Constructor. |
|
| Method Summary | |
|---|---|
Set<Method> |
getAllowedMethods()
Returns the set of methods allowed on the requested resource. |
ChallengeRequest |
getChallengeRequest()
Returns the authentication request sent by an origin server to a client. |
Series<CookieSetting> |
getCookieSettings()
Returns the cookie settings provided by the server. |
Set<Dimension> |
getDimensions()
Returns the set of selecting dimensions on which the response entity may vary. |
Reference |
getRedirectRef()
Returns the reference that the client should follow for redirections or resource creations. |
Request |
getRequest()
Returns the associated request |
ServerInfo |
getServerInfo()
Returns the server-specific information. |
Status |
getStatus()
Returns the status. |
void |
redirectPermanent(Reference targetRef)
Permanently redirects the client to a target URI. |
void |
redirectPermanent(String targetUri)
Permanently redirects the client to a target URI. |
void |
redirectSeeOther(Reference targetRef)
Redirects the client to a different URI that SHOULD be retrieved using a GET method on that resource. |
void |
redirectSeeOther(String targetUri)
Redirects the client to a different URI that SHOULD be retrieved using a GET method on that resource. |
void |
redirectTemporary(Reference targetRef)
Temporarily redirects the client to a target URI. |
void |
redirectTemporary(String targetUri)
Temporarily redirects the client to a target URI. |
void |
setChallengeRequest(ChallengeRequest request)
Sets the authentication request sent by an origin server to a client. |
void |
setRedirectRef(Reference redirectRef)
Sets the reference that the client should follow for redirections or resource creations. |
void |
setRedirectRef(String redirectUri)
Sets the reference that the client should follow for redirections or resource creations. |
void |
setRequest(Request request)
Sets the associated request. |
void |
setStatus(Status status)
Sets the status. |
void |
setStatus(Status status,
String message)
Sets the status. |
| Methods inherited from class org.restlet.data.Message |
|---|
getAttributes, getEntity, getEntityAsDom, getEntityAsForm, getEntityAsObject, getEntityAsSax, isEntityAvailable, setEntity, setEntity, setEntity |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Response(Request request)
request - The request associated to this response.| Method Detail |
|---|
public Set<Method> getAllowedMethods()
public ChallengeRequest getChallengeRequest()
public Series<CookieSetting> getCookieSettings()
public Set<Dimension> getDimensions()
public Reference getRedirectRef()
public Request getRequest()
public ServerInfo getServerInfo()
public Status getStatus()
public void redirectPermanent(String targetUri)
targetUri - The target URI.public void redirectPermanent(Reference targetRef)
targetRef - The target URI reference.public void redirectSeeOther(String targetUri)
targetUri - The target URI.public void redirectSeeOther(Reference targetRef)
targetRef - The target reference.public void redirectTemporary(String targetUri)
targetUri - The target URI.public void redirectTemporary(Reference targetRef)
targetRef - The target reference.public void setChallengeRequest(ChallengeRequest request)
request - The authentication request sent by an origin server to a
client.public void setRedirectRef(Reference redirectRef)
redirectRef - The redirection reference.public void setRedirectRef(String redirectUri)
redirectUri - The redirection URI.public void setRequest(Request request)
request - The associated requestpublic void setStatus(Status status)
status - The status to set.
public void setStatus(Status status,
String message)
status - The status to set.message - The status message.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||