org.cafesip.sipexchange.inservice.shared
Class DomainTriggerParamParser

java.lang.Object
  extended by org.cafesip.sipexchange.inservice.shared.DomainTriggerParamParser

public class DomainTriggerParamParser
extends java.lang.Object

This is an utility class that is used by the SipExchange server and may also be used by the SCPs to parse the domain trigger param of the form

pattern=some-regular-expression¶m=some-param


Method Summary
 java.lang.String getParam()
          Getter method for the param.
 java.lang.String getPattern()
          Getter method for the pattern.
static DomainTriggerParamParser parse(java.lang.String p)
          This static method is used to parse the domain trigger param.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static DomainTriggerParamParser parse(java.lang.String p)
This static method is used to parse the domain trigger param.

Parameters:
p - the domain trigger param.
Returns:
a DomainTriggerParamParser object if the parsing was successful, a null of the param does not have the right format. The getter methods of the returned class can be used to retrieve the pattern and the param.

getPattern

public java.lang.String getPattern()
Getter method for the pattern.

Returns:
the pattern part of the param.

getParam

public java.lang.String getParam()
Getter method for the param.

Returns:
the param part of the param string.


http://www.cafesip.org