24 package org.lightjason.agentspeak.action.builtin.web.rest;
32 import javax.annotation.Nonnull;
33 import java.io.IOException;
34 import java.util.List;
65 @SuppressWarnings(
"unchecked" )
67 @Nonnull final List<
ITerm> p_argument, @Nonnull final List<
ITerm> p_return
73 p_argument.get( 0 ).<String>raw(),
78 p_argument.size() == 2
81 p_argument.stream().skip( 1 ).map(
ITerm::<String>raw ),
88 catch (
final IOException l_exception )
static Stream< ITerm > flatterm( @Nullable final Object p_object)
converts an object into a term stream
static< N > IFuzzyValue< N > from( @Nonnull final N p_value)
factory
static ITerm baseliteral( @Nonnull final Stream< String > p_functor, @Nonnull final Stream< ITerm > p_values)
creates a literal structure from a stream of string elements, the string stream will be build in a tr...
execution context with local data
result for an immutable fuzzy value
default generic literal class for agent beliefs a literal consists of a functor, an optional list of ...
static ILiteral from( @Nonnull final String p_functor, @Nullable final ITerm... p_values)
factory
final IFuzzyValue< Boolean > execute(final boolean p_parallel, @Nonnull final IContext p_context, @Nonnull final List< ITerm > p_argument, @Nonnull final List< ITerm > p_return)
defines a plan-body operation
base class to read data from the restful service
static final long serialVersionUID
serial id
static< T > T json( @Nonnull final String p_url, @Nonnull final Class< T > p_class)
reads a json structure from an url
action for calling a restful webservice with a JSON object.