| java.lang.Object com.sun.midp.content.RegistryStore
RegistryStore | class RegistryStore (Code) | | Standalone Registry Storage manager.
All protected methods, which are all static, redirect their work
to alone instance allowed for given Java runtime (for MIDP
it is Isolate).
Teh standalone instance initializes resources in the private
constructor and then releases its in the native finalizer.
|
Method Summary | |
static ContentHandlerImpl[] | findConflicted(String testID) Tests ID value for registering handler accordingly with JSR claim:
Each content handler is uniquely identified by an ID. | static ContentHandlerImpl[] | findHandler(String callerId, int searchBy, String value) Searchs coontent handlers by searchable fields values. | static ContentHandlerImpl[] | forSuite(int suiteId) The special finder for exploring handlers registered by the given suite. | static String[] | getArrayField(String handlerId, int fieldId) Returns array field
Parameters: handlerId - ID for access check Parameters: fieldId - index of field. | static ContentHandlerImpl | getByURL(String callerId, String url, String action) Returns content handler suitable for URL.
Parameters: callerId - ID of calling application. Parameters: URL - content URL. Parameters: action - requested action. | static ContentHandlerImpl | getHandler(String callerId, String id, int searchMode) Creates and loads handler's data.
Parameters: handlerId - ID of content handler to be loaded. Parameters: searchMode - ID matching mode. | static ContentHandlerImpl | getHandler(int suiteId, String classname) The special finder for acquiring handler by its suite and class name.
Parameters: suiteId - explored suite Id Parameters: classname - requested class name. | static String[] | getValues(String callerId, int searchBy) Returns all stored in the Registry values for specified field.
Parameters: callerId - ID value to check access Parameters: searchBy - index of searchable field. | static boolean | launch(ContentHandlerImpl handler) Starts native content handler.
Parameters: handler - Content handler to be executed. | static boolean | register(ContentHandlerImpl contentHandler) Registers given content handler.
Parameters: contentHandler - content handler being registered. | static void | setSecurityToken(SecurityToken token) Sets the security token used for priveleged operations. | static boolean | unregister(String handlerId) Unregisters content handler specified by its ID.
Parameters: handlerId - ID of unregistered handler. |
FIELD_ACCESSES | final static int FIELD_ACCESSES(Code) | | Handler action map
|
FIELD_ACTIONS | final static int FIELD_ACTIONS(Code) | | by a handler
|
FIELD_ACTION_MAP | final static int FIELD_ACTION_MAP(Code) | | by a handler
|
FIELD_COUNT | final static int FIELD_COUNT(Code) | | Access list
|
FIELD_ID | final static int FIELD_ID(Code) | | Content Handler fields indexes.
Used with functions: @link findHandler(), @link getValues() and
getArrayField(). They should match according enums in jsr211_registry.h |
FIELD_LOCALES | final static int FIELD_LOCALES(Code) | | by a handler
|
FIELD_SUFFIXES | final static int FIELD_SUFFIXES(Code) | | Types supported by a handler
|
FIELD_TYPES | final static int FIELD_TYPES(Code) | | Handler ID
|
SEARCH_EXACT | final static int SEARCH_EXACT(Code) | | Search flags for @link getHandler() method.
|
SEARCH_PREFIX | final static int SEARCH_PREFIX(Code) | | Search by exact match with ID
|
findConflicted | static ContentHandlerImpl[] findConflicted(String testID)(Code) | | Tests ID value for registering handler accordingly with JSR claim:
Each content handler is uniquely identified by an ID. ...
The ID MUST NOT be equal to any other registered handler ID.
Every other ID MUST NOT be a prefix of this ID.
The ID MUST NOT be a prefix of any other registered ID.
Parameters: testID - tested value conflicted handlers array. |
findHandler | static ContentHandlerImpl[] findHandler(String callerId, int searchBy, String value)(Code) | | Searchs coontent handlers by searchable fields values. As specified in
JSR 211 API:
Only content handlers that this application is allowed to
access will be included. (in result).
Parameters: callerId - ID value to check access Parameters: searchBy - indicator of searchable field. Allowed: FIELD_TYPES, @link FIELD_SUFFIXES, @link FIELD_ACTIONS values. The special case for the testId implementation: FIELD_ID specified. Parameters: value - Searched value found handlers array. |
forSuite | static ContentHandlerImpl[] forSuite(int suiteId)(Code) | | The special finder for exploring handlers registered by the given suite.
Parameters: suiteId - explored suite Id found handlers array. |
getArrayField | static String[] getArrayField(String handlerId, int fieldId)(Code) | | Returns array field
Parameters: handlerId - ID for access check Parameters: fieldId - index of field. Allowed: FIELD_TYPES, @link FIELD_SUFFIXES, @link FIELD_ACTIONS FIELD_LOCALES, @link FIELD_ACTION_MAP, @link FIELD_ACCESSESvaliues. array of values |
getByURL | static ContentHandlerImpl getByURL(String callerId, String url, String action)(Code) | | Returns content handler suitable for URL.
Parameters: callerId - ID of calling application. Parameters: URL - content URL. Parameters: action - requested action. found handler if any or null. |
getHandler | static ContentHandlerImpl getHandler(String callerId, String id, int searchMode)(Code) | | Creates and loads handler's data.
Parameters: handlerId - ID of content handler to be loaded. Parameters: searchMode - ID matching mode. Used - @link SEARCH_EXACT
- @link SEARCH_PREFIX
loaded ContentHandlerImpl object ornull if given handler ID is not found in Registry database. |
getHandler | static ContentHandlerImpl getHandler(int suiteId, String classname)(Code) | | The special finder for acquiring handler by its suite and class name.
Parameters: suiteId - explored suite Id Parameters: classname - requested class name. found handler or null if none found. |
getValues | static String[] getValues(String callerId, int searchBy)(Code) | | Returns all stored in the Registry values for specified field.
Parameters: callerId - ID value to check access Parameters: searchBy - index of searchable field. Allowed: FIELD_TYPES, @link FIELD_SUFFIXES, @link FIELD_ACTIONS, FIELD_ID values. found values array. |
register | static boolean register(ContentHandlerImpl contentHandler)(Code) | | Registers given content handler.
Parameters: contentHandler - content handler being registered. true if success, false - otherwise. |
setSecurityToken | static void setSecurityToken(SecurityToken token)(Code) | | Sets the security token used for priveleged operations.
The token may only be set once.
Parameters: token - a Security token |
unregister | static boolean unregister(String handlerId)(Code) | | Unregisters content handler specified by its ID.
Parameters: handlerId - ID of unregistered handler. true if success, false - otherwise. |
|
|