KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > communication > sms > adapter > prodat > ProdatAdapterImpl


1 /***************************************************************************
2  * Copyright 2001-2003 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.adapter.prodat;
6
7 import org.exoplatform.services.communication.sms.adapter.Adapter;
8 import org.exoplatform.services.communication.sms.provider.*;
9 import org.exoplatform.services.communication.sms.provider.prodat.ProdatRequestImpl;
10 import org.exoplatform.services.communication.sms.provider.prodat.ProdatResponseImpl;
11
12 /**
13  * @author: Ove Ranheim
14  * @email: oranheim@users.sourceforge.net
15  */

16 public class ProdatAdapterImpl implements Adapter {
17
18     private Provider _provider;
19     private SmsRequest _request;
20     private SmsResponse _response;
21
22     public ProdatAdapterImpl(Provider provider) {
23         _provider = provider;
24         _request = new ProdatRequestImpl(provider);
25         _response = new ProdatResponseImpl(provider);
26     }
27
28     public Provider getProvider() {
29         return _provider;
30     }
31
32     /*
33      * @see org.exoplatform.services.communication.sms.adapter.Adapter#getRequest()
34      */

35     public SmsRequest getRequest() {
36         return _request;
37     }
38
39     /*
40      * @see org.exoplatform.services.communication.sms.adapter.Adapter#getResponse()
41      */

42     public SmsResponse getResponse() {
43         return _response;
44     }
45
46 }
Popular Tags