public class Utils
extends java.lang.Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
checkUpdateURI(java.lang.String updateURI,
java.lang.String info)
Checks the update URI.
|
static int |
get2DigitYearStart()
Returns the start year only for the format using "yy" pattern, change the parse result in the 100 years span after that year.
2DigitYearStart should not be negative.
|
static int |
getFirstDayOfWeek()
Returns the first day of the week, or -1 if no defined by the application.
|
static int |
getFirstDayOfWeek(Session sess)
Returns the first day of the week of the given session, or -1 if no defined by the application.
|
static void |
updateDebugJS(WebApp wapp,
boolean debug)
Update the status of debug-js.
|
public static void updateDebugJS(WebApp wapp, boolean debug)
Configuration.setDebugJS(boolean)
to change the loading of JavaScript files dynamically.public static final int getFirstDayOfWeek()
getFirstDayOfWeek(Sessions.getCurrent())
.public static final int getFirstDayOfWeek(Session sess)
Calendar.getFirstDayOfWeek()
.
Attributes.PREFERRED_FIRST_DAY_OF_WEEK
Attributes.PREFERRED_FIRST_DAY_OF_WEEK
Attributes.PREFERRED_FIRST_DAY_OF_WEEK
sess
- the session to look at. Ignored if null.public static final int get2DigitYearStart() throws java.lang.NumberFormatException
Default: 1929
Library property: Attributes.PREFERRED_2DIGITYEARSTART
java.lang.NumberFormatException
public static final java.lang.String checkUpdateURI(java.lang.String updateURI, java.lang.String info) throws jakarta.servlet.ServletException
updateURI
- the update URI to be checked.info
- the info to show if updateURI is incorrect.jakarta.servlet.ServletException
- if updateURI is incorrect.Copyright © 2005-2022 Potix Corporation. All Rights Reserved.