Home | History | Annotate | Download | only in address

Lines Matching defs:address

29 package gov.nist.javax.sip.address;
31 import javax.sip.address.*;
37 * Address structure. Imbeds a URI and adds a display name.
48 implements javax.sip.address.Address {
71 /** address field
73 protected GenericURI address;
75 /** Match on the address only.
83 if (!(other instanceof Address))
92 return address.match(that.address);
95 && address.match(that.address);
100 /** Get the host port portion of the address spec.
104 if (!(address instanceof SipUri))
105 throw new RuntimeException("address is not a SipUri");
106 SipUri uri = (SipUri) address;
111 * is encapsulated in this address object.
113 *@return the port from the address.
117 if (!(address instanceof SipUri))
118 throw new RuntimeException("address is not a SipUri");
119 SipUri uri = (SipUri) address;
123 /** Get the user@host:port for the address field. This assumes
130 if (address instanceof SipUri) {
131 SipUri uri = (SipUri) address;
134 return address.toString();
137 /** Get the host name from the address.
142 if (!(address instanceof SipUri))
143 throw new RuntimeException("address is not a SipUri");
144 SipUri uri = (SipUri) address;
148 /** Remove a parameter from the address.
153 if (!(address instanceof SipUri))
154 throw new RuntimeException("address is not a SipUri");
155 SipUri uri = (SipUri) address;
160 * Encode the address as a string and return it.
161 * @return String canonical encoded version of this address.
178 if (address != null) {
181 address.encode(buffer);
194 * Get the address type;
202 * Set the address type. The address can be NAME_ADDR, ADDR_SPEC or
234 * Set the address field
236 * @param address SipUri to set
239 public void setAddess(javax.sip.address.URI address) {
240 this.address = (GenericURI) address;
248 return this.address.hashCode();
252 * Compare two address specs for equality.
254 * @param other Object to compare this this address
263 if (other instanceof Address) {
264 final Address o = (Address) other;
292 return address instanceof SipUri;
295 /** Returns the URI address of this Address. The type of URI can be
298 * @return address parmater of the Address object
301 return this.address;
304 /** This determines if this address is a wildcard address. That is
305 * <code>Address.getAddress.getUserInfo() == *;</code>
307 * @return true if this name address is a wildcard, false otherwise.
313 /** Sets the URI address of this Address. The URI can be either a
316 * @param address - the new URI address value of this NameAddress.
318 public void setURI(URI address) {
319 this.address = (GenericURI) address;
327 ((SipUri) this.address).setUser(user);
330 /** Mark this a wild card address type.
331 * Also set the SIP URI to a special wild card address.
335 this.address = new SipUri();
336 ((SipUri)this.address).setUser("*");
341 if (this.address != null)
342 retval.address = (GenericURI) this.address.clone();