|
||||||||||
| 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.ProviderEndpoint
org.apache.servicemix.smpp.SmppProviderEndpoint
public class SmppProviderEndpoint
A provider component receives XML message from the NMR and converts into SMPP packet and sends it to SMS.
| Field Summary |
|---|
| Fields inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
|---|
definition, description, endpoint, interfaceName, service, serviceUnit |
| Constructor Summary | |
|---|---|
SmppProviderEndpoint()
|
|
| Method Summary | |
|---|---|
int |
getEnquireLinkTimer()
|
java.lang.String |
getHost()
|
SmppMarshalerSupport |
getMarshaler()
|
java.lang.String |
getPassword()
|
int |
getPort()
|
java.lang.String |
getSystemId()
|
java.lang.String |
getSystemType()
|
int |
getTransactionTimer()
|
protected void |
processInOnly(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage inMsg)
|
protected void |
processInOut(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage in,
javax.jbi.messaging.NormalizedMessage out)
|
void |
setEnquireLinkTimer(int enquireLinkTimer)
This attribute specifies the enquire link timer defining the resend 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)
|
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 |
setSystemType(java.lang.String systemType)
This attribute specifies the system type that will be used for connecting to the server. |
void |
setTransactionTimer(int transactionTimer)
This attribute specifies the transaction timer defining the maximum lifetime of a message. |
void |
start()
|
void |
stop()
|
void |
validate()
|
| Methods inherited from class org.apache.servicemix.common.endpoints.ProviderEndpoint |
|---|
activate, deactivate, getRole, process |
| 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 SmppProviderEndpoint()
| 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 AbstractEndpointjavax.jbi.management.DeploymentException
protected void processInOnly(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage inMsg)
throws java.lang.Exception
processInOnly in class ProviderEndpointjava.lang.Exception
protected void processInOut(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage in,
javax.jbi.messaging.NormalizedMessage out)
throws java.lang.Exception
processInOut in class ProviderEndpointjava.lang.Exceptionpublic java.lang.String getHost()
public void setHost(java.lang.String host)
host - a String value representing the host namepublic int getPort()
public void setPort(int port)
public 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 java.lang.String getSystemType()
public void setSystemType(java.lang.String systemType)
systemType - public 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 resend 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 maximum
lifetime of a message.
transactionTimer - a int value representing the
transaction timer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||