|
||||||||||
| 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.engine.adapter.HttpRequest
public class HttpRequest
Request wrapper for server HTTP calls.
| Constructor Summary | |
|---|---|
HttpRequest(Context context,
ServerCall httpCall)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
abort()
|
static void |
addHeader(Request request,
String headerName,
String headerValue)
Adds a new header to the given request. |
List<CacheDirective> |
getCacheDirectives()
|
ChallengeResponse |
getChallengeResponse()
|
ClientInfo |
getClientInfo()
Returns the client-specific information. |
Conditions |
getConditions()
Returns the condition data applying to this call. |
Series<Cookie> |
getCookies()
Returns the cookies provided by the client. |
Representation |
getEntity()
Returns the representation provided by the client. |
Series<Header> |
getHeaders()
Returns the HTTP headers. |
ServerCall |
getHttpCall()
Returns the low-level HTTP call. |
ChallengeResponse |
getProxyChallengeResponse()
|
List<Range> |
getRanges()
|
List<RecipientInfo> |
getRecipientsInfo()
|
Reference |
getReferrerRef()
Returns the referrer reference if available. |
List<Warning> |
getWarnings()
|
void |
setChallengeResponse(ChallengeResponse response)
|
void |
setEntity(Representation entity)
|
void |
setProxyChallengeResponse(ChallengeResponse response)
|
void |
setRecipientsInfo(List<RecipientInfo> recipientsInfo)
|
void |
setWarnings(List<Warning> warnings)
|
| Methods inherited from class org.restlet.Request |
|---|
commit, getCurrent, getHostRef, getMaxForwards, getMethod, getOnResponse, getOriginalRef, getProtocol, getResourceRef, getRootRef, isAsynchronous, isConfidential, isEntityAvailable, isExpectingResponse, isLoggable, isSynchronous, setClientInfo, setConditions, setCookies, setHostRef, setHostRef, setLoggable, setMaxForwards, setMethod, setOnResponse, setOriginalRef, setProtocol, setRanges, setReferrerRef, setReferrerRef, setResourceRef, setResourceRef, setRootRef, toString |
| Methods inherited from class org.restlet.Message |
|---|
getAttributes, getDate, getEntityAsText, getOnError, getOnSent, release, setAttributes, setCacheDirectives, setDate, setEntity, setOnError, setOnSent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HttpRequest(Context context,
ServerCall httpCall)
context - The context of the HTTP server connector that issued the call.httpCall - The low-level HTTP server call.| Method Detail |
|---|
public static void addHeader(Request request,
String headerName,
String headerValue)
request - The request to update.headerName - The header name to add.headerValue - The header value to add.public boolean abort()
abort in class Requestpublic List<CacheDirective> getCacheDirectives()
getCacheDirectives 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 Series<Header> getHeaders()
public ServerCall getHttpCall()
public ChallengeResponse getProxyChallengeResponse()
getProxyChallengeResponse in class Requestpublic List<Range> getRanges()
getRanges in class Requestpublic List<RecipientInfo> getRecipientsInfo()
getRecipientsInfo in class Messagepublic Reference getReferrerRef()
getReferrerRef in class Requestpublic List<Warning> getWarnings()
getWarnings in class Messagepublic void setChallengeResponse(ChallengeResponse response)
setChallengeResponse in class Requestpublic void setEntity(Representation entity)
setEntity in class Messagepublic void setProxyChallengeResponse(ChallengeResponse response)
setProxyChallengeResponse in class Requestpublic void setRecipientsInfo(List<RecipientInfo> recipientsInfo)
setRecipientsInfo in class Messagepublic void setWarnings(List<Warning> warnings)
setWarnings in class Message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||