javax.management.remote.message
Class CloseMessage

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

public class CloseMessage
extends java.lang.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(java.lang.String msg)
          Constructs a CloseMessage with a user specific message.
 
Method Summary
 java.lang.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(java.lang.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 java.lang.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 01-ea
opendmk-1.0-b01-ea 2010.10.20_19:39:55_UTC

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