javax.microedition.content |
Content Handler API public classes and interfaces.
@since CHAPI 1.0
|
Java Source File Name | Type | Comment |
ActionNameMap.java | Class | An ActionNameMap provides a mapping between
actions and corresponding action names.
The action name SHOULD be used by an application when the action
is presented to a user.
The action names in each map apply to a single
ActionNameMap.getLocale locale .
The application should get the appropriate
ActionNameMap based on the desired locale
from the method
ContentHandler.getActionNameMap(String locale)ContentHandler.getActionNameMap . |
ContentHandler.java | Interface | A ContentHandler provides the details of a
content handler registration.
Each ContentHandler contains the ID, content types, suffixes,
actions, and action names. |
ContentHandlerException.java | Class | A ContentHandlerException is thrown to report errors
specific to registration and invocation of content handlers. |
ContentHandlerServer.java | Interface | ContentHandlerServer provides methods
to get new Invocation requests, to finish the processing
of requests and to get the access control information.
This server interface extends
ContentHandler to make available the registration information for types,
suffixes, actions, ID, etc. |
ContentHandlerServerImpl.java | Class | The internal structure of a registered content handler. |
Invocation.java | Class | An Invocation contains the parameters that
are passed from an invoking application to a content handler and
the results that are returned to the application.
The parameters are the type, URL, action,
content handler ID, and responseRequired.
The string and data arguments can be set using
Invocation.setArgs setArgs and
Invocation.setData setData methods.
All of the parameters are provided to the content handler and
are returned with the handlers response, if any.
Invocation instances are not thread safe, the application
must handle any synchronization necessary. |
Registry.java | Class | The Registry provides method to invoke,
register,
unregister, and query information about content handlers.
An application registers, for each content handler,
zero or more content types, suffixes, and actions.
Access to the registry is via the
Registry.getRegistry getRegistry method. |
RequestListener.java | Interface | A RequestListener interface to be notified when an
Invocation request is available. |
ResponseListener.java | Interface | A ResponseListener interface to be notified when an
Invocation response is available. |