本文整理汇总了Java中org.apache.axis2.context.MessageContext.setSelfManagedData方法的典型用法代码示例。如果您正苦于以下问题:Java MessageContext.setSelfManagedData方法的具体用法?Java MessageContext.setSelfManagedData怎么用?Java MessageContext.setSelfManagedData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.axis2.context.MessageContext
的用法示例。
在下文中一共展示了MessageContext.setSelfManagedData方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: invoke
import org.apache.axis2.context.MessageContext; //导入方法依赖的package包/类
public InvocationResponse invoke(MessageContext _mc) throws AxisFault {
String desc = "TempHandler02[id=" + id + "].invoke()";
String title = "MessageContextSelfManagedDataTest::" + desc;
log.debug(title);
MessageContext msgContext2 = null; // this will be the restored one
_mc.setSelfManagedData(this.getClass(), Integer.toString(id),
testData + Integer.toString(id));
log.debug(title + ": Setting self managed data using key [" +
Integer.toString(id) + "]");
msgContext2 = saveAndRestore(_mc, "TempHandler02_", desc);
boolean result = (msgContext2 != null);
assertTrue(result);
invokecallcount++;
log.debug(title + ": Completed");
return InvocationResponse.CONTINUE;
}
示例2: deserializeSelfManagedData
import org.apache.axis2.context.MessageContext; //导入方法依赖的package包/类
public void deserializeSelfManagedData(ByteArrayInputStream data, MessageContext _mc)
throws IOException {
deserializecallcount++;
String desc = "TempHandler02[id=" + id + "].deserializeSelfManagedData() count [" +
deserializecallcount + "]";
String title = "MessageContextSelfManagedDataTest::" + desc;
log.debug(title);
ObjectInputStream ois = new ObjectInputStream(data);
testData = ois.readUTF().concat(" with extra text " + Integer.toString(id));
_mc.setSelfManagedData(this.getClass(), Integer.toString(id), testData);
}