Codota Logo
HttpMethodEnum.getName
Code IndexAdd Codota to your IDE (free)

How to use
getName
method
in
org.dromara.soul.common.enums.HttpMethodEnum

Best Java code snippets using org.dromara.soul.common.enums.HttpMethodEnum.getName (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: Dromara/soul

public Map<String, List<EnumVO>> list() {
  List<EnumVO> httpMethodEnums = Arrays.stream(HttpMethodEnum.values())
      .map(httpMethodEnum -> new EnumVO(null, httpMethodEnum.getName(), httpMethodEnum.getSupport()))
      .collect(Collectors.toList());
origin: Dromara/soul

private Mono<Void> doHttpInvoke() {
  if (requestDTO.getHttpMethod().equals(HttpMethodEnum.GET.getName())) {
    String uri = buildRealURL();
    if (StringUtils.isNoneBlank(requestDTO.getExtInfo())) {
      uri = uri + "?" + GSONUtils.getInstance().toGetParam(requestDTO.getExtInfo());
    }
    return WEB_CLIENT.get().uri(uri)
        .headers(httpHeaders -> {
          httpHeaders.addAll(exchange.getRequest().getHeaders());
          httpHeaders.remove(HttpHeaders.HOST);
        })
        .exchange()
        .doOnError(e -> LogUtils.error(LOGGER, e::getMessage))
        .timeout(Duration.ofMillis(timeout))
        .flatMap(this::doNext);
  } else if (requestDTO.getHttpMethod().equals(HttpMethodEnum.POST.getName())) {
    return WEB_CLIENT.post().uri(buildRealURL())
        .headers(httpHeaders -> {
          httpHeaders.addAll(exchange.getRequest().getHeaders());
          httpHeaders.remove(HttpHeaders.HOST);
        })
        .contentType(buildMediaType())
        .body(BodyInserters.fromDataBuffers(exchange.getRequest().getBody()))
        .exchange()
        .doOnError(e -> LogUtils.error(LOGGER, e::getMessage))
        .timeout(Duration.ofMillis(timeout))
        .flatMap(this::doNext);
  }
  return Mono.empty();
}
org.dromara.soul.common.enumsHttpMethodEnumgetName

Popular methods of HttpMethodEnum

  • values
  • acquireByName
    convert by name.
  • getSupport

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • JList (javax.swing)
  • JPanel (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now