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 SummaryFieldsModifier and TypeFieldDescriptionstatic final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic intclose(long key) Deprecated.Close the specified Registry key.static longDeprecated.Create or open a Registry Key.static intDeprecated.Delete the Registry subkeystatic intdeleteValue(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 intDeprecated.Get the Registry key length.static intDeprecated.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 intDeprecated.Get the Registry value for REG_DWORDstatic longDeprecated.Get the Registry value for REG_QWORD or REG_DWORDstatic StringDeprecated.Get the Registry value for REG_SZ or REG_EXPAND_SZstatic longDeprecated.Opens the specified Registry Key.static intDeprecated.Set the Registry value for REG_MULTI_SZstatic intDeprecated.Set the Registry value for REG_BINARYstatic intDeprecated.Set the Registry value for REG_EXPAND_SZstatic intDeprecated.Set the Registry value for REG_DWORDstatic intDeprecated.Set the Registry value for REG_QWORDstatic intDeprecated.Set the Registry value for REG_SZ
- 
Field Details- 
HKEY_CLASSES_ROOTpublic static final int HKEY_CLASSES_ROOTDeprecated.- See Also:
 
- 
HKEY_CURRENT_CONFIGpublic static final int HKEY_CURRENT_CONFIGDeprecated.- See Also:
 
- 
HKEY_CURRENT_USERpublic static final int HKEY_CURRENT_USERDeprecated.- See Also:
 
- 
HKEY_LOCAL_MACHINEpublic static final int HKEY_LOCAL_MACHINEDeprecated.- See Also:
 
- 
HKEY_USERSpublic static final int HKEY_USERSDeprecated.- See Also:
 
- 
KEY_ALL_ACCESSpublic static final int KEY_ALL_ACCESSDeprecated.- See Also:
 
- 
KEY_CREATE_LINKpublic static final int KEY_CREATE_LINKDeprecated.- See Also:
 
- 
KEY_CREATE_SUB_KEYpublic static final int KEY_CREATE_SUB_KEYDeprecated.- See Also:
 
- 
KEY_ENUMERATE_SUB_KEYSpublic static final int KEY_ENUMERATE_SUB_KEYSDeprecated.- See Also:
 
- 
KEY_EXECUTEpublic static final int KEY_EXECUTEDeprecated.- See Also:
 
- 
KEY_NOTIFYpublic static final int KEY_NOTIFYDeprecated.- See Also:
 
- 
KEY_QUERY_VALUEpublic static final int KEY_QUERY_VALUEDeprecated.- See Also:
 
- 
KEY_READpublic static final int KEY_READDeprecated.- See Also:
 
- 
KEY_SET_VALUEpublic static final int KEY_SET_VALUEDeprecated.- See Also:
 
- 
KEY_WOW64_64KEYpublic static final int KEY_WOW64_64KEYDeprecated.- See Also:
 
- 
KEY_WOW64_32KEYpublic static final int KEY_WOW64_32KEYDeprecated.- See Also:
 
- 
KEY_WRITEpublic static final int KEY_WRITEDeprecated.- See Also:
 
- 
REG_BINARYpublic static final int REG_BINARYDeprecated.- See Also:
 
- 
REG_DWORDpublic static final int REG_DWORDDeprecated.- See Also:
 
- 
REG_EXPAND_SZpublic static final int REG_EXPAND_SZDeprecated.- See Also:
 
- 
REG_MULTI_SZpublic static final int REG_MULTI_SZDeprecated.- See Also:
 
- 
REG_QWORDpublic static final int REG_QWORDDeprecated.- See Also:
 
- 
REG_SZpublic static final int REG_SZDeprecated.- See Also:
 
 
- 
- 
Constructor Details- 
Registrypublic Registry()Deprecated.
 
- 
- 
Method Details- 
createDeprecated.Create or open a Registry Key.- Parameters:
- name- Registry Subkey to open
- root- 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
 
- 
openDeprecated.Opens the specified Registry Key.- Parameters:
- name- Registry Subkey to open
- root- 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
 
- 
closepublic static int close(long key) Deprecated.Close the specified Registry key.- Parameters:
- key- The Registry key descriptor to close.
- Returns:
- the operation status
 
- 
getTypeDeprecated.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
 
- 
getValueIDeprecated.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
 
- 
getValueJDeprecated.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
 
- 
getSizeDeprecated.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
 
- 
getValueSDeprecated.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
 
- 
getValueADeprecated.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
 
- 
getValueBDeprecated.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
 
- 
setValueIDeprecated.Set the Registry value for REG_DWORD- Parameters:
- key- The Registry key descriptor to use.
- name- The name of the value to set
- val- The the value to set
- Returns:
- If the function succeeds, the return value is 0
 
- 
setValueJDeprecated.Set the Registry value for REG_QWORD- Parameters:
- key- The Registry key descriptor to use.
- name- The name of the value to set
- val- The the value to set
- Returns:
- If the function succeeds, the return value is 0
 
- 
setValueSDeprecated.Set the Registry value for REG_SZ- Parameters:
- key- The Registry key descriptor to use.
- name- The name of the value to set
- val- The the value to set
- Returns:
- If the function succeeds, the return value is 0
 
- 
setValueEDeprecated.Set the Registry value for REG_EXPAND_SZ- Parameters:
- key- The Registry key descriptor to use.
- name- The name of the value to set
- val- The the value to set
- Returns:
- If the function succeeds, the return value is 0
 
- 
setValueADeprecated.Set the Registry value for REG_MULTI_SZ- Parameters:
- key- The Registry key descriptor to use.
- name- The name of the value to set
- val- The the value to set
- Returns:
- If the function succeeds, the return value is 0
 
- 
setValueBDeprecated.Set the Registry value for REG_BINARY- Parameters:
- key- The Registry key descriptor to use.
- name- The name of the value to set
- val- The the value to set
- Returns:
- If the function succeeds, the return value is 0
 
- 
enumKeysDeprecated.Enumerate the Registry subkeys- Parameters:
- key- The Registry key descriptor to use.
- Returns:
- Array of all subkey names
- Throws:
- Error- An error occurred
 
- 
enumValuesDeprecated.Enumerate the Registry values- Parameters:
- key- The Registry key descriptor to use.
- Returns:
- Array of all value names
- Throws:
- Error- An error occurred
 
- 
deleteValueDeprecated.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
 
- 
deleteKeyDeprecated.Delete the Registry subkey- Parameters:
- root- Root key, one of HKEY_*
- name- Subkey to delete
- onlyIfEmpty- If true will not delete a key if it contains any subkeys or values
- Returns:
- If the function succeeds, the return value is 0
 
 
-