[AAA-233] Validate web-api constructs Created: 19/Sep/22  Updated: 02/Nov/22  Resolved: 02/Nov/22

Status: Resolved
Project: aaa
Component/s: General
Affects Version/s: None
Fix Version/s: 0.17.0

Type: Improvement Priority: High
Reporter: Robert Varga Assignee: Oleksandr Zharov
Resolution: Done Votes: 0
Labels: pt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by AAA-234 Make WebContext builder enforce prope... Resolved
Relates
relates to AAA-232 WebInitializer failure with web-jetty... Resolved

 Description   

FilterDetails, ServletDetails and other interfaces have sorely under-documented attributes, like urlPatterns. Their semantics are related to the servlet spec, but that connection is not explicitly stated and, worse, validity of attribute values is not checked at all.

Thoroughly document each attribute, including links to their semantics and allowed value formats, as most of them are plain Strings.

Also make sure values are checked during build-time – either by turning interfaces into abstract classes with a Value.Check annotation, or by ditching immutables.org completely.


Generated at Wed Feb 07 19:08:59 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.