/* * Copyright (c) 1999, 2000, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package javax.naming; /** * This class represents the address of a communications end-point. * It consists of a type that describes the communication mechanism * and an address contents determined by an RefAddr subclass. *
* For example, an address type could be "BSD Printer Address", * which specifies that it is an address to be used with the BSD printing * protocol. Its contents could be the machine name identifying the * location of the printer server that understands this protocol. *
* A RefAddr is contained within a Reference. *
* RefAddr is an abstract class. Concrete implementations of it * determine its synchronization properties. * * @author Rosanna Lee * @author Scott Seligman * * @see Reference * @see LinkRef * @see StringRefAddr * @see BinaryRefAddr * @since 1.3 */ /*
* The serialized form of a RefAddr object consists of only its type name * String. */ public abstract class RefAddr implements java.io.Serializable { /** * Contains the type of this address. * @serial */ protected String addrType; /** * Constructs a new instance of RefAddr using its address type. * * @param addrType A non-null string describing the type of the address. */ protected RefAddr(String addrType) { this.addrType = addrType; } /** * Retrieves the address type of this address. * * @return The non-null address type of this address. */ public String getType() { return addrType; } /** * Retrieves the contents of this address. * * @return The possibly null address contents. */ public abstract Object getContent(); /** * Determines whether obj is equal to this RefAddr. *
* obj is equal to this RefAddr all of these conditions are true *