KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > communication > sms > mock > MockSmsService


1 /**
2  * Copyright 2001-2004 The eXo platform SARL All rights reserved.
3  * Please look at license.txt in info directory for more license detail.
4  **/

5 package org.exoplatform.services.communication.sms.mock;
6
7 import org.exoplatform.services.communication.sms.SmsService;
8 import org.exoplatform.services.communication.sms.common.*;
9 import org.exoplatform.services.communication.sms.impl.SmsServiceImpl;
10 import org.exoplatform.services.communication.sms.model.*;
11 import org.exoplatform.services.communication.sms.provider.Provider;
12 import org.exoplatform.services.communication.sms.provider.Sender;
13
14 /**
15  * @author Ove Ranheim (oranheim@yahoo.no)
16  * @since Jun 19, 2004 2:04:12 PM
17  */

18 public class MockSmsService extends SmsServiceImpl implements SmsService {
19
20     public MockSmsService() {
21         super();
22     }
23
24     public Messages createMessages() {
25         return super.createMessages();
26     }
27
28     public Message createMessage() {
29         return super.createMessage();
30     }
31
32     public Provider createProdatProvider(String JavaDoc username, String JavaDoc password) {
33         return super.createProdatProvider(username, password);
34     }
35
36     public Recipient createRecipient(String JavaDoc to) {
37         return super.createRecipient(to);
38     }
39
40     public Sender createSender(Provider provider) {
41         return new MockSender(provider);
42     }
43
44     public boolean sendSms(Provider provider, Messages messages) throws CommunicationError, RequestException, ResponseException, ConvertException {
45         return super.sendSms(provider, messages);
46     }
47
48 }
Popular Tags