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

x33g5p2x  于2022-01-26 转载在 其他  
字(8.8k)|赞(0)|评价(0)|浏览(123)

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

Output.<init>介绍

暂无

代码示例

代码示例来源: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

@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

@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(RETURN_RESULT),
    @Output(RETURN_CODE),
    @Output(EXCEPTION)
},
responses = {

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

@Action(name = "Remove Empty Elements",
      outputs = {
          @Output(OutputNames.RETURN_CODE),
          @Output(OutputNames.RETURN_RESULT)
      },
      responses = {
          @Response(text = ResponseNames.SUCCESS, field = OutputNames.RETURN_CODE, value = ReturnCodes.SUCCESS, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED),
          @Response(text = ResponseNames.FAILURE, field = OutputNames.RETURN_CODE, value = ReturnCodes.FAILURE, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.ERROR, isOnFail = true)
      })
  public Map<String, String> removeEmptyElements(@Param(value = Constants.InputNames.JSON_OBJECT, required = true) String json) {
    try {
      final String result = new JsonService().removeEmptyElementsJson(json);
      return OutputUtilities.getSuccessResultsMap(result);
    } catch (Exception ex) {
      return OutputUtilities.getFailureResultsMap(ex);
    }

  }
}

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

description = OPERATION_DESC,
outputs = {
    @Output(value = RETURN_CODE, description = RETURN_CODE_DESC),
    @Output(value = RETURN_RESULT, description = RETURN_RESULT_DESC),
    @Output(value = EXCEPTION, description = EXCEPTION_DESC),
},
responses = {

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

description = "Changes the time represented by a date by the specified number of seconds",
outputs = {
    @Output(RETURN_RESULT),
    @Output(RETURN_CODE),
    @Output(EXCEPTION)
},
responses = {

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

@Output(RETURN_RESULT),
    @Output(RETURN_CODE),
    @Output(EXCEPTION)
},
responses = {

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

@Action(name = "Get Instance Status ",
    description = GET_INSTANCE_STATUS_DESC,
    outputs = {
        @Output(value = Outputs.RETURN_CODE, description = RETURN_CODE_DESC),
        @Output(value = Outputs.RETURN_RESULT, description = RETURN_RESULT_DESC),
        @Output(value = Outputs.INSTANCE_STATUS, description = INSTANCE_STATUS_DESC),
        @Output(value = Outputs.EXCEPTION, description = EXCEPTION_DESC)
    },
    responses = {

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

@Action(name = "Delete Instance",
    description = DELETE_INSTANCE_DESC,
    outputs = {
        @Output(value = Outputs.RETURN_CODE, description = RETURN_CODE_DESC),
        @Output(value = Outputs.RETURN_RESULT, description = RETURN_RESULT_DESC),
        @Output(value = Outputs.REQUEST_ID, description = REQUEST_ID_DESC),
        @Output(value = Outputs.EXCEPTION, description = EXCEPTION_DESC)
    },
    responses = {

相关文章

Output类方法