public class RequestParamHandler
extends Object
Analyzes an HttpServletRequest to check for the presence
of an ?output=n3 or ?output=rdfxml request parameter in
the URI. If present, returns a modified HttpServletRequest
that has the appropriate MIME type in the Accept: header.
This request can then be fed into the rest of our content
negotiation based tooling.
TODO: The list of shortname=>mimetype mappings should live
in ContentTypeNegotiator, which should have new methods
getMatchWithOverride() and getOverrideName(), and this
class here should just have static methods getParamFromURI,
removeParamFromURI, addParamToURI. The whole WrappedRequest
thing is smelly.
- Author:
- Richard Cyganiak (richard@cyganiak.de)