Package jadex.extension.rs.invoke
Class SRestInvocationHelper
- java.lang.Object
-
- jadex.extension.rs.invoke.SRestInvocationHelper
-
public class SRestInvocationHelper extends java.lang.Object
Simple API for calling JSON-based REST services.
-
-
Constructor Summary
Constructors Constructor Description SRestInvocationHelper()
-
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.
-
-
-
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
-
-