Exemple #1
0
	@Override
	public boolean equals(Object o)
	{
		if (o == null || !(o instanceof URI))
			return false;
		URI uri = (URI) o;
		if (!_scheme.equals(uri.getScheme()))
			return false;
		
		// FIXME improve equals
		if (!toString().equals(uri.toString()))
			return false;
		
		return true;
			
	}
 public void testParams() throws Exception {
   URI uri = sipFactory.createURI("sip:127.0.0.1:5080");
   uri.setParameter("Key", "val");
   String s = uri.toString();
   assertEquals("sip:127.0.0.1:5080;Key=val", s);
 }