org.cafesip.gwtcomp.client.utils
Class ContextUtil
java.lang.Object
org.cafesip.gwtcomp.client.utils.ContextUtil
public class ContextUtil
- extends Object
An utility class for making GWT application context-independent.
- Author:
- Amit Chatterjee
|
Method Summary |
static String |
getContextURL()
Returns the application context of the current GWT application. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextUtil
public ContextUtil()
getContextURL
public static String getContextURL()
- Returns the application context of the current GWT application. You can
append the rest of the URL to the returned value to produce an URL that is
independent of the (servlet) context name. It is particularly important
when you are developing re-usable components.
- Returns:
- the context URL
Copyright © 2010 Cafesip.org. All Rights Reserved.