|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The MMSListener interface defines the methods required for processing
incoming multimedia-messages, MMS notifications and read- and delivery
reports. A MMSListener implementation can be registered with a MMSService using
the MMSService.setListener(MMSListener) method.
| Method Summary | |
MMSStatus |
handleDeliveryReport(MMSService service,
MMSDeliveryReport report)
Process an incomming Delivery Report. |
MMSStatus |
handleIncommingMessage(MMSService service,
MMSMessage message)
Process an incomming multimedia message. |
void |
handleNotification(MMSService service,
MMSNotification notification)
Process an incoming MMS notification. |
MMSStatus |
handleReadReport(MMSService service,
MMSReadReport report)
Process an incomming Read Report. |
| Method Detail |
public MMSStatus handleIncommingMessage(MMSService service,
MMSMessage message)
MMSStatus.SUCCESS. If the message cannot
be processed or should be rejected, return one of the other MMSStatus constants.
If the implementation returns null or throws a runtime exception, this is
treated like returning MMSStatus.CLIENT_ERROR.
service - The calling service.message - The incoming message to process
public MMSStatus handleReadReport(MMSService service,
MMSReadReport report)
MMSStatus.SUCCESS. If the report cannot
be processed or should be rejected, return one of the other MMSStatus constants.
If the implementation returns null or throws a runtime exception, this is
treated like returning MMSStatus.CLIENT_ERROR.
service - The calling service.report - The incoming Read Report.
public MMSStatus handleDeliveryReport(MMSService service,
MMSDeliveryReport report)
MMSStatus.SUCCESS. If the report cannot
be processed or should be rejected, return one of the other MMSStatus constants.
If the implementation returns null or throws a runtime exception, this is
treated like returning MMSStatus.CLIENT_ERROR.
service - The calling service.report - The incoming Delivery Report
public void handleNotification(MMSService service,
MMSNotification notification)
MMSService.fetch(MMSNotification).
service - The calling service.notification - the MMS notification.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||