org.teiid.net.socket
Class Handshake

java.lang.Object
  extended by 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

Constructor Summary
Handshake()
           
 
Method Summary
 byte[] getPublicKey()
           
 java.lang.String getVersion()
           
 void readExternal(java.io.ObjectInput in)
           
 void setPublicKey(byte[] key)
           
 void setVersion(java.lang.String version)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Handshake

public Handshake()
Method Detail

getVersion

public java.lang.String getVersion()
Returns:
Returns the version.

setVersion

public void setVersion(java.lang.String version)
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 © 2010. All Rights Reserved.