oracle.cabo.servlet.event.mobile
Class DateEventUtils
java.lang.Object
|
+--oracle.cabo.servlet.event.mobile.DateEventUtils
- public class DateEventUtils
- extends java.lang.Object
Method Summary |
static java.util.Date |
convertStringToDate(java.util.Dictionary paramMap, LocaleContext localeContext)
Converts a human readable representation of a date into a java.util.Date object. |
static java.lang.String |
getCalendarForwardURL(java.util.Dictionary paramMap, java.lang.String uri, java.lang.String token, long value)
Returns an url which can be used with forwarding, for example by calling oracle.cabo.servlet.util.ForwardUtils.forward(url) |
static java.lang.String |
getCalendarRedirectURL(java.util.Dictionary paramMap, java.lang.String uri, java.lang.String token, long value)
Returns an url which can be used with redirection, for example by calling oracle.cabo.servlet.util.RedirectUtils.getRedirectPage(url) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getCalendarRedirectURL
public static java.lang.String getCalendarRedirectURL(java.util.Dictionary paramMap,
java.lang.String uri,
java.lang.String token,
long value)
- Returns an url which can be used with redirection, for example by calling oracle.cabo.servlet.util.RedirectUtils.getRedirectPage(url)
-
- Parameters:
paramMap
- the map of parameter keys to values
uri
- used as the base uri by the links in the calendar, usually this is the uri of the page with the dateField on it
token
- a token that will be returned to the server and could be used to retrieve state
value
- a number that could be used in the constructor java.util.Date(long date)
- Returns:
- redirect url to the calendar
getCalendarForwardURL
public static java.lang.String getCalendarForwardURL(java.util.Dictionary paramMap,
java.lang.String uri,
java.lang.String token,
long value)
- Returns an url which can be used with forwarding, for example by calling oracle.cabo.servlet.util.ForwardUtils.forward(url)
-
- Parameters:
paramMap
- the map of parameter keys to values
uri
- used as the base uri by the links in the calendar, usually this is the uri of the page with the dateField on it
token
- a token that will be returned to the server and could be used to retrieve state
value
- a number that could be used in the constructor java.util.Date(long date)
- Returns:
- forward url to the calendar
convertStringToDate
public static java.util.Date convertStringToDate(java.util.Dictionary paramMap,
LocaleContext localeContext)
- Converts a human readable representation of a date into a java.util.Date object.
-
- Parameters:
paramMap
- a map with parameter keys and values sent with the 'date' event
locale
- the locale to use
- Returns:
- a Date object.