ch.aplu.gidlet
Class Gidlet.MMSReader

java.lang.Object
  extended by java.lang.Thread
      extended by ch.aplu.gidlet.Gidlet.MMSReader
All Implemented Interfaces:
java.lang.Runnable, javax.wireless.messaging.MessageListener
Enclosing class:
Gidlet

public class Gidlet.MMSReader
extends java.lang.Thread
implements javax.wireless.messaging.MessageListener

Class that creates a MMS server thread based on the Wireless Messaging API (WMA).


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Gidlet.MMSReader(java.lang.String appId)
          Creates a server thread based on the Wireless Messaging API (WMA) that looks for incoming MMS.
 
Method Summary
 void notifyIncomingMessage(javax.wireless.messaging.MessageConnection mc)
          For internal use only.
 void run()
          For internal use only.
 void stop()
          Stops the MMSReader thread.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Gidlet.MMSReader

public Gidlet.MMSReader(java.lang.String appId)
Creates a server thread based on the Wireless Messaging API (WMA) that looks for incoming MMS. The callback method notifyIncomingMMS() is triggered at every received MMS. You must specify an application identifier (appId) that corresponds to appId of the sending MIDlet (MMS without an appId are captured by the default MMS application and cannot be intercepted by a MIDlet). To stop the thread, call stop().

See Also:
Gidlet.notifyIncomingSMS(javax.wireless.messaging.TextMessage)
Method Detail

notifyIncomingMessage

public void notifyIncomingMessage(javax.wireless.messaging.MessageConnection mc)
For internal use only.

Specified by:
notifyIncomingMessage in interface javax.wireless.messaging.MessageListener

stop

public void stop()
Stops the MMSReader thread.

Overrides:
stop in class java.lang.Thread

run

public void run()
For internal use only.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread