|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The ExporterManager interface implementation which is the entry point to the ETA implementation.
ExporterManager receives the configuration interface (ExporterConfig) as an input and uses it to configure itself. This step is mandatory before "open" is invoked. ETA exposes the "send request" and "send response" services via the ExporterManager interface as well.
javax.microedition.configuration.ExporterConfig
Method Summary | |
void |
cancelRequest(byte sessionId,
long requestId)
Requests to cancel request according to its ID. |
void |
close()
Disconnects all existing connections, shuts down the listening socket Waits for all the threads to finish. |
TemplateConfig |
getTemplate(byte sessionId,
short templateId)
Returns a template configuration. |
void |
open()
Executes the exporter. |
void |
sendData(byte sessionId,
short templateId,
java.util.Hashtable data)
Sends a data message. |
long |
sendMessage(byte sessionId,
short templateId,
java.util.Hashtable data)
Sends a "message" message. |
long |
sendRequest(byte sessionId,
short templateId,
java.util.Hashtable data,
java.lang.Object param)
Sends a request message. |
void |
sendResponse(long requestId,
byte sessionId,
boolean success,
short templateId,
java.util.Hashtable data)
Sends a response message. |
void |
setConfiguration(ExporterConfig configuration)
Sets the exporter configuration. |
void |
setConnectionControllerFactory(ConnectionControllerFactory connectionControllerFactory)
The application sets connection controller The application supplies its own implementation for ConnectionControllerFactory interface as parameter to the function setConnectionControllerFactory. |
void |
setStateMachineListenerInFactory(StateMachineListenerInFactory listenerFactory)
The application sets listeners for incoming messages. |
void |
setStateMachineListenerOutFactory(StateMachineListenerOutFactory listenerFactory)
The application sets listeners for outgoing messages. |
void |
setTemplateNegotiatorFactory(TemplateNegotiatorFactory templateNegotiatorFactory)
The application sets template negotiator. |
Method Detail |
public void open() throws InvalidApplicationStateException, java.lang.SecurityException
InvalidApplicationStateException
java.lang.SecurityException
close()
public void close()
open()
public void cancelRequest(byte sessionId, long requestId)
sessionId
- the session idrequestId
- the request id
public void setConfiguration(ExporterConfig configuration) throws InvalidApplicationStateException
configuration
- the exporter configuration
InvalidApplicationStateException
InvalidApplicationStateException
,
ExporterConfig
,
open()
,
close()
public void sendData(byte sessionId, short templateId, java.util.Hashtable data)
sessionId
- the session idtemplateId
- the template iddata
- an Hashtable with all the attributes names as keys and their values
The type of the values is according to the data template.
public long sendRequest(byte sessionId, short templateId, java.util.Hashtable data, java.lang.Object param)
sessionId
- the session idtemplateId
- the template iddata
- an Hashtable with all the attributes names as keys and their values
The type of the values is according to the data template.param
- parameter that will be sent as a part of the notifyResponse
StateMachineListenerIn
,
StateMachineListenerOut
public long sendMessage(byte sessionId, short templateId, java.util.Hashtable data)
sessionId
- the session idtemplateId
- the template iddata
- an Hashtable with all the attributes names as keys and its values
The type of the values is according to the data template.
StateMachineListenerIn
,
StateMachineListenerOut
public void sendResponse(long requestId, byte sessionId, boolean success, short templateId, java.util.Hashtable data)
requestId
- the request idsessionId
- the session idsuccess
- true if the response denote successtemplateId
- the template iddata
- an Hashtable with all the attributes names as keys and its values
The type of the values is according to the data template.
public TemplateConfig getTemplate(byte sessionId, short templateId)
sessionId
- the session idtemplateId
- the template id
TemplateConfig
public void setStateMachineListenerInFactory(StateMachineListenerInFactory listenerFactory) throws InvalidApplicationStateException
InvalidApplicationStateException
- whenever exporter open and yet didn't closedStateMachineListenerIn
public void setStateMachineListenerOutFactory(StateMachineListenerOutFactory listenerFactory) throws InvalidApplicationStateException
InvalidApplicationStateException
- whenever exporter open and yet didn't closedStateMachineListenerOut
public void setTemplateNegotiatorFactory(TemplateNegotiatorFactory templateNegotiatorFactory) throws InvalidApplicationStateException
templateNegotiatorFactory
- the template negotiator factory
InvalidApplicationStateException
- whenever exporter open and yet didn't closedTemplateNegotiator
public void setConnectionControllerFactory(ConnectionControllerFactory connectionControllerFactory) throws InvalidApplicationStateException
connectionControllerFactory
- the onnection controller factory
InvalidApplicationStateException
- whenever exporter open and yet didn't closedConnectionController
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |