Skip to main content

JSL Java

@@JOSP Docs Map/Refs/JSL@@

    From /Home.md/Start withServices/Java IoT Services
#### Java IoT Services

The Java JSL implementation can be used in any Java, Groovy or Kotlin software. It's published on Maven Central as a public `jar` artifactory. You can download it and copy to /libs directory, or you can include it in your build system like Gradle or Maven. Once it's included in your project, you can initialize its instance, then access all JSL methods: to [list objects, get info or execute their commands]. More info about JSL's instance and his JSL methods can be found at [JSL Reference](3_references/jsl/) page.

Here the steps required to **include and use Java JSL in your projects**:
1. [Include JSL library in your source project](2_guides/developers.md#include-jsl-library)
1. [Initialize the JSL Instance](2_guides/developers.md#initialize-jsl-instance)


1. [List or filter objects, listen for states updates and send action request to objects](2_guides/developers.md#list-and-interact-with-objects)
1. [Manage users](2_guides/developers.md#manage-users)
1. [Manage current service](2_guides/developers.md#manage-current-service)

1. [List](2_guides/developers.md#list-objects) or [filter available objects](2_guides/developers.md#filter-objects)
1. [Get object's state value](2_guides/developers.md#get-state-value)
or [register a listener for updates](2_guides/developers.md#listen-for-state-updates)
1. [Send an action request to object](2_guides/developers.md#send-action-to-object)
1. [Authenticate](2_guides/developers.md#user-authentication)
or [De-Authenticate](2_guides/developers.md#user-de-authentication) user


* [Users](#users)
* [Get current user info](#get-current-user-info)
* [Get other user info](#get-other-user-info)
* [Authenticate user](#authenticate-user)
* [De-authenticate user](#de-authenticate-user)

Once the Java JSL is included in your project, you must initialize its instance before use it. After that you can access all JSL methods: to list objects, get info or execute their commands. More info about JSL's instance and his JSL methods can be found at [JSL Reference](3_references/jsl/) page.

ToDo: add java jsl initialization and objects filter source example