Package org.jboss.netty.handler.ssl
Class OpenSsl
- java.lang.Object
-
- org.jboss.netty.handler.ssl.OpenSsl
-
public final class OpenSsl extends java.lang.ObjectTells ifnetty-tcnativeand its OpenSSL support are available.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.StringIGNORABLE_ERROR_PREFIXprivate static InternalLoggerloggerprivate static java.lang.ThrowableUNAVAILABILITY_CAUSE
-
Constructor Summary
Constructors Modifier Constructor Description privateOpenSsl()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidensureAvailability()Ensure thatnetty-tcnativeand its OpenSSL support are available.static booleanisAvailable()Returnstrueif and only ifnetty-tcnativeand its OpenSSL support are available.static java.lang.ThrowableunavailabilityCause()Returns the cause of unavailability ofnetty-tcnativeand its OpenSSL support.
-
-
-
Field Detail
-
logger
private static final InternalLogger logger
-
UNAVAILABILITY_CAUSE
private static final java.lang.Throwable UNAVAILABILITY_CAUSE
-
IGNORABLE_ERROR_PREFIX
static final java.lang.String IGNORABLE_ERROR_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
isAvailable
public static boolean isAvailable()
Returnstrueif and only ifnetty-tcnativeand its OpenSSL support are available.
-
ensureAvailability
public static void ensureAvailability()
Ensure thatnetty-tcnativeand its OpenSSL support are available.- Throws:
java.lang.UnsatisfiedLinkError- if unavailable
-
unavailabilityCause
public static java.lang.Throwable unavailabilityCause()
Returns the cause of unavailability ofnetty-tcnativeand its OpenSSL support.- Returns:
- the cause if unavailable.
nullif available.
-
-