Class Index | File Index

Classes


Class SLSession

A class which provides Slang Requests performing functionality. Can be used for any slang requests. See HTTPFabricConnection#createSLSession and HTTPFabricConnection#createSLSession methods to create the SLSession.
Defined in: <D:\Programs\Neeve\Projects\NeeveBuild\stjsapi/src/main/webapp/js\SLSession.js>.

Class Summary
Constructor Attributes Constructor Name and Description
 
SLSession(fabricConnection, nodeName, name)
Creates new SLSession for a fabric connection
Method Summary
Method Attributes Method Name and Description
Promise 
close(callback,)
Closes slang session.
Promise 
completeRequest(script, timeout, callback)
Sends the specified Complete request for the specified script and waits until a response will be received or waiting period will expire.
void 
Returns a name of the session.
void 
Returns a node name of the session.
void 
Interrups current request.
void 
Interrups all requests in the queue.
Boolean 
Returns true if slang session is opened.
Promise 
slangRequest(request, timeout, callback)
Sends the specified Semantic Language request and waits until a response will be received or waiting period will expire.
Class Detail
SLSession(fabricConnection, nodeName, name)
Creates new SLSession for a fabric connection
Parameters:
{HTTPFabricConnection} fabricConnection
The fabric connection for which the security manager is returned
nodeName
name
Method Detail
{Promise} close(callback,)
Closes slang session.
Parameters:
{Function} callback,
will be called if specified
Returns:
{Promise} if callback is not specified

{Promise} completeRequest(script, timeout, callback)
Sends the specified Complete request for the specified script and waits until a response will be received or waiting period will expire.
Parameters:
{String} script
to be completed.
{Int} timeout
in milliseconds, if not set http timeout will be used
callback
Returns:
{Promise}

getName()
Returns a name of the session.
Returns:
the session name.

getNodeName()
Returns a node name of the session.
Returns:
the session node name.

interrupt()
Interrups current request.

interruptAll()
Interrups all requests in the queue.

{Boolean} isOpened()
Returns true if slang session is opened.
Returns:
{Boolean} true if session is opened.

{Promise} slangRequest(request, timeout, callback)
Sends the specified Semantic Language request and waits until a response will be received or waiting period will expire.
Parameters:
{String} request
the request to be sent.
{Int} timeout
in milliseconds, if not set http timeout will be used
callback
Returns:
{Promise}

Copyright © 2015-2021 StreamScape Technologies. All rights reserved.