|
||||||||||
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 Request
public List<CacheDirective> getCacheDirectives()
getCacheDirectives
in class Message
public ChallengeResponse getChallengeResponse()
getChallengeResponse
in class Request
public ClientInfo getClientInfo()
getClientInfo
in class Request
public Conditions getConditions()
getConditions
in class Request
public Series<Cookie> getCookies()
getCookies
in class Request
public Representation getEntity()
getEntity
in class Message
public Series<Header> getHeaders()
public ServerCall getHttpCall()
public ChallengeResponse getProxyChallengeResponse()
getProxyChallengeResponse
in class Request
public List<Range> getRanges()
getRanges
in class Request
public List<RecipientInfo> getRecipientsInfo()
getRecipientsInfo
in class Message
public Reference getReferrerRef()
getReferrerRef
in class Request
public List<Warning> getWarnings()
getWarnings
in class Message
public void setChallengeResponse(ChallengeResponse response)
setChallengeResponse
in class Request
public void setEntity(Representation entity)
setEntity
in class Message
public void setProxyChallengeResponse(ChallengeResponse response)
setProxyChallengeResponse
in class Request
public void setRecipientsInfo(List<RecipientInfo> recipientsInfo)
setRecipientsInfo
in class Message
public 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 |