Class XSystem
java.lang.Object
org.openxava.util.XSystem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidDoes thatonServerreturns true.static StringTo use for XML encoding and for web requests and responses encoding.static booleanstatic booleanstatic booleanstatic booleanonClient()If we are in a client: java application, applet, servlet, jsp, etc.static booleanonServer()If we are in a EJB server.
-
Constructor Details
-
XSystem
public XSystem()
-
-
Method Details
-
_setOnServer
public static void _setOnServer()Does thatonServerreturns true. Must to be called from a static block in a common base class of EJB, or in all EJB is there aren't base class. -
onClient
public static boolean onClient()If we are in a client: java application, applet, servlet, jsp, etc. -
onServer
public static boolean onServer()If we are in a EJB server. -
_setLogLevelFromJavaLoggingLevelOfXavaPreferences
public static void _setLogLevelFromJavaLoggingLevelOfXavaPreferences() -
getEncoding
To use for XML encoding and for web requests and responses encoding. -
isJava9orBetter
public static boolean isJava9orBetter()- Since:
- 6.0
-
isJava17orBetter
public static boolean isJava17orBetter()- Since:
- 7.3
-
isJava21orBetter
public static boolean isJava21orBetter()- Since:
- 7.3.1
-