Date: 2025-04-01
Present:
The initial scope is intended to be kept quite small. Basically standardise across the platform what’s now HttpServletRequest and HttpServletResponse.
Both Servlet and REST and essentially some APIs building on these. At least Security (as it obviously also needs to get headers and set cookies etc)
Maybe update parts of Faces to use it, IFF doable. And then Portlets could likely implement this too. So in a way its replacement for Faces’ ExternalContext & friends. Although first target is Servlet / Rest alignment and Security.
public class RequestData implements Serializable {
private static final long serialVersionUID = 1L;
private Cookie[] cookies;
private Map<String, List<String>> headers;
private Map<String, String[]> parameters;
private List<Locale> locales;
private String method;
private String requestURL;
private String queryString;
public Cookie[] getCookies() {
return cookies;
}
public Map<String, List<String>> getHeaders() {
return headers;
}
public List<Locale> getLocales() {
return locales;
}
public Map<String, String[]> getParameters() {
return parameters;
}
public String getMethod() {
return method;
}
public String getQueryString() {
return queryString;
}
public String getRequestURL() {
return requestURL;
}
}