本文整理汇总了Java中com.wm.util.Values.put方法的典型用法代码示例。如果您正苦于以下问题:Java Values.put方法的具体用法?Java Values.put怎么用?Java Values.put使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.wm.util.Values
的用法示例。
在下文中一共展示了Values.put方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getProperties
import com.wm.util.Values; //导入方法依赖的package包/类
public Values getProperties()
{
Values props = super.getProperties();
props.put("factoryKey", getFactoryKey());
props.put("configURL", ListenerAdmin.getFactory(getFactoryKey()).getConfigURL());
props.put("provider", "Generic");
props.put("plugin",plugin);
//props.put("maxConn","10");
props.put("so_timeout",Integer.toString(so_timeout));
props.put("service_name", service_name);
return props;
}
示例2: get_object_from_session
import com.wm.util.Values; //导入方法依赖的package包/类
public static final Values get_object_from_session (Values in)
{
Values out = in;
// --- <<IS-START(get_object_from_session)>> ---
// @sigtype java 3.0
// [i] field:0:required objectName
// [o] object:0:required object
String strObjectName = in.getString("objectName");
Session session = Service.getSession();
out.put("object", session.get(strObjectName));
// --- <<IS-END>> ---
return out;
}
示例3: getInputValues
import com.wm.util.Values; //导入方法依赖的package包/类
/**
* Reads input for service invocation. Turns properly formatted input into an instance of Values
* suitable for service invocation. Called before service invocation to provide input.
*
* @param inputStream The input stream from which to read.
* @param invokeState The current invocation state (such as the current user).
* @return The prepared service invocation input pipeline.
* @throws IOException If an error occurs reading from the input stream.
*/
public Values getInputValues(InputStream inputStream, InvokeState invokeState) throws IOException {
Values pipeline = new Values();
pipeline.put(inputName, IDataJSONParser.getInstance().parse(inputStream));
return pipeline;
}