| java.lang.Object org.apache.harmony.rmi.transport.Endpoint
Endpoint | public class Endpoint (Code) | | Endpoint implementation: it contains information about host, port,
client-side and server-side socket factories.
author: Mikhail A. Markov version: $Revision: 1.1.2.3 $ |
Field Summary | |
final public static int | NONNULL_CSF Indicates non-null client-side factory. | final public static int | NULL_CSF Indicates null client-side factory. |
NONNULL_CSF | final public static int NONNULL_CSF(Code) | | Indicates non-null client-side factory.
|
NULL_CSF | final public static int NULL_CSF(Code) | | Indicates null client-side factory.
|
Endpoint | public Endpoint(String host, int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf)(Code) | | Constructs Endpoint.
Parameters: host - host address/name Parameters: port - port number Parameters: csf - client-side socket factory Parameters: ssf - server-side socket factory |
createTemplate | public static Endpoint createTemplate(Endpoint ep)(Code) | | Returns Endpoint created from the given Endpoint but having null host
(Such Endpoints are used for local endpoints for comparison).
Parameters: ep - Endpoint to create template from created Endpoint |
equals | public boolean equals(Object obj)(Code) | | Compares this Endpoint with another object. Returns true if the given
object is an instance of TcpEndpoint and has the same host, port, csf and
ssf fields.
true if objects are equal and false otherwise |
getClientSocketFactory | public RMIClientSocketFactory getClientSocketFactory()(Code) | | Returns client-side socket factory of this endpoint.
client-side socket factory of this endpoint |
getHost | public String getHost()(Code) | | Returns the host address of this endpoint.
the host address of this endpoint |
getPort | public int getPort()(Code) | | Returns the port of this endpoint.
the port of this endpoint |
getServerSocketFactory | public RMIServerSocketFactory getServerSocketFactory()(Code) | | Returns server-side socket factory of this endpoint.
server-side socket factory of this endpoint |
hashCode | public int hashCode()(Code) | | Returns hashCode for this Endpoint.
hashCode for this Endpoint |
readExternal | public static Endpoint readExternal(ObjectInput in, boolean readCsf) throws IOException, ClassNotFoundException(Code) | | Reads data for creating Endpoint object from the specified input stream.
Parameters: in - the stream to read data from Parameters: readCsf - do we need to read client-side factory or not created Endpoint throws: IOException - if any I/O error occurred throws: ClassNotFoundException - if class could not be loaded by currentclass loader |
toString | public String toString()(Code) | | Returns string representation of this Endpoint.
string representation of this Endpoint |
writeExternal | public void writeExternal(ObjectOutput out, boolean writeCsf) throws IOException(Code) | | Writes this Endpoint to the given ObjectOutput.
Parameters: out - ObjectOutput to write this Endpoint to Parameters: writeCsf - do we need to write client-side factory or not throws: IOException - if any I/O error occurred during writing |
|
|