This document provides some simple examples to get you up and running quickly.
Specify a set of properties to be used in addition or instead of the
default properties defined in orcus-sms.properties
and
pass them to the createService()
method of the
SmsServiceFactory
.
The SmsServiceFactory
implementation that will be used
is determined by the net.sf.orcus.sms.SmsServiceFactory
property. The default factory is an AspSmsServiceFactory
and will thus return an AspSmsService
implementation.
// properties specific for aspsms service Properties props = new Properties(); props.put(AspSmsService.USERKEY_PROPERTY, "XTZ789"); props.put(AspSmsService.PASSWORD_PROPERTY, "myaspsmspw"); SmsService service = SmsServiceFactory.getFactory().createService(props);