Class java.rmi.server.SocketType
java.lang.Object
|
+----java.rmi.server.SocketType
- public final class SocketType
- extends Object
The SocketType class is a type that can be passed to an
RMISocketFactory object on creation of a socket or a server socket
to choose desired socket type.
Constructor Summary
|
SocketType(String protocol,
byte[] refData,
Object serverData)
Create new SocketType object with given properties.
|
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SocketType
public SocketType(String protocol,
byte[] refData,
Object serverData)
- Create new SocketType object with given properties.
- Parameters:
protocol
- string identifying socket protocol
refData
- optional array of bytes with additional protocol data
serverData
- server-specific protocol data
getProtocol
public String getProtocol()
- Return the protocol string for this descriptor.
getRefData
public byte[] getRefData()
- Return the optional client data for this descriptor.
getServerData
public Object getServerData()
- Return the server-specific data for this descriptor.
write
public void write(DataOutput out) throws IOException
- Write descriptor to output stream.
- Parameters:
out
- the output object to write to
read
public static SocketType read(DataInput in) throws IOException
- Read a descriptor from input stream.
- Parameters:
in
- the input object to read from
hashCode
public int hashCode()
- Overrides:
- hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
- equals in class Object
toString
public String toString()
- Overrides:
- toString in class Object
Submit a bug or feature
Submit comments/suggestions about new javadoc look.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.