Class SRestInvocationHelper


  • public class SRestInvocationHelper
    extends java.lang.Object
    Simple API for calling JSON-based REST services.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static IFuture<java.lang.String> invokeJson​(IInternalAccess component, java.lang.String uri, java.lang.String path, java.util.Map<java.lang.String,​java.lang.Object> headers, java.util.Map<java.lang.String,​java.lang.Object> params, java.lang.Class<?> resttype)
      Invokes the REST service for a JSON response.
      static IFuture<java.lang.String> invokeJson​(IInternalAccess component, java.lang.String uri, java.lang.String path, java.util.Map<java.lang.String,​java.lang.Object> headers, java.util.Map<java.lang.String,​java.lang.Object> params, java.lang.Class<?> resttype, boolean inurlparams)
      Invokes the REST service for a JSON response.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SRestInvocationHelper

        public SRestInvocationHelper()
    • Method Detail

      • invokeJson

        public static final IFuture<java.lang.String> invokeJson​(IInternalAccess component,
                                                                 java.lang.String uri,
                                                                 java.lang.String path,
                                                                 java.util.Map<java.lang.String,​java.lang.Object> headers,
                                                                 java.util.Map<java.lang.String,​java.lang.Object> params,
                                                                 java.lang.Class<?> resttype)
        Invokes the REST service for a JSON response.
        Parameters:
        uri - URI to invoke.
        path - Path to invoke.
        headers - Header fields.
        params - Parameters.
        Returns:
        Reply string
      • invokeJson

        public static final IFuture<java.lang.String> invokeJson​(IInternalAccess component,
                                                                 java.lang.String uri,
                                                                 java.lang.String path,
                                                                 java.util.Map<java.lang.String,​java.lang.Object> headers,
                                                                 java.util.Map<java.lang.String,​java.lang.Object> params,
                                                                 java.lang.Class<?> resttype,
                                                                 boolean inurlparams)
        Invokes the REST service for a JSON response.
        Parameters:
        uri - URI to invoke.
        path - Path to invoke.
        headers - Header fields.
        params - Parameters.
        Returns:
        Reply string