de.fuberlin.wiwiss.pubby.servlets
Class RequestParamHandler

java.lang.Object
  extended by 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.


Constructor Summary
RequestParamHandler(javax.servlet.http.HttpServletRequest request)
           
 
Method Summary
 javax.servlet.http.HttpServletRequest getModifiedRequest()
           
 boolean isMatchingRequest()
           
static java.lang.String removeOutputRequestParam(java.lang.String uri)
          Removes the "output=foobar" part of a URI if present.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestParamHandler

public RequestParamHandler(javax.servlet.http.HttpServletRequest request)
Method Detail

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()