confutil
Class ConfMsg

java.lang.Object
  extended byconfutil.ConfMsg

class ConfMsg
extends java.lang.Object

This class represents a configuration text message.

Title: P2PWNC configuration utility

Description: Linksys WRT54GS P2PWNC configuration utility

Copyright: Copyright (c) 2005

Company:

Version:
1.0
Author:
pfrag

Field Summary
protected  java.lang.String mtext
          Message text.
protected  int mtype
          Message type.
 
Constructor Summary
(package private) ConfMsg()
          Default constructor.
(package private) ConfMsg(int mtype, java.lang.String mtext)
          Constructs a ConfMsg using the specified input parameters.
 
Method Summary
 int getMessageType()
          Returns the message's type.
 java.lang.String getText()
          Returns the actual text message.
 void setMessageType(int mtype)
          Sets the message type of the message to "mtype".
 void setText(java.lang.String text)
          Sets the message text to "text".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mtype

protected int mtype
Message type. This field can have one of the valid message types as specified in the ConfClient class (that is, ACTION_GET, ACTION_ERR, ACTION_ACK, etc.)


mtext

protected java.lang.String mtext
Message text.

Constructor Detail

ConfMsg

ConfMsg()
Default constructor. Constructs a null message.


ConfMsg

ConfMsg(int mtype,
        java.lang.String mtext)
Constructs a ConfMsg using the specified input parameters.

Parameters:
mtype - int
mtext - String
Method Detail

getMessageType

public int getMessageType()
Returns the message's type.

Returns:
int

getText

public java.lang.String getText()
Returns the actual text message.

Returns:
String

setMessageType

public void setMessageType(int mtype)
Sets the message type of the message to "mtype".

Parameters:
mtype - int

setText

public void setText(java.lang.String text)
Sets the message text to "text".

Parameters:
text - String