Skip to content

Ada Servlet - Web Servlet Library following JSR 154, JSR 315

License

Notifications You must be signed in to change notification settings

stcarrez/ada-servlet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

42d54c5 · Dec 22, 2024
Dec 21, 2024
May 24, 2018
Aug 2, 2022
Dec 22, 2024
Dec 21, 2024
Dec 22, 2024
Dec 22, 2024
Dec 8, 2024
Dec 22, 2024
Apr 17, 2017
Aug 20, 2024
Aug 31, 2024
Aug 27, 2010
Dec 22, 2024
Oct 13, 2024
Dec 1, 2024
Feb 13, 2021
Dec 1, 2024
Dec 22, 2024
Sep 28, 2024
Mar 9, 2019
Dec 8, 2024
Aug 20, 2024
Aug 20, 2024
Jun 19, 2015

Repository files navigation

Ada Servlet

Alire Build Status Test Status Coverage Download License GitLab Commits

Ada Servlet allows to create web applications using the same pattern as the Java Servlet (See JSR 154, JSR 315).

The Ada Servlet library is used by the Ada Server Faces framework, the OpenAPI Ada library and Ada Web Application to provide server web requests.

Version 1.8.0 - Under development

  • Fix #15: wrong client_secret initialization in OAuth servlet: copy paste error
  • Feature #16: Better control of response types in REST servlet from the operation
  • Allow to build and install without Alire

Version 1.7.1 - Aug 2024

  • Cleanup build environment to drop configure

List all versions

Using with Alire

If you are using Alire in your project, run the following command within your Alire project to use the library:

alr with servletada

For the web server, you have the choice between:

Choose one of the following crates:

alr with servletada_aws
alr with servletada_ews

Using without Alire

If you don't have Alire or want to build and install the library on a specific place, run a setup command to configure the build as well as installation directory.

The HAVE_ALIRE configuration allows you to disable the build with Alire, the HAVE_AWS controls the support for AWS and the HAVE_EWS controls the support for EWS.

make setup BUILD=debug PREFIX=/build/install HAVE_ALIRE=no HAVE_EWS=no HAVE_AWS=yes

Since this build method does not verify that all dependencies are met, make sure that you have already built and install the following components and they are available to gprbuild through ADA_PROJECT_PATH if needed:

Then build, run the unit tests and install by using:

make
make test
make install

To use the installed libraries, make sure your ADA_PROJECT_PATH contains the directory where you installed the libraries (configured by the PREFIX=<path> option in the setup phase). The installed GNAT projects are the same as those used when using Alire.

Samples

The samples can be built using:

make samples

or

cd samples
alr build

Documentation

The Ada Server Faces sources as well as a wiki documentation is provided on:

https://github.com/stcarrez/ada-asf/wiki