Package org.openxava.util
Class XSystem
- java.lang.Object
-
- org.openxava.util.XSystem
-
public class XSystem extends java.lang.Object
Global utilities about the system.- Author:
- Javier Paniza
-
-
Constructor Summary
Constructors Constructor Description XSystem()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
_setLogLevelFromJavaLoggingLevelOfXavaPreferences()
static void
_setOnServer()
Does thatonServer
returns true.static java.lang.String
getEncoding()
To use for XML encoding and for web requests and responses encoding.static boolean
isJava9orBetter()
static boolean
onClient()
If we are in a client: java application, applet, servlet, jsp, etc.static boolean
onServer()
If we are in a EJB server.
-
-
-
Method Detail
-
_setOnServer
public static void _setOnServer()
Does thatonServer
returns 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
public static java.lang.String getEncoding()
To use for XML encoding and for web requests and responses encoding.
-
isJava9orBetter
public static boolean isJava9orBetter()
- Since:
- 6.0
-
-