Package org.jboss.netty.handler.ssl
Class OpenSsl
- java.lang.Object
-
- org.jboss.netty.handler.ssl.OpenSsl
-
public final class OpenSsl extends java.lang.Object
Tells ifnetty-tcnative
and its OpenSSL support are available.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.String
IGNORABLE_ERROR_PREFIX
private static InternalLogger
logger
private static java.lang.Throwable
UNAVAILABILITY_CAUSE
-
Constructor Summary
Constructors Modifier Constructor Description private
OpenSsl()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
ensureAvailability()
Ensure thatnetty-tcnative
and its OpenSSL support are available.static boolean
isAvailable()
Returnstrue
if and only ifnetty-tcnative
and its OpenSSL support are available.static java.lang.Throwable
unavailabilityCause()
Returns the cause of unavailability ofnetty-tcnative
and 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()
Returnstrue
if and only ifnetty-tcnative
and its OpenSSL support are available.
-
ensureAvailability
public static void ensureAvailability()
Ensure thatnetty-tcnative
and its OpenSSL support are available.- Throws:
java.lang.UnsatisfiedLinkError
- if unavailable
-
unavailabilityCause
public static java.lang.Throwable unavailabilityCause()
Returns the cause of unavailability ofnetty-tcnative
and its OpenSSL support.- Returns:
- the cause if unavailable.
null
if available.
-
-