org.activemath.webapp.view.tools
Class UrlTool
java.lang.Object
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.
| Property | Value |
$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 | |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static Category log
UrlTool
public UrlTool(HttpServletRequest request,
HttpServletResponse response)
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()