|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restlet.Message
org.restlet.Request
org.restlet.util.WrapperRequest
public class WrapperRequest
Request wrapper. Useful for application developer who need to enrich the request with application related properties and behavior.
| Constructor Summary | |
|---|---|
WrapperRequest(Request wrappedRequest)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
abort()
|
void |
commit(Response response)
|
ConcurrentMap<String,Object> |
getAttributes()
Returns a modifiable attributes map that can be used by developers to save information relative to the message. |
ChallengeResponse |
getChallengeResponse()
Returns the authentication response sent by a client to an origin server. |
ClientInfo |
getClientInfo()
Returns the client-specific information. |
Conditions |
getConditions()
Returns the conditions applying to this call. |
Series<Cookie> |
getCookies()
Returns the cookies provided by the client. |
Representation |
getEntity()
Returns the entity representation. |
Reference |
getHostRef()
Returns the host reference. |
int |
getMaxForwards()
|
Method |
getMethod()
Returns the method. |
Uniform |
getOnResponse()
|
Reference |
getOriginalRef()
|
Protocol |
getProtocol()
Returns the protocol by first returning the baseRef.schemeProtocol property if it is set, or the resourceRef.schemeProtocol property otherwise. |
ChallengeResponse |
getProxyChallengeResponse()
Returns the authentication response sent by a client to a proxy. |
List<Range> |
getRanges()
|
Reference |
getReferrerRef()
Returns the referrer reference if available. |
Reference |
getResourceRef()
Returns the reference of the target resource. |
Reference |
getRootRef()
Returns the application root reference. |
protected Request |
getWrappedRequest()
Returns the wrapped request. |
boolean |
isAsynchronous()
|
boolean |
isConfidential()
Indicates if the call came over a confidential channel such as an SSL-secured connection. |
boolean |
isEntityAvailable()
Indicates if a content is available and can be sent. |
boolean |
isExpectingResponse()
|
boolean |
isSynchronous()
|
void |
setChallengeResponse(ChallengeResponse response)
Sets the authentication response sent by a client to an origin server. |
void |
setClientInfo(ClientInfo clientInfo)
|
void |
setConditions(Conditions conditions)
|
void |
setCookies(Series<Cookie> cookies)
|
void |
setEntity(Representation entity)
Sets the entity representation. |
void |
setEntity(String value,
MediaType mediaType)
Sets a textual entity. |
void |
setHostRef(Reference hostRef)
Sets the host reference. |
void |
setHostRef(String hostUri)
Sets the host reference using an URI string. |
void |
setMaxForwards(int maxForwards)
|
void |
setMethod(Method method)
Sets the method called. |
void |
setOnResponse(Uniform onResponseCallback)
|
void |
setOriginalRef(Reference originalRef)
|
void |
setProtocol(Protocol protocol)
|
void |
setProxyChallengeResponse(ChallengeResponse response)
Sets the authentication response sent by a client to a proxy. |
void |
setRanges(List<Range> ranges)
|
void |
setReferrerRef(Reference referrerRef)
Sets the referrer reference if available. |
void |
setReferrerRef(String referrerUri)
Sets the referrer reference if available using an URI string. |
void |
setResourceRef(Reference resourceRef)
Sets the target resource reference. |
void |
setResourceRef(String resourceUri)
Sets the target resource reference using an URI string. |
void |
setRootRef(Reference rootRef)
Sets the application root reference. |
String |
toString()
|
| Methods inherited from class org.restlet.Request |
|---|
getCurrent, isLoggable, setLoggable |
| Methods inherited from class org.restlet.Message |
|---|
getCacheDirectives, getDate, getEntityAsText, getOnError, getOnSent, getRecipientsInfo, getWarnings, release, setAttributes, setCacheDirectives, setDate, setOnError, setOnSent, setRecipientsInfo, setWarnings |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WrapperRequest(Request wrappedRequest)
wrappedRequest - The wrapped request.| Method Detail |
|---|
public boolean abort()
abort in class Requestpublic void commit(Response response)
commit in class Requestpublic ConcurrentMap<String,Object> getAttributes()
| Attribute name | Class name | Description |
|---|---|---|
| org.restlet.http.headers | org.restlet.data.Form | Server HTTP connectors must provide all request headers and client HTTP connectors must provide all response headers, exactly as they were received. In addition, developers can also use this attribute to specify non-standard headers that should be added to the request or to the response. |
getAttributes in class Messagepublic ChallengeResponse getChallengeResponse()
getChallengeResponse in class Requestpublic ClientInfo getClientInfo()
getClientInfo in class Requestpublic Conditions getConditions()
getConditions in class Requestpublic Series<Cookie> getCookies()
getCookies in class Requestpublic Representation getEntity()
getEntity in class Messagepublic Reference getHostRef()
getHostRef in class Requestpublic int getMaxForwards()
getMaxForwards in class Requestpublic Method getMethod()
getMethod in class Requestpublic Uniform getOnResponse()
getOnResponse in class Requestpublic Reference getOriginalRef()
getOriginalRef in class Requestpublic Protocol getProtocol()
getProtocol in class Requestpublic ChallengeResponse getProxyChallengeResponse()
getProxyChallengeResponse in class Requestpublic List<Range> getRanges()
getRanges in class Requestpublic Reference getReferrerRef()
getReferrerRef in class Requestpublic Reference getResourceRef()
getResourceRef in class Requestpublic Reference getRootRef()
getRootRef in class Requestprotected Request getWrappedRequest()
public boolean isAsynchronous()
isAsynchronous in class Requestpublic boolean isConfidential()
isConfidential in class Requestpublic boolean isEntityAvailable()
isEntityAvailable in class Requestpublic boolean isExpectingResponse()
isExpectingResponse in class Requestpublic boolean isSynchronous()
isSynchronous in class Requestpublic void setChallengeResponse(ChallengeResponse response)
setChallengeResponse in class Requestresponse - The authentication response sent by a client to an origin
server.public void setClientInfo(ClientInfo clientInfo)
setClientInfo in class Requestpublic void setConditions(Conditions conditions)
setConditions in class Requestpublic void setCookies(Series<Cookie> cookies)
setCookies in class Requestpublic void setEntity(Representation entity)
setEntity in class Messageentity - The entity representation.
public void setEntity(String value,
MediaType mediaType)
setEntity in class Messagevalue - The represented string.mediaType - The representation's media type.public void setHostRef(Reference hostRef)
setHostRef in class RequesthostRef - The host reference.public void setHostRef(String hostUri)
setHostRef in class RequesthostUri - The host URI.public void setMaxForwards(int maxForwards)
setMaxForwards in class Requestpublic void setMethod(Method method)
setMethod in class Requestmethod - The method called.public void setOnResponse(Uniform onResponseCallback)
setOnResponse in class Requestpublic void setOriginalRef(Reference originalRef)
setOriginalRef in class Requestpublic void setProtocol(Protocol protocol)
setProtocol in class Requestpublic void setProxyChallengeResponse(ChallengeResponse response)
setProxyChallengeResponse in class Requestresponse - The authentication response sent by a client to a proxy.public void setRanges(List<Range> ranges)
setRanges in class Requestpublic void setReferrerRef(Reference referrerRef)
setReferrerRef in class RequestreferrerRef - The referrer reference.public void setReferrerRef(String referrerUri)
setReferrerRef in class RequestreferrerUri - The referrer URI.public void setResourceRef(Reference resourceRef)
setResourceRef in class RequestresourceRef - The resource reference.public void setResourceRef(String resourceUri)
setResourceRef in class RequestresourceUri - The resource URI.public void setRootRef(Reference rootRef)
setRootRef in class RequestrootRef - The application root reference.public String toString()
toString in class Request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||