org.apache.servicemix.smpp
Class SmppProviderEndpoint

java.lang.Object
  extended by org.apache.servicemix.common.endpoints.AbstractEndpoint
      extended by org.apache.servicemix.common.endpoints.SimpleEndpoint
          extended by org.apache.servicemix.common.endpoints.ProviderEndpoint
              extended by org.apache.servicemix.smpp.SmppProviderEndpoint
All Implemented Interfaces:
Endpoint, SmppEndpointType

public class SmppProviderEndpoint
extends ProviderEndpoint
implements SmppEndpointType

A provider component receives XML message from the NMR and converts into SMPP packet and sends it to SMS.

Author:
jbonofre, lhein

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

SmppProviderEndpoint

public SmppProviderEndpoint()
Method Detail

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface Endpoint
Overrides:
start in class SimpleEndpoint
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Specified by:
stop in interface Endpoint
Overrides:
stop in class SimpleEndpoint
Throws:
java.lang.Exception

validate

public void validate()
              throws javax.jbi.management.DeploymentException
Specified by:
validate in interface Endpoint
Overrides:
validate in class AbstractEndpoint
Throws:
javax.jbi.management.DeploymentException

processInOnly

protected void processInOnly(javax.jbi.messaging.MessageExchange exchange,
                             javax.jbi.messaging.NormalizedMessage inMsg)
                      throws java.lang.Exception
Overrides:
processInOnly in class ProviderEndpoint
Throws:
java.lang.Exception

processInOut

protected void processInOut(javax.jbi.messaging.MessageExchange exchange,
                            javax.jbi.messaging.NormalizedMessage in,
                            javax.jbi.messaging.NormalizedMessage out)
                     throws java.lang.Exception
Overrides:
processInOut in class ProviderEndpoint
Throws:
java.lang.Exception

getHost

public java.lang.String getHost()

setHost

public void setHost(java.lang.String host)

This attribute specifies the host name to use for connecting to the server.

   The default value is null

Parameters:
host - a String value representing the host name

getPort

public int getPort()

setPort

public void setPort(int port)

getSystemId

public java.lang.String getSystemId()

setSystemId

public void setSystemId(java.lang.String systemId)

This attribute specifies the system id to use for connecting to the server.

   The default value is null

Parameters:
systemId - a String value representing the system id

getPassword

public java.lang.String getPassword()

setPassword

public void setPassword(java.lang.String password)

This attribute specifies the password to use for connecting to the server.

   The default value is null

Parameters:
password - a String value representing the password

getSystemType

public java.lang.String getSystemType()

setSystemType

public void setSystemType(java.lang.String systemType)

This attribute specifies the system type that will be used for connecting to the server.

The default value is cp

Parameters:
systemType -

getMarshaler

public SmppMarshalerSupport getMarshaler()

setMarshaler

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.

Parameters:
marshaler - a SmppMarshaler class representing the marshaler

getEnquireLinkTimer

public int getEnquireLinkTimer()

setEnquireLinkTimer

public void setEnquireLinkTimer(int enquireLinkTimer)

This attribute specifies the enquire link timer defining the resend time interval.

   The default value is 50000 milliseconds

Parameters:
enquireLinkTimer - a int value representing the enquire link timer

getTransactionTimer

public int getTransactionTimer()

setTransactionTimer

public void setTransactionTimer(int transactionTimer)

This attribute specifies the transaction timer defining the maximum lifetime of a message.

   The default value is 100000 milliseconds

Parameters:
transactionTimer - a int value representing the transaction timer


Copyright © 2005-2012 FuseSource. All Rights Reserved.