Commons-like HTTP server utilities?

I am a big fan of the Apache shared libraries, as they tend to span many utilities that I usually have to write to myself. I recently started working on a server-side project, and I find many cases where classes by default overlook obvious functionality:

HttpServletRequest

  • Cookie getCookie(String name) method Cookie getCookie(String name) required.
  • An easy way is needed to get information about a request for a URL (besides calling getContextURL() and parsing it)
  • Something that will simplify basic and digest authentication will be enjoyable.

I suspect that I will find even more when I work on this project.

This is similar to the things that should be somewhere in the library. Is there such a library?

+4
source share
1 answer

People rarely write web applications on bare servlets these days. There are some great web frameworks that make a lot easier, including what you mentioned in your question.

I would recommend you take a look at Spring MVC .

+4
source

Source: https://habr.com/ru/post/1392983/


All Articles