org.webmacro.servlet
Class URLTool.URLToolImpl

java.lang.Object
  extended byorg.webmacro.servlet.URLTool.URLToolImpl
Enclosing class:
URLTool

public class URLTool.URLToolImpl
extends java.lang.Object


Constructor Summary
URLTool.URLToolImpl(WebContext context)
           
 
Method Summary
 java.lang.String encode(java.lang.String url)
           
 java.lang.String getCompleteRequestURL()
          Return the complete url, that was uses to access this page including path_info and query_string if present.
 java.lang.String getRequestURL()
          Get the url thas was used to access this page, as it is returned by HttpUtils.getRequestURL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLTool.URLToolImpl

public URLTool.URLToolImpl(WebContext context)
Method Detail

getRequestURL

public java.lang.String getRequestURL()
Get the url thas was used to access this page, as it is returned by HttpUtils.getRequestURL.

Returns:
URL used to access this page without query string

getCompleteRequestURL

public java.lang.String getCompleteRequestURL()
Return the complete url, that was uses to access this page including path_info and query_string if present.
This method uses HttpUtils.getRequestURL to create the url and appends query_string if not null

Returns:
URL used to access this page, including query string

encode

public java.lang.String encode(java.lang.String url)