com.hp.oo.sdk.content.plugin.GlobalSessionObject.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(86)

本文整理了Java中com.hp.oo.sdk.content.plugin.GlobalSessionObject.<init>()方法的一些代码示例,展示了GlobalSessionObject.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GlobalSessionObject.<init>()方法的具体详情如下:
包路径:com.hp.oo.sdk.content.plugin.GlobalSessionObject
类名称:GlobalSessionObject
方法名:<init>

GlobalSessionObject.<init>介绍

暂无

代码示例

代码示例来源:origin: io.openscore.lang/score-lang-runtime

private void handleNonSerializableSessionContextArgument(Map<String, Object> nonSerializableExecutionData, List<Object> args, Param annotation) {
  String key = annotation.value();
  Object nonSerializableSessionContextObject = nonSerializableExecutionData.get(key);
  if (nonSerializableSessionContextObject == null) {
    nonSerializableSessionContextObject = new GlobalSessionObject<>();
    nonSerializableExecutionData.put(key, nonSerializableSessionContextObject);
  }
  args.add(nonSerializableSessionContextObject);
}

代码示例来源:origin: io.cloudslang.content/cs-http-client

private void initSessionsObjects(HttpClientInputs httpClientInputs) {
  SerializableSessionObject cookieStoreSessionObject = httpClientInputs.getCookieStoreSessionObject();
  if (cookieStoreSessionObject == null) {
    httpClientInputs.setCookieStoreSessionObject(new SerializableSessionObject());
  }
  GlobalSessionObject globalSessionObject = httpClientInputs.getConnectionPoolSessionObject();
  if (globalSessionObject == null) {
    httpClientInputs.setConnectionPoolSessionObject(new GlobalSessionObject());
  }
}

代码示例来源:origin: CloudSlang/cs-actions

private void initSessionsObjects(HttpClientInputs httpClientInputs) {
  SerializableSessionObject cookieStoreSessionObject = httpClientInputs.getCookieStoreSessionObject();
  if (cookieStoreSessionObject == null) {
    httpClientInputs.setCookieStoreSessionObject(new SerializableSessionObject());
  }
  GlobalSessionObject globalSessionObject = httpClientInputs.getConnectionPoolSessionObject();
  if (globalSessionObject == null) {
    httpClientInputs.setConnectionPoolSessionObject(new GlobalSessionObject());
  }
}

代码示例来源:origin: io.cloudslang.content/score-http-client

private void initSessionsObjects(HttpClientInputs httpClientInputs) {
  SerializableSessionObject cookieStoreSessionObject = httpClientInputs.getCookieStoreSessionObject();
  if (cookieStoreSessionObject == null) {
    httpClientInputs.setCookieStoreSessionObject(new SerializableSessionObject());
  }
  GlobalSessionObject globalSessionObject = httpClientInputs.getConnectionPoolSessionObject();
  if (globalSessionObject == null) {
    httpClientInputs.setConnectionPoolSessionObject(new GlobalSessionObject());
  }
}

代码示例来源:origin: CloudSlang/cs-actions

private SSHShellInputs getSshShellInputs(OsDetectorInputs osDetectorInputs) {
    SSHShellInputs sshShellInputs = new SSHShellInputs();
    sshShellInputs.setHost(osDetectorInputs.getHost());
    sshShellInputs.setPort(defaultIfEmpty(osDetectorInputs.getPort(), valueOf(DEFAULT_PORT)));
    sshShellInputs.setUsername(osDetectorInputs.getUsername());
    sshShellInputs.setPassword(osDetectorInputs.getPassword());
    sshShellInputs.setPrivateKeyFile(osDetectorInputs.getPrivateKeyFile());
    sshShellInputs.setPrivateKeyData(osDetectorInputs.getPrivateKeyData());
    sshShellInputs.setAgentForwarding(osDetectorInputs.getAgentForwarding());
    sshShellInputs.setTimeout(osDetectorInputs.getSshTimeout());
    sshShellInputs.setConnectTimeout(osDetectorInputs.getSshConnectTimeout());
    sshShellInputs.setCloseSession(valueOf(true));
    sshShellInputs.setKnownHostsPolicy(osDetectorInputs.getKnownHostsPolicy());
    sshShellInputs.setKnownHostsPath(osDetectorInputs.getKnownHostsPath());
    sshShellInputs.setAllowedCiphers(osDetectorInputs.getAllowedCiphers());
    sshShellInputs.setProxyHost(osDetectorInputs.getProxyHost());
    sshShellInputs.setProxyPort(osDetectorInputs.getProxyPort());
    sshShellInputs.setProxyUsername(osDetectorInputs.getProxyUsername());
    sshShellInputs.setProxyPassword(osDetectorInputs.getProxyPassword());
    sshShellInputs.setCommand(OS_DETECTOR_COMMAND);
    sshShellInputs.setUseShell(valueOf(false));
    sshShellInputs.setSshGlobalSessionObject(new GlobalSessionObject<Map<String, SSHConnection>>());

    return sshShellInputs;
  }
}

相关文章