Package org.cipango.sip

Examples of org.cipango.sip.URIImpl.clone()


  @Test
  public void testURI() throws Exception
  {
    URI orig = new URIImpl("http://www.nexcom.fr;user=me");
    URI readOnly = new ReadOnlyURI((URI) 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);
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.