| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jalios.rest.client.RestQuery
public class RestQuery
An instance of this class represents a HTTP query in the context of a rest query.
| Constructor Summary | |
|---|---|
RestQuery(ClientSession session,
          org.restlet.data.Reference reference)
 | 
|
RestQuery(ClientSession session,
          String resourcePath)
 | 
|
| Method Summary | |
|---|---|
 RestQuery | 
addFormMultipartFile(String filename,
                     File file)
If this method is called, the Content-Type is form-multipart and it is also the format of the entity body, even if the file in parameter is null or empty.  | 
 RestQuery | 
addRelateds(Relateds relateds)
Add relateds parameter to the query (as parameters in the queryString)  | 
 org.restlet.data.Response | 
delete()
Executes this rest query as a HTTP query with a GET method.  | 
 JcmsResource | 
get()
Executes this rest query as a HTTP query with a GET method.  | 
 boolean | 
isNoRedirectExpected()
 | 
 org.restlet.data.Response | 
post()
Executes this rest query as a HTTP query with a POST method.  | 
 RestQuery | 
setAuthentication(Authentication authentication)
A specific authentification may be used for this query.  | 
 RestQuery | 
setForm(org.restlet.data.Form form)
Add a list of parameters to the current query.  | 
 RestQuery | 
setNoRedirectExpected()
Indicates no redirect is expected.  | 
 RestQuery | 
setParam(String key,
         String value)
Add one parameter to the current query.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public RestQuery(ClientSession session,
                 String resourcePath)
public RestQuery(ClientSession session,
                 org.restlet.data.Reference reference)
| Method Detail | 
|---|
public RestQuery setParam(String key,
                          String value)
key - value - 
public RestQuery setForm(org.restlet.data.Form form)
form - 
public RestQuery setAuthentication(Authentication authentication)
authentication - 
public RestQuery addFormMultipartFile(String filename,
                                      File file)
filename - file - 
public JcmsResource get()
                 throws RestException
RestException - thrown if the status is not succeded. The acces to the response os possible by RestException.getResponse()public org.restlet.data.Response post()
public org.restlet.data.Response delete()
public RestQuery addRelateds(Relateds relateds)
relateds - 
public RestQuery setNoRedirectExpected()
public boolean isNoRedirectExpected()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||