KickJava   Java API By Example, From Geeks To Geeks.

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


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.ResponseException;
8 import org.exoplatform.services.communication.sms.provider.*;
9 import org.exoplatform.services.communication.sms.provider.prodat.ProdatMessengerImpl;
10
11 /**
12  * @author Ove Ranheim (oranheim@yahoo.no)
13  * @since Jun 17, 2004 8:09:31 PM
14  */

15 public class MockProdatMessenger extends ProdatMessengerImpl implements Messenger {
16
17     public MockProdatMessenger(Provider provider) {
18         super(provider);
19     }
20
21     public void service(SmsRequest request, SmsResponse response) throws ResponseException {
22         String JavaDoc ip = _provider.getOperator().getHost();
23         int port = Integer.parseInt(_provider.getOperator().getPort());
24         String JavaDoc payload = request.getPayload();
25         statusSending(request.getMessages());
26         response.setResult(MockResponse.RESPONSE);
27         response.translate();
28
29     }
30
31 }
32
33
Popular Tags