Examples of PPreferredService


Examples of gov.nist.javax.sip.header.ims.PPreferredService

    this.lexer.match(TokenTypes.P_PREFERRED_SERVICE);
    this.lexer.SPorHT();
    this.lexer.match(':');
    this.lexer.SPorHT();
   
    PPreferredService pps = new PPreferredService();
      String urn = this.lexer.getBuffer();
      if(urn.contains(ParameterNamesIms.SERVICE_ID)){
       
         if(urn.contains(ParameterNamesIms.SERVICE_ID_LABEL))
             {
                String serviceID = urn.split(ParameterNamesIms.SERVICE_ID_LABEL+".")[1];
               
                 if(serviceID.trim().equals(""))
            try {
              throw new InvalidArgumentException("URN should atleast have one sub-service");
            } catch (InvalidArgumentException e) {
             
              e.printStackTrace();
            }
            else
                pps.setSubserviceIdentifiers(serviceID);
             }
         else if(urn.contains(ParameterNamesIms.APPLICATION_ID_LABEL))
          {
           String appID = urn.split(ParameterNamesIms.APPLICATION_ID_LABEL)[1];
           if(appID.trim().equals(""))
          try {
            throw new InvalidArgumentException("URN should atleast have one sub-application");
          } catch (InvalidArgumentException e) {
            e.printStackTrace();
          }
          else
            pps.setApplicationIdentifiers(appID);
          }
         else
         {
           try {
        throw new InvalidArgumentException("URN is not well formed");
View Full Code Here

Examples of gov.nist.javax.sip.header.ims.PPreferredService

        this.lexer.match(TokenTypes.P_PREFERRED_SERVICE);
        this.lexer.SPorHT();
        this.lexer.match(':');
        this.lexer.SPorHT();

        PPreferredService pps = new PPreferredService();
        String urn = this.lexer.getBuffer();
        if(urn.contains(ParameterNamesIms.SERVICE_ID)){

           if(urn.contains(ParameterNamesIms.SERVICE_ID_LABEL))
                   {
                    String serviceID = urn.split(ParameterNamesIms.SERVICE_ID_LABEL+".")[1];

                     if(serviceID.trim().equals(""))
                        try {
                            throw new InvalidArgumentException("URN should atleast have one sub-service");
                        } catch (InvalidArgumentException e) {

                            e.printStackTrace();
                        }
                        else
                    pps.setSubserviceIdentifiers(serviceID);
                   }
           else if(urn.contains(ParameterNamesIms.APPLICATION_ID_LABEL))
              {
               String appID = urn.split(ParameterNamesIms.APPLICATION_ID_LABEL)[1];
               if(appID.trim().equals(""))
                    try {
                        throw new InvalidArgumentException("URN should atleast have one sub-application");
                    } catch (InvalidArgumentException e) {
                        e.printStackTrace();
                    }
                    else
                  pps.setApplicationIdentifiers(appID);
              }
           else
           {
               try {
                throw new InvalidArgumentException("URN is not well formed");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.