24 package org.lightjason.agentspeak.action.builtin.web.rest;
32 import javax.annotation.Nonnull;
33 import java.io.IOException;
34 import java.util.List;
66 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return
71 final Map<String, ?> l_data =
IBaseRest.
xml( p_argument.get( 0 ).<String>raw() );
73 p_argument.size() == 2
76 p_argument.stream().skip( 1 ).map(
ITerm::<String>raw ),
83 catch (
final IOException l_exception )
static Stream< ITerm > flatterm( @Nullable final Object p_object)
converts an object into a term stream
static final long serialVersionUID
serial id
static< N > IFuzzyValue< N > from( @Nonnull final N p_value)
factory
static Map< String, ?> xml( @Nonnull final String p_url)
reads a xml structure from an url
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
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...
action to call a restful webservice with XML data.
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
base class to read data from the restful service