|
||||||||||
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.http.connector.ConnectedRequest
public class ConnectedRequest
Request wrapper for server HTTP calls.
Constructor Summary | |
---|---|
ConnectedRequest(ConnectedRequest request)
Copy constructor. |
|
ConnectedRequest(Context context,
ServerConnection connection,
Method method,
String resourceUri,
String version,
Series<Parameter> headers,
Representation entity,
boolean confidential,
Principal userPrincipal)
Constructor. |
Methods inherited from class org.restlet.Request |
---|
getCurrent, getHostRef, getMaxForwards, getMethod, getOnResponse, getOriginalRef, getProtocol, getResourceRef, getRootRef, isConfidential, isEntityAvailable, isExpectingResponse, setClientInfo, setConditions, setCookies, setHostRef, setHostRef, setMaxForwards, setMethod, setOnResponse, setOriginalRef, setProtocol, setRanges, setReferrerRef, setReferrerRef, setResourceRef, setResourceRef, setRootRef, toString |
Methods inherited from class org.restlet.Message |
---|
getAttributes, getDate, getEntity, getEntityAsForm, getEntityAsText, getOnSent, release, setAttributes, setCacheDirectives, setDate, setEntity, setEntity, setOnSent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConnectedRequest(ConnectedRequest request)
request
- The request to copy.public ConnectedRequest(Context context, ServerConnection connection, Method method, String resourceUri, String version, Series<Parameter> headers, Representation entity, boolean confidential, Principal userPrincipal)
context
- The context of the parent connector.connection
- The associated network connection.method
- The protocol method.resourceUri
- The target resource URI.version
- The protocol version.headers
- The request headers.entity
- The request entity.confidential
- True if received confidentially.userPrincipal
- The user principal.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
protected ServerConnection getConnection()
public Series<Cookie> getCookies()
getCookies
in class Request
public Series<Parameter> getHeaders()
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 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 |