Class RestCall

java.lang.Object
com.atlassian.greenhopper.web.util.RestCall

public class RestCall extends Object
Jira by default does not log REST call failures in atlassian-jira.log. So we now have a wrapper invoker class to make the rest call and log any errors. This will ensure that they go to the JIRA log and the GreenHopper log (if you use a com.atlassian.greenhopper logger say) and this will help with support as well.
Since:
5.8.7
  • Constructor Details

    • RestCall

      public RestCall(Class restClass)
  • Method Details

    • response

      public javax.ws.rs.core.Response response(Callable<javax.ws.rs.core.Response> callable)
      This will invoke the Callable and return the response to the callee. If an exception occurs it will log that into the appropriate logger.
      Parameters:
      callable - the REST call code that will respond to the rest call
      Returns:
      a REST Response