Class AssumeUtils
java.lang.Object
org.jboss.resteasy.utils.AssumeUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Checks if thesecurity.manager
system property has been set.static void
Checks to see if theXMLConstants.FEATURE_SECURE_PROCESSING
can be set tofalse
.
-
Constructor Details
-
AssumeUtils
public AssumeUtils()
-
-
Method Details
-
canDisableFeatureSecureProcessing
public static void canDisableFeatureSecureProcessing()Checks to see if theXMLConstants.FEATURE_SECURE_PROCESSING
can be set tofalse
. This is not allowed when the security manager is enabled. From the docs:While FSP can be turned on and off through factories, it is always on when a Java Security Manager is present and cannot be turned off.
-
assumeSecurityManagerDisabled
Checks if thesecurity.manager
system property has been set.- Parameters:
msg
- the message for the assumption
-