This project contains examples using the Hoka HTTP Server :
- SimpleExample : a minimal example of the Hoka webserver.
- HttpsExample : similar to SimpleExample but using HTTPS.
- RestExample : an example with a REST service.
- AccessControlExample : an example with REST services to setup a minimal application with authentication and authorization.
- SlowNetworkExample : an example to setup a webserver optimized for slow networks using compression and caching techniques.
The examples can be run either on the simulator or on the device using following procedures.
- Right Click on the project to run
- Select Run as -> MicroEJ Application
- Select your platform
- Press Ok
-
Right Click on the example to build
-
Select Run as -> Run Configuration
-
Select MicroEJ Application configuration kind
-
Click on New launch configuration icon
-
In Execution tab
-
In Target frame, in Platform field, select a relevant platform (but not a virtual device)
-
In Execution frame
- Select Execute on Device
- In Settings field, select Build & Deploy
-
-
Press Apply
-
Press Run
-
Copy the generated
.outfile path
- Use the appropriate flashing tool.
This library requires the following Foundation Libraries:
@FOUNDATION_LIBRARIES_LIST@
All dependencies are retrieved transitively by Ivy resolver.
N.A.
None.
Copyright 2019 MicroEJ Corp. All rights reserved. Use of this source code is governed by a BSD-style license that can be found with this software.