Details
-
Feature
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
1.12
-
None
Description
Current Situation
The JobSchedulerRestClient class can be used in JavaScript jobs in a static way like this.
com.sos.jitl.restclient.JobSchedulerRestClient.headers.put("Accept","application/json"); com.sos.jitl.restclient.JobSchedulerRestClient.headers.put("Content-Type","application/json"); var response = com.sos.jitl.restclient.JobSchedulerRestClient.executeRestServiceCommand( "post", url, body );
The class JobSchedulerRestClient implements the method addHeader but this method is not static and therefore can not be used in a static way.
Desired Behavior
The method addHeader in the class JobSchedulerRestClient should be static.
com.sos.jitl.restclient.JobSchedulerRestClient.addHeader("Accept","application/json"); com.sos.jitl.restclient.JobSchedulerRestClient.addHeadder("Content-Type","application/json"); var response = com.sos.jitl.restclient.JobSchedulerRestClient.executeRestServiceCommand( "post", url, body );