Package javax.servlet.sip

Examples of javax.servlet.sip.TelURL.removeParameter()


    TelURL orig = new TelURLImpl("tel:+3398648;user=phone");
    TelURL readOnly = new ReadOnlyTelURL((TelURL) orig.clone());
   
    assertEquals(orig, readOnly);
    try { readOnly.setParameter("foo", "bar"); fail();} catch (IllegalStateException e) {}
    try { readOnly.removeParameter("user");   fail();} catch (IllegalStateException e) {}
    assertEquals(orig, readOnly);
    assertEquals(readOnly, orig);
    assertEquals(orig.toString(), readOnly.toString());
    URI clone = (URI) readOnly.clone();
    clone.setParameter("a", "b");
View Full Code Here


        if (!telUrl.isGlobal()) {
            String globalNumber = resolver.normalize(telUrl.getPhoneNumber(), telUrl.getPhoneContext());

            if (globalNumber != null) {
                telUrl.setPhoneNumber(globalNumber);
                telUrl.removeParameter(TelURLImpl.PHONE_CONTEXT);
            }
        }

        if (uri.isSipURI()) {
            SipURI sipUri = (SipURI) uri.clone();
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.