org.activemath.webapp.view.tools
Class UrlTool

java.lang.Object
  extended by org.activemath.webapp.view.tools.UrlTool

public class UrlTool
extends Object

Helper bean available to all view templates as $url. Provides access to the URL for this request.

PropertyValue
$reqUrl URL of the request /ActiveMath/main/view.cmd?book=all_examples&page=0&authName=bla
$reqUri URI of the request /ActiveMath/main/view.cmd
$reqQuery Query string of request book=all_examples&page=0&authName=bla
$reqUrlBase Base path of the request http://localhost/ActiveMath
$reqUrlFull Full path of the request http://localhost/ActiveMath/main
$reqPath Request path, taking into account forwarded and included requests /main/view.cmd
$reqAction Request action view.cmd
$referrer Referring URL


Field Summary
protected static Category log
           
 
Constructor Summary
UrlTool(HttpServletRequest request, HttpServletResponse response)
           
 
Method Summary
 String encode(String url)
           
 String getActivemathHome()
           
 String getReferrer()
           
 String getReqAction()
           
 String getReqPath()
           
 String getReqQuery()
           
 String getReqUri()
           
 String getReqUrl()
           
 String getReqUrlBase()
           
 String getReqUrlFull()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static Category log
Constructor Detail

UrlTool

public UrlTool(HttpServletRequest request,
               HttpServletResponse response)
Method Detail

getReqUrl

public String getReqUrl()

getReqUrlBase

public String getReqUrlBase()

getReqUrlFull

public String getReqUrlFull()

getReqUri

public String getReqUri()

getReqQuery

public String getReqQuery()

getReqPath

public String getReqPath()

getReqAction

public String getReqAction()

getReferrer

public String getReferrer()

encode

public String encode(String url)

getActivemathHome

public String getActivemathHome()