protocol - The communications protocol. If omitted, and a hostname is not specified, then default local protocol, local:, is assumed. If the protocol is omitted and a hostname is specified then the default remote protocol, rmi: is assumed.
hostname - The hostname. If omitted, then localhost is assumed. If the protocol is also omitted, then default local protocol local: is also assumed. If the hostname is not omitted but the protocol is omitted, then the default remote protocol, rmi: is assumed.
port - The port for the communications protocol. Treatment of the port parameter is implementation (protocol) specific. It is unused by the default local protocol, local:. For the default remote protocol, rmi:, port indicates the port number of the rmiregistry on the target host and defaults to port 1099.
servername - The treatment of the Path, Query, and Fragment components of the HostIdentifier are implementation (protocol) dependent. These components are ignored by the default local protocol, local:. For the default remote protocol, rmi, the Path component is interpreted as the name of the RMI remote object. The Query component may contain an access mode specifier ?mode= specifying "r" or "rw" access (write access currently ignored). The Fragment part is ignored.
All HostIdentifier objects are represented as absolute, hierarchical URIs. The constructors accept relative URIs, but these will generally be transformed into an absolute URI specifying a default protocol. A HostIdentifier differs from a URI in that certain contractions and illicit syntactical constructions are allowed. The following are all valid HostIdentifier strings:
< null > - transformed into "//localhost"
localhost - transformed into "//localhost"
hostname - transformed into "//hostname"
hostname:port - transformed into "//hostname:port"
proto:hostname - transformed into "proto://hostname"
proto:hostname:port - transformed into "proto://hostname:port"
proto://hostname:port
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|