本文整理了Java中com.hp.oo.sdk.content.annotations.Output
类的一些代码示例,展示了Output
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Output
类的具体详情如下:
包路径:com.hp.oo.sdk.content.annotations.Output
类名称:Output
暂无
代码示例来源:origin: CloudSlang/cs-actions
@Output(RESULT_TEXT),
@Output(RESPONSE),
@Output(RETURN_RESULT),
@Output(RETURN_CODE)
},
responses = {
代码示例来源:origin: CloudSlang/cs-actions
@Output(RESPONSE),
@Output(RETURN_RESULT),
@Output(RETURN_CODE)
},
responses = {
代码示例来源:origin: CloudSlang/cs-actions
@Output(RESPONSE),
@Output(RETURN_RESULT),
@Output(RETURN_CODE)
},
responses = {
代码示例来源:origin: CloudSlang/cs-actions
@Output(RESULT_TEXT),
@Output(RESPONSE),
@Output(RETURN_RESULT),
@Output(RETURN_CODE)
},
responses = {
代码示例来源:origin: CloudSlang/cs-actions
@Output(RESPONSE),
@Output(RETURN_RESULT),
@Output(RETURN_CODE)
},
responses = {
代码示例来源:origin: io.cloudslang.content/cs-http-client
@Action(name = "URL Decoder", description = URL_DECODER_DESC,
outputs = {
@Output(value = EXCEPTION, description = EXCEPTION_DESC),
@Output(value = RETURN_CODE, description = RETURN_CODE_DESC),
@Output(value = RETURN_RESULT, description = RETURN_RESULT_DESC)
},
responses = {
@Response(text = SUCCESS, field = RETURN_CODE, value = ReturnCodes.SUCCESS,
matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED),
@Response(text = FAILURE, field = RETURN_CODE, value = ReturnCodes.FAILURE,
matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.ERROR)
}
)
public Map<String, String> execute(
@Param(value = URL, required = true, description = URL_DESC) String url,
@Param(value = CHARACTER_SET, description = CHARACTER_SET_DESC) String characterSet) {
try {
if (StringUtils.isEmpty(characterSet)) {
characterSet = Utils.DEFAULT_CHARACTER_SET;
}
final String returnResult = URLDecoder.decode(url, characterSet);
return getSuccessResultsMap(returnResult);
} catch (Exception e) {
return getFailureResultsMap(e.getMessage());
}
}
}
代码示例来源:origin: io.cloudslang.content/score-http-client
@Output(ScoreHttpClient.EXCEPTION),
@Output(RETURN_CODE),
@Output(RETURN_RESULT)
},
responses = {
代码示例来源:origin: io.openscore.content/score-http-client
@Output(ScoreHttpClient.EXCEPTION),
@Output(RETURN_CODE),
@Output(RETURN_RESULT)
},
responses = {
代码示例来源:origin: io.cloudslang.content/cs-http-client
@Action(name = "URL Encoder", description = URL_ENCODER_DESC,
outputs = {
@Output(value = HttpClientService.EXCEPTION, description = EXCEPTION_DESC),
@Output(value = RETURN_CODE, description = RETURN_CODE_DESC),
@Output(value = RETURN_RESULT, description = RETURN_RESULT_DESC)
},
responses = {
@Response(text = SUCCESS, field = RETURN_CODE, value = ReturnCodes.SUCCESS,
matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED),
@Response(text = FAILURE, field = RETURN_CODE, value = ReturnCodes.FAILURE,
matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.ERROR)
}
)
public Map<String, String> execute(
@Param(value = TEXT, required = true, description = URL_DESC) String text,
@Param(value = CHARACTER_SET, description = CHARACTER_SET_DESC) String characterSet) {
try {
if (StringUtils.isEmpty(characterSet)) {
characterSet = Utils.DEFAULT_CHARACTER_SET;
}
String returnResult = URLEncoder.encode(text, characterSet);
return getSuccessResultsMap(returnResult);
} catch (Exception e) {
return getFailureResultsMap(e.getMessage());
}
}
代码示例来源:origin: CloudSlang/cs-actions
@Output(RESULT_TEXT),
@Output(RESPONSE),
@Output(RETURN_RESULT),
@Output(RETURN_CODE)
},
responses = {
代码示例来源:origin: CloudSlang/cs-actions
@Action(name = "URL Encoder", description = URL_ENCODER_DESC,
outputs = {
@Output(value = HttpClientService.EXCEPTION, description = EXCEPTION_DESC),
@Output(value = RETURN_CODE, description = RETURN_CODE_DESC),
@Output(value = RETURN_RESULT, description = RETURN_RESULT_DESC)
},
responses = {
@Response(text = SUCCESS, field = RETURN_CODE, value = ReturnCodes.SUCCESS,
matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED),
@Response(text = FAILURE, field = RETURN_CODE, value = ReturnCodes.FAILURE,
matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.ERROR)
}
)
public Map<String, String> execute(
@Param(value = TEXT, required = true, description = URL_DESC) String text,
@Param(value = CHARACTER_SET, description = CHARACTER_SET_DESC) String characterSet) {
try {
if (StringUtils.isEmpty(characterSet)) {
characterSet = Utils.DEFAULT_CHARACTER_SET;
}
String returnResult = URLEncoder.encode(text, characterSet);
return getSuccessResultsMap(returnResult);
} catch (Exception e) {
return getFailureResultsMap(e.getMessage());
}
}
代码示例来源:origin: CloudSlang/cs-actions
@Action(name = "URL Decoder", description = URL_DECODER_DESC,
outputs = {
@Output(value = EXCEPTION, description = EXCEPTION_DESC),
@Output(value = RETURN_CODE, description = RETURN_CODE_DESC),
@Output(value = RETURN_RESULT, description = RETURN_RESULT_DESC)
},
responses = {
@Response(text = SUCCESS, field = RETURN_CODE, value = ReturnCodes.SUCCESS,
matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED),
@Response(text = FAILURE, field = RETURN_CODE, value = ReturnCodes.FAILURE,
matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.ERROR)
}
)
public Map<String, String> execute(
@Param(value = URL, required = true, description = URL_DESC) String url,
@Param(value = CHARACTER_SET, description = CHARACTER_SET_DESC) String characterSet) {
try {
if (StringUtils.isEmpty(characterSet)) {
characterSet = Utils.DEFAULT_CHARACTER_SET;
}
final String returnResult = URLDecoder.decode(url, characterSet);
return getSuccessResultsMap(returnResult);
} catch (Exception e) {
return getFailureResultsMap(e.getMessage());
}
}
}
代码示例来源:origin: CloudSlang/cs-actions
@Output(RESULT_TEXT),
@Output(RESPONSE),
@Output(RETURN_RESULT),
@Output(RETURN_CODE)
},
responses = {@Response(text = SUCCESS, field = RETURN_CODE, value = RETURN_CODE_SUCCESS, matchType = MatchType.COMPARE_EQUAL),
代码示例来源:origin: CloudSlang/cs-actions
@Output(RESPONSE_TEXT),
@Output(RETURN_RESULT),
@Output(RETURN_CODE),
@Output(EXCEPTION)
},
responses = {
代码示例来源:origin: CloudSlang/cs-actions
@Output(RETURN_CODE),
@Output(RETURN_RESULT),
@Output(EXCEPTION),
@Output(STDERR)
},
responses = {
代码示例来源:origin: CloudSlang/cs-actions
@Action(name = LOCAL_PING_OPERATION_NAME,
description = LOCAL_PING_OPERATION_DESC,
outputs = {
@Output(value = RETURN_RESULT, description = LOCAL_PING_RETURN_RESULT_DESC),
@Output(value = RETURN_CODE, description = RETURN_CODE_DESC),
@Output(value = PACKETS_SENT, description = PACKETS_SENT_OUTPUT_DESC),
@Output(value = PACKETS_RECEIVED, description = PACKETS_RECEIVED_OUTPUT_DESC),
@Output(value = PERCENTAGE_PACKETS_LOST, description = PERCENTAGE_PACKETS_LOST_OUTPUT_DESC),
@Output(value = TRANSMISSION_TIME_MIN, description = TRANSMISSION_TIME_MIN_OUTPUT_DESC),
@Output(value = TRANSMISSION_TIME_MAX, description = TRANSMISSION_TIME_MAX_OUTPUT_DESC),
@Output(value = TRANSMISSION_TIME_AVG, description = TRANSMISSION_TIME_AVG_OUTPUT_DESC),
@Output(value = EXCEPTION, description = EXCEPTION_DESC),
},
responses = {
代码示例来源:origin: CloudSlang/cs-actions
@Action(name = "List Iterator", description = LIST_ITERATOR,
outputs = {
@Output(value = RESULT_STRING, description = RESULT_STRING_DESC),
@Output(value = RETURN_RESULT, description = RETURN_RESULT_DESC),
@Output(value = RETURN_CODE, description = RETURN_CODE_DESC)},
responses = {
@Response(text = HAS_MORE, field = RESULT_TEXT, value = HAS_MORE, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED, description = HAS_MORE_DESC),
@Response(text = NO_MORE, field = RESULT_TEXT, value = NO_MORE, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED, description = NO_MORE_DESC),
@Response(text = FAILURE, field = RESULT_TEXT, value = FAILURE, matchType = MatchType.COMPARE_EQUAL, isDefault = true, isOnFail = true, description = FAILURE_DESC)})
public Map<String, String> execute(@Param(value = LIST, required = true, description = LIST_DESC) String list,
@Param(value = SEPARATOR, required = true, description = Constants.Descriptions.SEPARATOR_DESC) String separator,
@Param("globalSessionObject") GlobalSessionObject<Map<String, Object>> globalSessionObject) {
//Get default values
final String separatorImp = defaultIfEmpty(separator, ",");
return ListService.iterate(list, separatorImp, globalSessionObject);
}
}
代码示例来源:origin: CloudSlang/cs-actions
@Output(OutputNames.RETURN_RESULT),
@Output(OutputNames.RETURN_CODE),
@Output(OutputNames.EXCEPTION)
},
responses = {
代码示例来源:origin: CloudSlang/cs-actions
@Output(OutputNames.RETURN_RESULT),
@Output(OutputNames.RETURN_CODE),
@Output(OutputNames.EXCEPTION)
},
responses = {
代码示例来源:origin: CloudSlang/cs-actions
@Output(RETURN_RESULT),
@Output(RETURN_CODE),
@Output(EXCEPTION)
},
responses = {
内容来源于网络,如有侵权,请联系作者删除!