org.teiid.net.socket
Class Handshake
java.lang.Object
org.teiid.net.socket.Handshake
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable
public class Handshake
- extends java.lang.Object
- implements java.io.Externalizable
Represents the information needed in a socket connection handshake
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Handshake
public Handshake()
getVersion
public java.lang.String getVersion()
- Returns:
- Returns the version.
setVersion
public void setVersion()
- Parameters:
version - The version to set.
getPublicKey
public byte[] getPublicKey()
- Returns:
- Returns the key.
setPublicKey
public void setPublicKey(byte[] key)
- Parameters:
key - The key to set.
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal in interface java.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Specified by:
writeExternal in interface java.io.Externalizable
- Throws:
java.io.IOException
Copyright © 2011. All Rights Reserved.