Home | History | Annotate | Download | only in stack

Lines Matching refs:hop

53 public final class HopImpl extends Object implements javax.sip.address.Hop, Serializable {
69 * Create new hop given host, port and transport.
89 * Creates new Hop
90 * @param hop is a hop string in the form of host:port/Transport
93 HopImpl(String hop) throws IllegalArgumentException {
95 if (hop == null)
98 // System.out.println("hop = " + hop);
99 int brack = hop.indexOf(']');
100 int colon = hop.indexOf(':',brack);
101 int slash = hop.indexOf('/',colon);
104 this.host = hop.substring(0,colon);
107 portstr = hop.substring(colon+1,slash);
108 this.transport = hop.substring(slash+1);
110 portstr = hop.substring(colon+1);
120 this.host = hop.substring(0,slash);
121 this.transport = hop.substring(slash+1);
124 this.host = hop;
146 throw new IllegalArgumentException(hop);