Java Express

screenshot of Java Express
express

HTTP Framework based on expressjs, no dependencies, simple usage. Can be used to quickly spin up an API or serve local files.

Overview

This project is a proof-of-concept showcasing a functional-oriented approach in Java, inspired by popular libraries like ExpressJS. It provides features for handling HTTP requests, routing, cookies, form data, and middleware functionalities.

Features

  • Routing - Dynamically attach request handlers to instance methods using DynExpress annotation.
  • Direct Integration - Add routes and middlewares directly to the Express object for handling requests.
  • Router Support - Use ExpressRouter to create routes separately and add them later to the Express object.
  • URL Parameters - Create dynamic URLs with variable parts using the : operator.
  • Query Parameters - Access query parameters in requests with req.getQuery(NAME).
  • Cookies - Manage cookies with req.getCookie(NAME) and res.setCookie(NAME, VALUE).
  • Form Data - Retrieve form data values with req.getFormQuery(NAME).
  • HTTP Classes - Utilize classes like Express and Response Object for HTTP server functions.

Summary

This Java project, inspired by functional programming principles and libraries like ExpressJS, offers a lightweight framework for handling HTTP requests, routing, cookies, form data, and middleware tasks. While no longer actively maintained, it serves as a testament to alternative approaches in Java development outside traditional frameworks and libraries.

express
Express

Express.js is a simple Node.js framework for single, multi-page, and hybrid web applications.