package lava.net.psyc; import java.net.InetAddress; import lava.net.common.UNL; /** * UNI:
* Description of the logical Name of an Object.
* Format is similar to URL.
* Scheme-Name is psyc://
* Objects might be Servers, Groups, Users, Services.
* Servers: resource=null
* Groups: resource begins with '@'
* Users: resource begins with '~'
* Services: resource begins with '$'
* Every Object only can have one UNI.
**/ public class UNI extends UNL { /** * **/ public UNI() { super(); } /** * **/ public UNI(String spec) { super(spec); } /** * **/ public UNI(UNI base, String spec) { super(base,spec); } /** * added by lynx **/ public UNI(UNL base, String spec) { super(base,spec); } /** * **/ public UNI(String scheme, String host, int port, String protocol, // String resource) { super(scheme,host,port,protocol,resource); } /** * **/ public UNI(String scheme, InetAddress host, int port, String protocol, // String resource) { super(scheme,host,port,protocol,resource); } /** * **/ public UNI(UNL unl) { super(unl.getScheme(),unl.getHostName(),unl.getPort(),// unl.getProtocol(),unl.getResource()); } }