KickJava   Java API By Example, From Geeks To Geeks.

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


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.common.CommunicationError;
8 import org.exoplatform.services.communication.sms.common.ResponseException;
9 import org.exoplatform.services.communication.sms.model.Messages;
10 import org.exoplatform.services.communication.sms.provider.*;
11 import org.exoplatform.services.communication.sms.provider.SenderImpl;
12
13
14 /**
15  * @author Ove Ranheim (oranheim@yahoo.no)
16  * @since Jun 20, 2004 12:05:20 PM
17  */

18 public class MockSender extends SenderImpl implements Sender {
19
20     public MockSender(Provider provider) {
21         super(provider);
22     }
23
24     /*
25      * @see org.exoplatform.services.communication.sms.provider.Sender#send()
26      */

27     public Messages send() throws CommunicationError, ResponseException {
28         Messenger messenger = new MockProdatMessenger(_provider);
29         messenger.service(_request, _response);
30         return _response.getMessages();
31     }
32 }
33
Popular Tags