|
||||||||||
| 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 Requestpublic void commit(Response response)
commit 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 Connection<Server> getConnection()
getConnection in interface InboundRequestpublic Series<Cookie> getCookies()
getCookies in class Requestpublic Series<Header> getHeaders()
InboundRequest
getHeaders in interface InboundRequestpublic 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 Principal getUserPrincipal()
public List<Warning> getWarnings()
getWarnings in class Messagepublic void setChallengeResponse(ChallengeResponse response)
setChallengeResponse in class Requestpublic void setHeaders(Series<Header> headers)
InboundRequest
setHeaders in interface InboundRequestheaders - The headers.public 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 | |||||||||