javax.management.remote.message
Class CloseMessage

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

public class CloseMessage
extends Object
implements Message

This class is used to inform a remote side of local closing.

See Also:
Serialized Form

Constructor Summary
CloseMessage()
          Constructs a CloseMessage with null message.
CloseMessage(String msg)
          Constructs a CloseMessage with a user specific message.
 
Method Summary
 String getMessage()
          Returns a message explaining why the connection was closed by the remote side.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloseMessage

public CloseMessage()
Constructs a CloseMessage with null message.


CloseMessage

public CloseMessage(String msg)
Constructs a CloseMessage with a user specific message.

Parameters:
msg - a user specific message explaining why the connection was closed by the remote side
Method Detail

getMessage

public String getMessage()
Returns a message explaining why the connection was closed by the remote side.

Returns:
a message explaining why the connection was closed by the remote side.

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.