com.pkrete.jsip2.variables
Class SecurityMarkerFactory

java.lang.Object
  extended by com.pkrete.jsip2.variables.SecurityMarkerFactory

public class SecurityMarkerFactory
extends Object

This class generates SecurityMarker objects based on the security marker code. This class implements the Singleton design pattern, which means that only one instance is created at run time.

Author:
Petteri Kivimäki

Method Summary
static SecurityMarkerFactory getInstance()
          Returns a reference to the singleton object.
 SecurityMarker getSecurityMarker(String code)
          Returns the security marker that matches the given code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SecurityMarkerFactory getInstance()
Returns a reference to the singleton object. The object is created when this method is called for the first time.

Returns:
reference to the singleton object

getSecurityMarker

public SecurityMarker getSecurityMarker(String code)
                                 throws InvalidSIP2ResponseValueException
Returns the security marker that matches the given code.

Parameters:
code - security marker code
Returns:
security marker that matches the given code
Throws:
InvalidSIP2ResponseValueException


Copyright © 2012-2014. All Rights Reserved.