public class JreCompat
extends java.lang.Object
Constructor and Description |
---|
JreCompat() |
Modifier and Type | Method and Description |
---|---|
static JreCompat |
getInstance() |
boolean |
isInstanceOfInaccessibleObjectException(java.lang.Exception e)
Test if the provided exception is an instance of
java.lang.reflect.InaccessibleObjectException.
|
static boolean |
isJre8Available() |
static boolean |
isJre9Available() |
void |
setUseServerCipherSuitesOrder(javax.net.ssl.SSLEngine engine,
boolean useCipherSuitesOrder) |
void |
setUseServerCipherSuitesOrder(javax.net.ssl.SSLServerSocket socket,
boolean useCipherSuitesOrder) |
public static JreCompat getInstance()
public static boolean isJre8Available()
public void setUseServerCipherSuitesOrder(javax.net.ssl.SSLServerSocket socket, boolean useCipherSuitesOrder)
public void setUseServerCipherSuitesOrder(javax.net.ssl.SSLEngine engine, boolean useCipherSuitesOrder)
public static boolean isJre9Available()
public boolean isInstanceOfInaccessibleObjectException(java.lang.Exception e)
e
- The exception to testtrue
if the exception is an instance of
InaccessibleObjectException, otherwise false
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.