javax.management.remote.message
Class VersionMessage

java.lang.Object
  extended by javax.management.remote.message.VersionMessage
All Implemented Interfaces:
Serializable, Message

public class VersionMessage
extends Object
implements Message

This class represents the handshake messages exchanged between the client and the server to agree on the protocol version.

The protocol version is implicitly negotiated by the client and the server when necessary at the beginning of the handshake phase.

Refer to the HandshakeBeginMessage documentation for a full description of how the protocol version is negotiated.

The textual representation of the protocol version must be a series of non-negative decimal integers each separated by a period from the one that precedes it. For example, "1.0" is earlier than "1.0.1" and "2.0".

See Also:
HandshakeBeginMessage, Serialized Form

Constructor Summary
VersionMessage(String version)
          Constructs a new VersionMessage with the specified protocol version.
 
Method Summary
 String getVersion()
          The latest protocol version acceptable for use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionMessage

public VersionMessage(String version)
Constructs a new VersionMessage with the specified protocol version.

Parameters:
version - the latest protocol version acceptable for use.
Method Detail

getVersion

public String getVersion()
The latest protocol version acceptable for use.

The textual representation of the protocol version must be a series of non-negative decimal integers each separated by a period from the one that precedes it. For example, "1.0" is earlier than "1.0.1" and "2.0".

Returns:
The latest protocol version acceptable for use.

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.