Uploaded image for project: 'JITL - JobScheduler Integrated Template Library'
  1. JITL - JobScheduler Integrated Template Library
  2. JITL-539

Method addHeader in JobSchedulerRestClient should be static

    XMLWordPrintable

Details

    • Feature
    • Status: Released (View Workflow)
    • Minor
    • Resolution: Fixed
    • 1.12
    • 1.12.9
    • 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 );
      

      Attachments

        Activity

          People

            ur Uwe Risse
            ur Uwe Risse
            Kanika Agrawal Kanika Agrawal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: