org.apache.tomcat.util.compat

## Class JreCompat

- java.lang.Object
- - org.apache.tomcat.util.compat.JreCompat

-     public class JreCompat
      extends Object

  This is the base implementation class for JRE compatibility and provides an implementation based on Java 6. Sub-classes may extend this class and provide alternative implementations for later JRE versions

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JreCompat()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Locale` | `forLanguageTag(String languageTag)`
    `static JreCompat` | `getInstance()`
    `boolean` | `isInstanceOfInaccessibleObjectException(Exception e)` Test if the provided exception is an instance of java.lang.reflect.InaccessibleObjectException.
    `static boolean` | `isJre7Available()`
    `static boolean` | `isJre8Available()`
    `static boolean` | `isJre9Available()`
    `void` | `setUseServerCipherSuitesOrder(SSLEngine engine, boolean useCipherSuitesOrder)`
    `void` | `setUseServerCipherSuitesOrder(SSLServerSocket socket, boolean useCipherSuitesOrder)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JreCompat

          public JreCompat()

  - ### Method Detail

    - #### getInstance

          public static JreCompat getInstance()

    - #### isJre7Available

          public static boolean isJre7Available()

    - #### forLanguageTag

          public Locale forLanguageTag(String languageTag)

    - #### isJre8Available

          public static boolean isJre8Available()

    - #### setUseServerCipherSuitesOrder

          public void setUseServerCipherSuitesOrder(SSLServerSocket socket,
                                           boolean useCipherSuitesOrder)

    - #### setUseServerCipherSuitesOrder

          public void setUseServerCipherSuitesOrder(SSLEngine engine,
                                           boolean useCipherSuitesOrder)

    - #### isJre9Available

          public static boolean isJre9Available()

    - #### isInstanceOfInaccessibleObjectException

          public boolean isInstanceOfInaccessibleObjectException(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-2016 Apache Software Foundation. All Rights Reserved.