1 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 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 ip = _provider.getOperator().getHost(); 23 int port = Integer.parseInt(_provider.getOperator().getPort()); 24 String payload = request.getPayload(); 25 statusSending(request.getMessages()); 26 response.setResult(MockResponse.RESPONSE); 27 response.translate(); 28 29 } 30 31 } 32 33 | Popular Tags |