Package org.apache.tomcat.jni
Class Registry
java.lang.Object
org.apache.tomcat.jni.Registry
Deprecated.
The scope of the APR/Native Library will be reduced in Tomcat
10.1.x / Tomcat Native 2.x onwards to only include those
components required to provide OpenSSL integration with the NIO
and NIO2 connectors.
Windows Registry support
- Author:
- Mladen Turk
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
close
(long key) Deprecated.Close the specified Registry key.static long
Deprecated.Create or open a Registry Key.static int
Deprecated.Delete the Registry subkeystatic int
deleteValue
(long key, String name) Deprecated.Delete the Registry valuestatic String[]
enumKeys
(long key) Deprecated.Enumerate the Registry subkeysstatic String[]
enumValues
(long key) Deprecated.Enumerate the Registry valuesstatic int
Deprecated.Get the Registry key length.static int
Deprecated.Get the Registry key type.static String[]
Deprecated.Get the Registry value for REG_MULTI_SZstatic byte[]
Deprecated.Get the Registry value for REG_BINARYstatic int
Deprecated.Get the Registry value for REG_DWORDstatic long
Deprecated.Get the Registry value for REG_QWORD or REG_DWORDstatic String
Deprecated.Get the Registry value for REG_SZ or REG_EXPAND_SZstatic long
Deprecated.Opens the specified Registry Key.static int
Deprecated.Set the Registry value for REG_MULTI_SZstatic int
Deprecated.Set the Registry value for REG_BINARYstatic int
Deprecated.Set the Registry value for REG_EXPAND_SZstatic int
Deprecated.Set the Registry value for REG_DWORDstatic int
Deprecated.Set the Registry value for REG_QWORDstatic int
Deprecated.Set the Registry value for REG_SZ
-
Field Details
-
HKEY_CLASSES_ROOT
public static final int HKEY_CLASSES_ROOTDeprecated.- See Also:
-
HKEY_CURRENT_CONFIG
public static final int HKEY_CURRENT_CONFIGDeprecated.- See Also:
-
HKEY_CURRENT_USER
public static final int HKEY_CURRENT_USERDeprecated.- See Also:
-
HKEY_LOCAL_MACHINE
public static final int HKEY_LOCAL_MACHINEDeprecated.- See Also:
-
HKEY_USERS
public static final int HKEY_USERSDeprecated.- See Also:
-
KEY_ALL_ACCESS
public static final int KEY_ALL_ACCESSDeprecated.- See Also:
-
KEY_CREATE_LINK
public static final int KEY_CREATE_LINKDeprecated.- See Also:
-
KEY_CREATE_SUB_KEY
public static final int KEY_CREATE_SUB_KEYDeprecated.- See Also:
-
KEY_ENUMERATE_SUB_KEYS
public static final int KEY_ENUMERATE_SUB_KEYSDeprecated.- See Also:
-
KEY_EXECUTE
public static final int KEY_EXECUTEDeprecated.- See Also:
-
KEY_NOTIFY
public static final int KEY_NOTIFYDeprecated.- See Also:
-
KEY_QUERY_VALUE
public static final int KEY_QUERY_VALUEDeprecated.- See Also:
-
KEY_READ
public static final int KEY_READDeprecated.- See Also:
-
KEY_SET_VALUE
public static final int KEY_SET_VALUEDeprecated.- See Also:
-
KEY_WOW64_64KEY
public static final int KEY_WOW64_64KEYDeprecated.- See Also:
-
KEY_WOW64_32KEY
public static final int KEY_WOW64_32KEYDeprecated.- See Also:
-
KEY_WRITE
public static final int KEY_WRITEDeprecated.- See Also:
-
REG_BINARY
public static final int REG_BINARYDeprecated.- See Also:
-
REG_DWORD
public static final int REG_DWORDDeprecated.- See Also:
-
REG_EXPAND_SZ
public static final int REG_EXPAND_SZDeprecated.- See Also:
-
REG_MULTI_SZ
public static final int REG_MULTI_SZDeprecated.- See Also:
-
REG_QWORD
public static final int REG_QWORDDeprecated.- See Also:
-
REG_SZ
public static final int REG_SZDeprecated.- See Also:
-
-
Constructor Details
-
Registry
public Registry()Deprecated.
-
-
Method Details
-
create
Deprecated.Create or open a Registry Key.- Parameters:
name
- Registry Subkey to openroot
- Root key, one of HKEY_*sam
- Access mask that specifies the access rights for the key.pool
- Pool used for native memory allocation- Returns:
- Opened Registry key
- Throws:
Error
- An error occurred
-
open
Deprecated.Opens the specified Registry Key.- Parameters:
name
- Registry Subkey to openroot
- Root key, one of HKEY_*sam
- Access mask that specifies the access rights for the key.pool
- Pool used for native memory allocation- Returns:
- Opened Registry key
- Throws:
Error
- An error occurred
-
close
public static int close(long key) Deprecated.Close the specified Registry key.- Parameters:
key
- The Registry key descriptor to close.- Returns:
- the operation status
-
getType
Deprecated.Get the Registry key type.- Parameters:
key
- The Registry key descriptor to use.name
- The name of the value to query- Returns:
- Value type or negative error value
-
getValueI
Deprecated.Get the Registry value for REG_DWORD- Parameters:
key
- The Registry key descriptor to use.name
- The name of the value to query- Returns:
- Registry key value
- Throws:
Error
- An error occurred
-
getValueJ
Deprecated.Get the Registry value for REG_QWORD or REG_DWORD- Parameters:
key
- The Registry key descriptor to use.name
- The name of the value to query- Returns:
- Registry key value
- Throws:
Error
- An error occurred
-
getSize
Deprecated.Get the Registry key length.- Parameters:
key
- The Registry key descriptor to use.name
- The name of the value to query- Returns:
- Value size or negative error value
-
getValueS
Deprecated.Get the Registry value for REG_SZ or REG_EXPAND_SZ- Parameters:
key
- The Registry key descriptor to use.name
- The name of the value to query- Returns:
- Registry key value
- Throws:
Error
- An error occurred
-
getValueA
Deprecated.Get the Registry value for REG_MULTI_SZ- Parameters:
key
- The Registry key descriptor to use.name
- The name of the value to query- Returns:
- Registry key value
- Throws:
Error
- An error occurred
-
getValueB
Deprecated.Get the Registry value for REG_BINARY- Parameters:
key
- The Registry key descriptor to use.name
- The name of the value to query- Returns:
- Registry key value
- Throws:
Error
- An error occurred
-
setValueI
Deprecated.Set the Registry value for REG_DWORD- Parameters:
key
- The Registry key descriptor to use.name
- The name of the value to setval
- The the value to set- Returns:
- If the function succeeds, the return value is 0
-
setValueJ
Deprecated.Set the Registry value for REG_QWORD- Parameters:
key
- The Registry key descriptor to use.name
- The name of the value to setval
- The the value to set- Returns:
- If the function succeeds, the return value is 0
-
setValueS
Deprecated.Set the Registry value for REG_SZ- Parameters:
key
- The Registry key descriptor to use.name
- The name of the value to setval
- The the value to set- Returns:
- If the function succeeds, the return value is 0
-
setValueE
Deprecated.Set the Registry value for REG_EXPAND_SZ- Parameters:
key
- The Registry key descriptor to use.name
- The name of the value to setval
- The the value to set- Returns:
- If the function succeeds, the return value is 0
-
setValueA
Deprecated.Set the Registry value for REG_MULTI_SZ- Parameters:
key
- The Registry key descriptor to use.name
- The name of the value to setval
- The the value to set- Returns:
- If the function succeeds, the return value is 0
-
setValueB
Deprecated.Set the Registry value for REG_BINARY- Parameters:
key
- The Registry key descriptor to use.name
- The name of the value to setval
- The the value to set- Returns:
- If the function succeeds, the return value is 0
-
enumKeys
Deprecated.Enumerate the Registry subkeys- Parameters:
key
- The Registry key descriptor to use.- Returns:
- Array of all subkey names
- Throws:
Error
- An error occurred
-
enumValues
Deprecated.Enumerate the Registry values- Parameters:
key
- The Registry key descriptor to use.- Returns:
- Array of all value names
- Throws:
Error
- An error occurred
-
deleteValue
Deprecated.Delete the Registry value- Parameters:
key
- The Registry key descriptor to use.name
- The name of the value to delete- Returns:
- If the function succeeds, the return value is 0
-
deleteKey
Deprecated.Delete the Registry subkey- Parameters:
root
- Root key, one of HKEY_*name
- Subkey to deleteonlyIfEmpty
- If true will not delete a key if it contains any subkeys or values- Returns:
- If the function succeeds, the return value is 0
-