|
||||||||||
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.connector.HttpInboundRequest
public class HttpInboundRequest
Request wrapper for server HTTP calls.
Constructor Summary | |
---|---|
HttpInboundRequest(Context context,
Connection<Server> connection,
String methodName,
String resourceUri,
String protocol)
Constructor. |
|
HttpInboundRequest(HttpInboundRequest request)
Copy constructor. |
Method Summary | |
---|---|
boolean |
abort()
|
static void |
addHeader(Request request,
String headerName,
String headerValue)
Adds a new header to the given request. |
void |
commit(Response response)
|
List<CacheDirective> |
getCacheDirectives()
|
ChallengeResponse |
getChallengeResponse()
|
ClientInfo |
getClientInfo()
Returns the client-specific information. |
Conditions |
getConditions()
Returns the condition data applying to this call. |
Connection<Server> |
getConnection()
Returns the related connection. |
Series<Cookie> |
getCookies()
Returns the cookies provided by the client. |
Series<Header> |
getHeaders()
Returns the headers. |
ChallengeResponse |
getProxyChallengeResponse()
|
List<Range> |
getRanges()
|
List<RecipientInfo> |
getRecipientsInfo()
|
Reference |
getReferrerRef()
Returns the referrer reference if available. |
Principal |
getUserPrincipal()
Returns the associated user principal. |
List<Warning> |
getWarnings()
|
void |
setChallengeResponse(ChallengeResponse response)
|
void |
setHeaders(Series<Header> headers)
Put the headers in the request's attributes map. |
void |
setProxyChallengeResponse(ChallengeResponse response)
|
void |
setRecipientsInfo(List<RecipientInfo> recipientsInfo)
|
void |
setWarnings(List<Warning> warnings)
|
Methods inherited from class org.restlet.Request |
---|
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, getEntity, getEntityAsText, getOnError, getOnSent, release, setAttributes, setCacheDirectives, setDate, setEntity, setEntity, setOnError, setOnSent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HttpInboundRequest(Context context, Connection<Server> connection, String methodName, String resourceUri, String protocol)
context
- The context of the parent connector.connection
- The associated network connection.methodName
- The protocol method name.resourceUri
- The target resource URI.protocol
- The protocol name and version.public HttpInboundRequest(HttpInboundRequest request)
request
- The request to copy.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 void commit(Response response)
commit
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 Connection<Server> getConnection()
getConnection
in interface InboundRequest
public Series<Cookie> getCookies()
getCookies
in class Request
public Series<Header> getHeaders()
InboundRequest
getHeaders
in interface InboundRequest
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 Principal getUserPrincipal()
public List<Warning> getWarnings()
getWarnings
in class Message
public void setChallengeResponse(ChallengeResponse response)
setChallengeResponse
in class Request
public void setHeaders(Series<Header> headers)
InboundRequest
setHeaders
in interface InboundRequest
headers
- The headers.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 |