public class RestQuery
extends java.lang.Object
| Constructor and Description | 
|---|
| RestQuery(ClientSession session,
         org.restlet.data.Reference reference) | 
| RestQuery(ClientSession session,
         java.lang.String resourcePath) | 
| Modifier and Type | Method and Description | 
|---|---|
| RestQuery | addFormMultipartFile(java.lang.String filename,
                    java.io.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. | 
| org.restlet.data.Response | post()Executes this rest query as a HTTP query with a POST method. | 
| org.restlet.data.Response | put()Executes this rest query as a HTTP query with a PUT 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 | setParam(java.lang.String key,
        java.lang.String value)Add one parameter to the current query. | 
public RestQuery(ClientSession session, java.lang.String resourcePath)
public RestQuery(ClientSession session, org.restlet.data.Reference reference)
public RestQuery setParam(java.lang.String key, java.lang.String value)
key - value - public RestQuery setForm(org.restlet.data.Form form)
form - public RestQuery setAuthentication(Authentication authentication)
authentication - public RestQuery addFormMultipartFile(java.lang.String filename, java.io.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 put()
public org.restlet.data.Response delete()
Copyright © 2001-2021 Jalios SA. All Rights Reserved.