01: /**
02: * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
03: * Unpublished - rights reserved under the Copyright Laws of the United States.
04: * Copyright © 2003 Sun Microsystems, Inc. All rights reserved.
05: * Copyright © 2005 BEA Systems, Inc. All rights reserved.
06: *
07: * Use is subject to license terms.
08: *
09: * This distribution may include materials developed by third parties.
10: *
11: * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12: *
13: * Module Name : JSIP Specification
14: * File Name : Hop.java
15: * Author : Phelim O'Doherty
16: *
17: * HISTORY
18: * Version Date Author Comments
19: * 1.1 19/12/2002 Phelim O'Doherty Initial version
20: *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
21: */package javax.sip.address;
22:
23: /**
24: * The Hop interface defines a location a request can transit on the way to
25: * its destination, i.e. a route. It defines the host, port and transport of
26: * the location. This interface is used to identify locations in the
27: * {@link Router} interface.
28: *
29: * @see Router
30: *
31: * @author BEA Systems, NIST
32: * @version 1.2
33: *
34: */
35:
36: public interface Hop {
37:
38: /**
39: * Returns the host part of this Hop.
40: *
41: * @return the string value of the host.
42: */
43: public String getHost();
44:
45: /**
46: * Returns the port part of this Hop.
47: *
48: * @return the integer value of the port.
49: */
50: public int getPort();
51:
52: /**
53: * Returns the transport part of this Hop.
54: *
55: * @return the string value of the transport.
56: */
57: public String getTransport();
58:
59: /**
60: * This method returns the Hop as a string.
61: *
62: * @return the stringified version of the Hop
63: */
64: public String toString();
65:
66: }
|