LightJason - AgentSpeak(L++)
|
web base action class More...
Protected Member Functions | |
IBaseWeb (final int p_length) | |
ctor More... | |
Protected Member Functions inherited from org.lightjason.agentspeak.action.builtin.IBuiltinAction | |
IBuiltinAction () | |
ctor More... | |
IBuiltinAction (final int p_length) | |
ctor More... | |
Static Protected Member Functions | |
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 tree structure More... | |
static Stream< ITerm > | flatterm ( @Nullable final Object p_object) |
converts an object into a term stream More... | |
static HttpGet | httpget ( @Nonnull final String p_url) |
returns a http-get connection More... | |
static String | httpgetexecute ( @Nonnull final String p_url) throws IOException |
execute http-get request More... | |
static String | httpgetexecute ( @Nonnull final HttpGet p_get) throws IOException |
execute http-get request More... | |
static HttpPost | httppost ( @Nonnull final String p_url) |
returns a http-post connection More... | |
static String | httppostexecute ( @Nonnull final HttpPost p_post) throws IOException |
execute http-post request More... | |
Static Private Member Functions | |
static Stream< ITerm > | flatcollection ( @Nonnull final Collection<?> p_collection) |
transforms a collection into a term stream More... | |
static Stream< ITerm > | flatmap ( @Nonnull final Map< String, ?> p_map) |
transformas a map into a literal More... | |
static< T extends HttpRequestBase > T | header ( @Nonnull final T p_request) |
sets the default header definition More... | |
Static Private Attributes | |
static final long | serialVersionUID = 4839156213009145751L |
serial id More... | |
Additional Inherited Members | |
Public Member Functions inherited from org.lightjason.agentspeak.action.builtin.IBuiltinAction | |
final IPath | name () |
returns the name with path of the action More... | |
Public Member Functions inherited from org.lightjason.agentspeak.action.IBaseAction | |
final boolean | equals (final Object p_object) |
final int | hashCode () |
final String | toString () |
Public Member Functions inherited from org.lightjason.agentspeak.action.IAction | |
default int | minimalArgumentNumber () |
minimum number of arguments More... | |
default Stream< IVariable<?> > | variables () |
returns a stream with all used variables More... | |
Public Member Functions inherited from org.lightjason.agentspeak.language.execution.IExecution | |
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 More... | |
Public Attributes inherited from org.lightjason.agentspeak.action.IAction | |
long | serialVersionUID = -6374480398439703170L |
serial id More... | |
Static Protected Attributes inherited from org.lightjason.agentspeak.action.builtin.IBuiltinAction | |
static final Logger | LOGGER = CCommon.logger( IBuiltinAction.class ) |
logger More... | |
Static Protected Attributes inherited from org.lightjason.agentspeak.action.IBaseAction | |
static final Logger | LOGGER = org.lightjason.agentspeak.common.CCommon.logger( IAction.class ) |
logger More... | |
Definition at line 53 of file IBaseWeb.java.
|
protected |
p_length | length |
Definition at line 65 of file IBaseWeb.java.
|
staticprotected |
p_functor | stream with functor strings |
p_values | value stream |
Definition at line 159 of file IBaseWeb.java.
References org.lightjason.agentspeak.language.CLiteral.from().
Referenced by org.lightjason.agentspeak.action.builtin.web.rest.CXMLObject.execute(), org.lightjason.agentspeak.action.builtin.web.rest.CJsonObject.execute(), org.lightjason.agentspeak.action.builtin.web.rest.CJsonList.execute(), and org.lightjason.agentspeak.action.builtin.web.graphql.IBaseGraphQL.execute().
|
staticprivate |
p_collection | collection |
Definition at line 218 of file IBaseWeb.java.
References org.lightjason.agentspeak.action.builtin.web.IBaseWeb.flatterm().
Referenced by org.lightjason.agentspeak.action.builtin.web.IBaseWeb.flatterm().
|
staticprivate |
p_map | input map |
Definition at line 199 of file IBaseWeb.java.
References org.lightjason.agentspeak.action.builtin.web.IBaseWeb.flatterm(), and org.lightjason.agentspeak.language.CLiteral.from().
Referenced by org.lightjason.agentspeak.action.builtin.web.IBaseWeb.flatterm().
|
staticprotected |
p_object | object |
Definition at line 178 of file IBaseWeb.java.
References org.lightjason.agentspeak.action.builtin.web.IBaseWeb.flatcollection(), org.lightjason.agentspeak.action.builtin.web.IBaseWeb.flatmap(), and org.lightjason.agentspeak.language.CRawTerm< T >.from().
Referenced by org.lightjason.agentspeak.action.builtin.web.rest.CXMLObject.execute(), org.lightjason.agentspeak.action.builtin.web.rest.CJsonObject.execute(), org.lightjason.agentspeak.action.builtin.web.rest.CJsonList.execute(), org.lightjason.agentspeak.action.builtin.web.IBaseWeb.flatcollection(), org.lightjason.agentspeak.action.builtin.web.IBaseWeb.flatmap(), and org.lightjason.agentspeak.action.builtin.web.graphql.IBaseGraphQL.sendquery().
|
staticprivate |
p_request | request |
T | request type |
Definition at line 99 of file IBaseWeb.java.
References org.lightjason.agentspeak.common.CCommon.configuration(), and org.lightjason.agentspeak.common.CCommon.PACKAGEROOT.
Referenced by org.lightjason.agentspeak.action.builtin.web.IBaseWeb.httpget(), and org.lightjason.agentspeak.action.builtin.web.IBaseWeb.httppost().
|
staticprotected |
p_url | url |
Definition at line 87 of file IBaseWeb.java.
References org.lightjason.agentspeak.action.builtin.web.IBaseWeb.header().
Referenced by org.lightjason.agentspeak.action.builtin.web.IBaseWeb.httpgetexecute().
|
staticprotected |
p_url | url |
IOException | is thrown on connection errors |
Definition at line 121 of file IBaseWeb.java.
References org.lightjason.agentspeak.action.builtin.web.IBaseWeb.httpget().
Referenced by org.lightjason.agentspeak.action.builtin.web.rest.IBaseRest.json(), and org.lightjason.agentspeak.action.builtin.web.rest.IBaseRest.xml().
|
staticprotected |
p_get | get request |
IOException | is thrown on connection errors |
Definition at line 133 of file IBaseWeb.java.
|
staticprotected |
p_url | url |
Definition at line 76 of file IBaseWeb.java.
References org.lightjason.agentspeak.action.builtin.web.IBaseWeb.header().
Referenced by org.lightjason.agentspeak.action.builtin.web.graphql.IBaseGraphQL.sendquery().
|
staticprotected |
p_post | post request |
IOException | is thrown on connection errors |
Definition at line 145 of file IBaseWeb.java.
Referenced by org.lightjason.agentspeak.action.builtin.web.graphql.IBaseGraphQL.sendquery().
|
staticprivate |
Definition at line 58 of file IBaseWeb.java.