|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.common.endpoints.AbstractEndpoint
org.apache.servicemix.common.endpoints.SimpleEndpoint
org.apache.servicemix.common.endpoints.ConsumerEndpoint
org.apache.servicemix.smpp.SmppConsumerEndpoint
public class SmppConsumerEndpoint
A polling component which bind with jSMPP and receive SMPP messages and sends the SMPPs into the JBI bus as messages.
| Field Summary |
|---|
| Fields inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
|---|
definition, description, endpoint, interfaceName, logger, service, serviceUnit |
| Constructor Summary | |
|---|---|
SmppConsumerEndpoint()
|
|
| Method Summary | |
|---|---|
int |
getEnquireLinkTimer()
|
java.lang.String |
getHost()
|
SmppMarshalerSupport |
getMarshaler()
|
java.lang.String |
getPassword()
|
int |
getPort()
|
java.lang.String |
getSystemId()
|
int |
getTransactionTimer()
|
void |
process(javax.jbi.messaging.MessageExchange exchange)
|
void |
setEnquireLinkTimer(int enquireLinkTimer)
This attribute specifies the enquire link timer defining the SMSC time interval. |
void |
setHost(java.lang.String host)
This attribute specifies the host name to use for connecting to the server. The default value is null |
void |
setMarshaler(SmppMarshalerSupport marshaler)
With this method you can specify a marshaler class which provides the logic for converting a sms message into a normalized message. |
void |
setPassword(java.lang.String password)
This attribute specifies the password to use for connecting to the server. The default value is null |
void |
setPort(int port)
This attribute specifies the port number to use for connecting to the server. The default value is 2775 |
void |
setSystemId(java.lang.String systemId)
This attribute specifies the system id to use for connecting to the server. The default value is null |
void |
setTransactionTimer(int transactionTimer)
This attribute specifies the transaction timer defining the SMSC timeout. |
void |
start()
|
void |
stop()
|
void |
validate()
|
| Methods inherited from class org.apache.servicemix.common.endpoints.ConsumerEndpoint |
|---|
activate, configureExchangeTarget, deactivate, getLocationURI, getRole, getTargetEndpoint, getTargetInterface, getTargetOperation, getTargetService, getTargetUri, setTargetEndpoint, setTargetInterface, setTargetOperation, setTargetService, setTargetUri |
| Methods inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint |
|---|
done, fail, getChannel, getContext, getExchangeFactory, send, sendSync |
| Methods inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
|---|
getDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SmppConsumerEndpoint()
| Method Detail |
|---|
public void start()
throws java.lang.Exception
start in interface Endpointstart in class SimpleEndpointjava.lang.Exception
public void stop()
throws java.lang.Exception
stop in interface Endpointstop in class SimpleEndpointjava.lang.Exception
public void validate()
throws javax.jbi.management.DeploymentException
validate in interface Endpointvalidate in class ConsumerEndpointjavax.jbi.management.DeploymentException
public void process(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.Exception
process in interface Endpointprocess in class AbstractEndpointjava.lang.Exceptionpublic int getPort()
public void setPort(int port)
port - a int value representing the port numberpublic java.lang.String getHost()
public void setHost(java.lang.String host)
host - a String value representing the host namepublic java.lang.String getSystemId()
public void setSystemId(java.lang.String systemId)
systemId - a String value representing the system idpublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password - a String value representing the passwordpublic SmppMarshalerSupport getMarshaler()
public void setMarshaler(SmppMarshalerSupport marshaler)
With this method you can specify a marshaler class which provides the
logic for converting a sms message into a normalized message. This class
has to implement the interface class SmppMarshaler. If you
don't specify a marshaler, the DefaultSmppMarshaler will be
used.
marshaler - a SmppMarshaler class representing the
marshalerpublic int getEnquireLinkTimer()
public void setEnquireLinkTimer(int enquireLinkTimer)
This attribute specifies the enquire link timer defining the SMSC time
interval.
enquireLinkTimer - a int value representing the enquire
link timerpublic int getTransactionTimer()
public void setTransactionTimer(int transactionTimer)
This attribute specifies the transaction timer defining the SMSC timeout.
transactionTimer - a int value representing the
transaction timer (timeout)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||