Multiple choice technology architecture

What does Language filter do?

  1. It changes the context path, request URI and request URL back to the ones before HTTP server rewrote the request.

  2. It rewrites the URLs in the format /nl/<application>?lang=<langCode> to /<langCode>/<application>.

  3. Only 2

  4. Both of the above

  5. None of the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

A Language filter typically intercepts incoming requests to manage localization. It restores the context path, request URI, and URL to their original states before HTTP server rewrites, and handles URL rewriting between path-based and query-parameter-based language indicators, performing both functions.