com.alveole.interfaces
Interface UrlManager

All Known Implementing Classes:
JspUrlManager, StaticFileUrlManager, Struts2UrlManager

public interface UrlManager

This interface may be implemented by some Actions and Views to get URL services that enable to call such action or view.

Author:
sylvain

Method Summary
 java.lang.String getContextRelativeFwdUrl()
          Gets context relative path to call this node.
 java.lang.String getContextRelativePath()
          Gets context relative path to call this node.
 

Method Detail

getContextRelativePath

java.lang.String getContextRelativePath()
Gets context relative path to call this node. Path should start with a '/'. This path is used for HTTP links, and any HTTP redirections.

Returns:
A context-relative path.

getContextRelativeFwdUrl

java.lang.String getContextRelativeFwdUrl()
Gets context relative path to call this node. This relative path is used for internal servlet redirections, not for HTTP redirections (used in servlet forward or include).

Returns:
A relative URL that can be used for forward requests in web-app context.