de.fuberlin.wiwiss.pubby.servlets
Class RequestParamHandler
java.lang.Object
de.fuberlin.wiwiss.pubby.servlets.RequestParamHandler
public class RequestParamHandler
- extends java.lang.Object
Analyzes an HttpServletRequest to check for the presence
of an ?output=n3 or =ttl or =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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestParamHandler
public RequestParamHandler(javax.servlet.http.HttpServletRequest request)
removeOutputRequestParam
public static java.lang.String removeOutputRequestParam(java.lang.String uri)
- Removes the "output=foobar" part of a URI if present.
isMatchingRequest
public boolean isMatchingRequest()
getModifiedRequest
public javax.servlet.http.HttpServletRequest getModifiedRequest()