applicationLogic.utility
Class PageMapping
java.lang.Object
applicationLogic.utility.PageMapping
public class PageMapping
- extends java.lang.Object
Functionality to URL mapping. Each constant in this class is named
according to functionality and the value of the constant is the URL
that performs the functionality. These constants should be synchronized
with PROJECT_ROOT/web/WEB-INF/web.xml in this project.
- Author:
- 02leungi
Method Summary |
static java.lang.String |
removeBaseURL(java.lang.String url)
Remove the base of the URL. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BASEURL
public static final java.lang.String BASEURL
- See Also:
- Constant Field Values
PROJECT_ROOT
public static final java.lang.String PROJECT_ROOT
- See Also:
- Constant Field Values
LOGIN
public static final java.lang.String LOGIN
- See Also:
- Constant Field Values
LOGOUT
public static final java.lang.String LOGOUT
- See Also:
- Constant Field Values
PATIENT_INFO
public static final java.lang.String PATIENT_INFO
- See Also:
- Constant Field Values
PHYSICIAN_INFO
public static final java.lang.String PHYSICIAN_INFO
- See Also:
- Constant Field Values
PROCEDURE_INFO
public static final java.lang.String PROCEDURE_INFO
- See Also:
- Constant Field Values
NEWPATIENT
public static final java.lang.String NEWPATIENT
- See Also:
- Constant Field Values
PageMapping
public PageMapping()
removeBaseURL
public static java.lang.String removeBaseURL(java.lang.String url)
- Remove the base of the URL. For example, calling this method on
http://www.utsc.utoronto.ca:80/~abcd/xyz.html returns /~abcd/xyz.html.
- Parameters:
url
- URL, as a String.
- Returns:
- 'url' without the base if URL is valid. Null, otherwise.