Package org.apache.tomcat.util.compat
Class Jre19Compat
- java.lang.Object
-
- org.apache.tomcat.util.compat.JreCompat
-
- org.apache.tomcat.util.compat.Jre12Compat
-
- org.apache.tomcat.util.compat.Jre19Compat
-
- Direct Known Subclasses:
Jre20Compat
public class Jre19Compat extends Jre12Compat
-
-
Field Summary
-
Fields inherited from class org.apache.tomcat.util.compat.JreCompat
canonCachesDisabled, canonCachesDisabledLock, USE_CANON_CACHES_CMD_ARG, useCanonCachesField, useCanonCachesFieldLock
-
-
Constructor Summary
Constructors Constructor Description Jre19Compat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetExecutor(java.lang.Thread thread)Obtains the executor, if any, used to create the provided thread.java.net.SocketAddressgetUnixDomainSocketAddress(java.lang.String path)Return Unix domain socket address for given path.java.nio.channels.ServerSocketChannelopenUnixDomainServerSocketChannel()Create server socket channel using the Unix domain socket ProtocolFamily.java.nio.channels.SocketChannelopenUnixDomainSocketChannel()Create socket channel using the Unix domain socket ProtocolFamily.-
Methods inherited from class org.apache.tomcat.util.compat.Jre12Compat
ensureUseCanonCachesFieldIsPopulated, isCanonCachesDisabled
-
Methods inherited from class org.apache.tomcat.util.compat.JreCompat
callAs, createVirtualThreadBuilder, disableCanonCaches, getInstance, isGraalAvailable, isJre12Available, isJre16Available, isJre19Available, isJre20Available, isJre21Available, isJre22Available, setNamedGroupsMethod, threadBuilderStart
-
-
-
-
Method Detail
-
getExecutor
public java.lang.Object getExecutor(java.lang.Thread thread) throws java.lang.NoSuchFieldException, java.lang.SecurityException, java.lang.IllegalArgumentException, java.lang.IllegalAccessExceptionDescription copied from class:JreCompatObtains the executor, if any, used to create the provided thread.- Overrides:
getExecutorin classJreCompat- Parameters:
thread- The thread to examine- Returns:
- The executor, if any, that created the provided thread
- Throws:
java.lang.NoSuchFieldException- If a field used via reflection to obtain the executor cannot be foundjava.lang.SecurityException- If a security exception occurs while trying to identify the executorjava.lang.IllegalArgumentException- If the instance object does not match the class of the field when obtaining a field value via reflectionjava.lang.IllegalAccessException- If a field is not accessible due to access restrictions
-
getUnixDomainSocketAddress
public java.net.SocketAddress getUnixDomainSocketAddress(java.lang.String path)
Description copied from class:JreCompatReturn Unix domain socket address for given path.- Overrides:
getUnixDomainSocketAddressin classJreCompat- Parameters:
path- The path- Returns:
- the socket address
-
openUnixDomainServerSocketChannel
public java.nio.channels.ServerSocketChannel openUnixDomainServerSocketChannel()
Description copied from class:JreCompatCreate server socket channel using the Unix domain socket ProtocolFamily.- Overrides:
openUnixDomainServerSocketChannelin classJreCompat- Returns:
- the server socket channel
-
openUnixDomainSocketChannel
public java.nio.channels.SocketChannel openUnixDomainSocketChannel()
Description copied from class:JreCompatCreate socket channel using the Unix domain socket ProtocolFamily.- Overrides:
openUnixDomainSocketChannelin classJreCompat- Returns:
- the socket channel
-
-