com.noelios.restlet.http
Class HttpRequest

java.lang.Object
  extended by org.restlet.data.Message
      extended by org.restlet.data.Request
          extended by com.noelios.restlet.http.HttpRequest

public class HttpRequest
extends Request

Request wrapper for server HTTP calls.

Author:
Jerome Louvel

Constructor Summary
HttpRequest(Context context, HttpServerCall httpCall)
          Constructor.
 
Method Summary
 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.
 HttpCall getHttpCall()
          Returns the low-level HTTP call.
 java.util.List<Range> getRanges()
           
 Reference getReferrerRef()
          Returns the referrer reference if available.
 void setChallengeResponse(ChallengeResponse response)
           
 void setEntity(Representation entity)
           
 
Methods inherited from class org.restlet.data.Request
getCurrent, getHostRef, getMethod, getOriginalRef, getProtocol, getResourceRef, getRootRef, isConfidential, isEntityAvailable, setClientInfo, setConditions, setCookies, setHostRef, setHostRef, setMethod, setOriginalRef, setRanges, setReferrerRef, setReferrerRef, setResourceRef, setResourceRef, setRootRef
 
Methods inherited from class org.restlet.data.Message
getAttributes, getEntityAsDom, getEntityAsForm, getEntityAsObject, getEntityAsSax, release, setAttributes, setEntity, setEntity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpRequest

public HttpRequest(Context context,
                   HttpServerCall httpCall)
Constructor.

Parameters:
context - The context of the HTTP server connector that issued the call.
httpCall - The low-level HTTP server call.
Method Detail

getChallengeResponse

public ChallengeResponse getChallengeResponse()
Overrides:
getChallengeResponse in class Request

getClientInfo

public ClientInfo getClientInfo()
Returns the client-specific information.

Overrides:
getClientInfo in class Request
Returns:
The client-specific information.

getConditions

public Conditions getConditions()
Returns the condition data applying to this call.

Overrides:
getConditions in class Request
Returns:
The condition data applying to this call.

getCookies

public Series<Cookie> getCookies()
Returns the cookies provided by the client.

Overrides:
getCookies in class Request
Returns:
The cookies provided by the client.

getEntity

public Representation getEntity()
Returns the representation provided by the client.

Overrides:
getEntity in class Message
Returns:
The representation provided by the client.

getHttpCall

public HttpCall getHttpCall()
Returns the low-level HTTP call.

Returns:
The low-level HTTP call.

getRanges

public java.util.List<Range> getRanges()
Overrides:
getRanges in class Request

getReferrerRef

public Reference getReferrerRef()
Returns the referrer reference if available.

Overrides:
getReferrerRef in class Request
Returns:
The referrer reference.

setChallengeResponse

public void setChallengeResponse(ChallengeResponse response)
Overrides:
setChallengeResponse in class Request

setEntity

public void setEntity(Representation entity)
Overrides:
setEntity in class Message


Copyright © 2005-2008 Noelios Technologies.