Package javax.sip.address

Examples of javax.sip.address.AddressFactory.createURI()


    try
    {
      AddressFactory addressFactory = getAddressFactory();

      List<ViaHeader> viaHeaders = _sipPhone.getViaHeaders();
      URI requestUri = addressFactory.createURI(to);
      Address toAddr = addressFactory.createAddress(requestUri);

      Request request = getMessageFactory().createRequest(
          requestUri,
          method,
View Full Code Here


        // Non regression test for Issue 316 : createAddress can add spurious angle brackets
        try {
            AddressFactory addressFactory = SipFactory.getInstance().createAddressFactory();
            String uriString = "<sip:1004@172.16.0.99;user=phone>";           
            try {
                addressFactory.createURI(uriString);
                fail("uriString should throw a ParseException because the angle brackets are not valid");
            } catch (ParseException e) {}
            try {
                Address address = addressFactory.createAddress(uriString);
                assertEquals(uriString, address.toString());    
View Full Code Here

        // Non regression test for Issue 316 : createAddress can add spurious angle brackets
        try {
            AddressFactory addressFactory = SipFactory.getInstance().createAddressFactory();
            String uriString = "<sip:1004@172.16.0.99;user=phone>";           
            try {
                addressFactory.createURI(uriString);
                fail("uriString should throw a ParseException because the angle brackets are not valid");
            } catch (ParseException e) {}
            try {
                Address address = addressFactory.createAddress(uriString);
                assertEquals(uriString, address.toString());    
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.