`
Xgw123485
  • 浏览: 88486 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

MsgBO

阅读更多
package com.huawei.bo;

import oracle.sql.CLOB;

public class MsgBO implements java.io.Serializable
{
private static final long serialVersionUID = -8282392921701998281L;

private String sender;
private String recevier;
private String msgType;
private String msg;

public String getSender()
{
return sender;
}

public void setSender(String sender)
{
this.sender = sender;
}

public String getRecevier() {
return recevier;
}

public void setRecevier(String recevier)
{
this.recevier = recevier;
}

public String getMsgType()
{
return msgType;
}

public void setMsgType(String msgType)
{
this.msgType = msgType;
}





public String getMsg() {
return msg;
}

public void setMsg(String msg) {
this.msg = msg;
}

public String toUP()
{
if("1".equals(this.getMsgType()))
{
return "RequestXML";
}
else if ("2".equals(this.getMsgType()))
{
return "ResponseXML";
}
else
{
return "NO";
}
}

public String toString()
{
StringBuffer buf = new StringBuffer(1024);
buf.append("{[").append(this.sender).append("->").append(this.recevier).append(":").append(toUP()).append("]")
   .append("[").append(this.msg).append("]}");

return buf.toString();
}

}
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics