org.apache.tomcat.util.compat
Class JreCompat
java.lang.Object
org.apache.tomcat.util.compat.JreCompat
public class JreCompat
- extends java.lang.Object
This is the base implementation class for JRE compatibility and provides an
implementation based on Java 5. Sub-classes may extend this class and provide
alternative implementations for later JRE versions
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JreCompat
public JreCompat()
getInstance
public static JreCompat getInstance()
isJre6Available
public static boolean isJre6Available()
isJre7Available
public static boolean isJre7Available()
forLanguageTag
public java.util.Locale forLanguageTag(java.lang.String languageTag)
isJre8Available
public static boolean isJre8Available()
setUseServerCipherSuitesOrder
public void setUseServerCipherSuitesOrder(javax.net.ssl.SSLServerSocket socket,
boolean useCipherSuitesOrder)
setUseServerCipherSuitesOrder
public void setUseServerCipherSuitesOrder(javax.net.ssl.SSLEngine engine,
boolean useCipherSuitesOrder)
isJre9Available
public static boolean isJre9Available()
isInstanceOfInaccessibleObjectException
public boolean isInstanceOfInaccessibleObjectException(java.lang.Exception e)
- Test if the provided exception is an instance of
java.lang.reflect.InaccessibleObjectException.
- Parameters:
e
- The exception to test
- Returns:
true
if the exception is an instance of
InaccessibleObjectException, otherwise false
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.