本文整理了Java中org.jbundle.model.util.Util.addEndTag()
方法的一些代码示例,展示了Util.addEndTag()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.addEndTag()
方法的具体详情如下:
包路径:org.jbundle.model.util.Util
类名称:Util
方法名:addEndTag
暂无
代码示例来源:origin: org.jbundle.base.message/org.jbundle.base.message.core
/**
* Get the message header data as a XML String.
* @return
*/
public StringBuffer addXML(StringBuffer sbXML)
{
if (sbXML == null)
sbXML = new StringBuffer();
Util.addStartTag(sbXML, BaseMessage.HEADER_TAG).append(DBConstants.RETURN);
Map<String,Object> map = this.getProperties();
Util.addXMLMap(sbXML, map);
Util.addEndTag(sbXML, BaseMessage.HEADER_TAG).append(DBConstants.RETURN);
return sbXML;
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Get the message header data as a XML String.
* @return
*/
public StringBuffer addXML(StringBuffer sbXML)
{
if (sbXML == null)
sbXML = new StringBuffer();
Util.addStartTag(sbXML, BaseMessage.HEADER_TAG).append(DBConstants.RETURN);
Map<String,Object> map = this.getProperties();
Util.addXMLMap(sbXML, map);
Util.addEndTag(sbXML, BaseMessage.HEADER_TAG).append(DBConstants.RETURN);
return sbXML;
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Convert the external form to the internal message form.
* You must override this method.
* @param externalMessage The received message to be converted to internal form.
* @return The internal message.
*/
public int convertExternalToInternal(Object recordOwner)
{
String strMessage = (String)this.getRawData();
strMessage = this.stripHtmlTags((String)strMessage);
Map<String,Object> map = this.getEMailParams(strMessage);
this.moveHeaderParams(map, ((TrxMessageHeader)this.getMessage().getMessageHeader()).getMessageHeaderMap());
String rootTag = BaseMessage.ROOT_TAG;
if (this.getMessage() != null)
if (this.getMessage().getMessageDataDesc(null) != null)
if (this.getMessage().getMessageDataDesc(null).getKey() != null)
rootTag = this.getMessage().getMessageDataDesc(null).getKey();
StringBuffer sb = new StringBuffer();
Util.addStartTag(sb, rootTag);
Util.addXMLMap(sb, map);
Util.addEndTag(sb, rootTag);
String strXML = sb.toString();
if (this.getXSLTDocument() != null)
strXML = this.transformMessage(strXML, null); // Now use the XSLT document to convert this XSL document.
boolean bSuccess = this.getMessage().setXML(strXML);
return bSuccess ? DBConstants.NORMAL_RETURN : DBConstants.ERROR_RETURN;
}
/**
内容来源于网络,如有侵权,请联系作者删除!