org.mobicents.protocols.smpp.version
Class VersionFactory

java.lang.Object
  extended by org.mobicents.protocols.smpp.version.VersionFactory

public class VersionFactory
extends Object

Factory class for SMPP versions.

Version:
$Id: VersionFactory.java 452 2009-01-15 16:56:36Z orank $

Constructor Summary
VersionFactory()
           
 
Method Summary
static SMPPVersion getDefaultVersion()
          Get the default SMPP version implemented by this API.
static SMPPVersion getVersion(int id)
          Get the SMPP version for a particular version ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionFactory

public VersionFactory()
Method Detail

getDefaultVersion

public static SMPPVersion getDefaultVersion()
Get the default SMPP version implemented by this API. This APIs default is currently version 3.4.

Returns:
The default SMPP version.

getVersion

public static SMPPVersion getVersion(int id)
Get the SMPP version for a particular version ID.

Parameters:
id - The version ID to get the SMPP version for,
Returns:
The matching SMPP version.
Throws:
VersionException - If the version ID is not known by this factory.


Copyright © 2011 Mobicents. All Rights Reserved.