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();
}
}
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();
}
}