The RestComponentHelper
and RestRepositoryHelper
classes might not support every type of request you want to issue to the server. If this is the case, you can issue a request using the createHttpRequest()
method of the RestSession
class. There are two versions of this method:
public RestResult createHttpRequest(String pURL, Map<String,Object> pParams, String pMethodType)
public RestResult createHttpRequest(String pURL, Map<String,Object> pParams, Object[] pArguments, String pMethodType)
The following table describes the arguments for each version of this method.
Argument | Description |
---|---|
| The URL to request, formatted as http://hostname:port/uri The |
| A Map of parameters to submit along with the request. This argument is the same as it would have been if you made the request using either of the helper classes. It contains parameters which can control certain aspects of the request. |
| An array of Objects which contain the method parameter values. Use this argument only for method calls. The value is the same as it would be if calling the |
| The HTTP method for the request: GET, POST, PUT, or DELETE. The |