akka.http.javadsl.model.Query类的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(5.2k)|赞(0)|评价(0)|浏览(113)

本文整理了Java中akka.http.javadsl.model.Query类的一些代码示例,展示了Query类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query类的具体详情如下:
包路径:akka.http.javadsl.model.Query
类名称:Query

Query介绍

暂无

代码示例

代码示例来源:origin: com.typesafe.akka/akka-http-core_2.12

/**
 * Returns a Query from the given parameters.
 */
public static Query create(Iterable<Pair<String, String>> params) {
  @SuppressWarnings("unchecked")
  final Pair<String, String>[] paramsArray =
      StreamSupport.stream(params.spliterator(), false).toArray(Pair[]::new);
  return create(paramsArray);
}

代码示例来源:origin: com.typesafe.akka/akka-http-core_2.11

/**
 * Converts this FormData to a RequestEntity using the given encoding.
 */
public RequestEntity toEntity(HttpCharset charset) {
 return HttpEntities.create(ContentTypes.create(MediaTypes.APPLICATION_X_WWW_FORM_URLENCODED, charset), fields.render(charset));
}

代码示例来源:origin: eclipse/ditto

@Override
public boolean isApplicable(final RequestContext context) {
  return getRequestHeader(context, HttpHeader.X_DITTO_DUMMY_AUTH.getName()).isPresent() ||
      context.getRequest().getUri().query().get(HttpHeader.X_DITTO_DUMMY_AUTH.getName()).isPresent();
}

代码示例来源:origin: com.typesafe.akka/akka-http-core_2.12

/**
 * Converts this FormData to a RequestEntity using the given encoding.
 */
public RequestEntity toEntity(HttpCharset charset) {
 return HttpEntities.create(ContentTypes.create(MediaTypes.APPLICATION_X_WWW_FORM_URLENCODED, charset), fields.render(charset));
}

代码示例来源:origin: eclipse/ditto

getRequestHeader(requestContext, HttpHeader.X_DITTO_DUMMY_AUTH.getName())
    .orElseGet(() -> requestContext.getRequest().getUri().query()
        .get(HttpHeader.X_DITTO_DUMMY_AUTH.getName())
        .orElseThrow(
            () -> new IllegalStateException(

代码示例来源:origin: com.typesafe.akka/akka-http-core_2.11

/**
 * Returns a Query from the given parameters.
 */
public static Query create(Iterable<Pair<String, String>> params) {
  @SuppressWarnings("unchecked")
  final Pair<String, String>[] paramsArray =
      StreamSupport.stream(params.spliterator(), false).toArray(Pair[]::new);
  return create(paramsArray);
}

代码示例来源:origin: com.typesafe.akka/akka-http-core

/**
 * Converts this FormData to a RequestEntity using the given encoding.
 */
public RequestEntity toEntity(HttpCharset charset) {
 return HttpEntities.create(ContentTypes.create(MediaTypes.APPLICATION_X_WWW_FORM_URLENCODED, charset), fields.render(charset));
}

代码示例来源:origin: com.typesafe.akka/akka-http-core

/**
 * Returns a Query from the given parameters.
 */
public static Query create(Iterable<Pair<String, String>> params) {
  @SuppressWarnings("unchecked")
  final Pair<String, String>[] paramsArray =
      StreamSupport.stream(params.spliterator(), false).toArray(Pair[]::new);
  return create(paramsArray);
}

代码示例来源:origin: com.typesafe.akka/akka-http-core-experimental

/**
 * Converts this FormData to a RequestEntity using the given encoding.
 */
public RequestEntity toEntity(HttpCharset charset) {
 return HttpEntities.create(ContentTypes.create(MediaTypes.APPLICATION_X_WWW_FORM_URLENCODED, charset), fields.render(charset));
}

代码示例来源:origin: com.typesafe.akka/akka-http-core_2.12

/**
  * Creates a FormData from the given parameters.
  */
 public static FormData create(Iterable<Pair<String, String>> params) {
  return new FormData(Query.create(params));
 }
}

代码示例来源:origin: com.typesafe.akka/akka-http-core-experimental

/**
 * Creates the FormData from the given parameters.
 */
public static FormData create(Pair<String, String>... params) {
 return new FormData(Query.create(params));
}

代码示例来源:origin: com.typesafe.akka/akka-http-core_2.11

/**
 * Creates the FormData from the given parameters.
 */
@SafeVarargs
public static FormData create(Pair<String, String>... params) {
 return new FormData(Query.create(params));
}

代码示例来源:origin: com.typesafe.akka/akka-http-core_2.12

/**
 * Creates the FormData from the given parameters.
 */
public static FormData create(Map<String, String> params) {
 return new FormData(Query.create(params));
}

代码示例来源:origin: com.typesafe.akka/akka-http-core

/**
 * Creates the FormData from the given parameters.
 */
@SafeVarargs
public static FormData create(Pair<String, String>... params) {
 return new FormData(Query.create(params));
}

代码示例来源:origin: com.typesafe.akka/akka-http-core-experimental

/**
  * Creates the FormData from the given parameters.
  */
 public static FormData create(Map<String, String> params) {
  return new FormData(Query.create(params));
 }
}

代码示例来源:origin: com.typesafe.akka/akka-http-core_2.11

/**
 * Creates the FormData from the given parameters.
 */
public static FormData create(Map<String, String> params) {
 return new FormData(Query.create(params));
}

代码示例来源:origin: com.typesafe.akka/akka-http-core_2.11

/**
  * Creates a FormData from the given parameters.
  */
 public static FormData create(Iterable<Pair<String, String>> params) {
  return new FormData(Query.create(params));
 }
}

代码示例来源:origin: com.typesafe.akka/akka-http-core

/**
  * Creates a FormData from the given parameters.
  */
 public static FormData create(Iterable<Pair<String, String>> params) {
  return new FormData(Query.create(params));
 }
}

代码示例来源:origin: com.typesafe.akka/akka-http-core_2.12

/**
 * Creates the FormData from the given parameters.
 */
@SafeVarargs
public static FormData create(Pair<String, String>... params) {
 return new FormData(Query.create(params));
}

代码示例来源:origin: com.typesafe.akka/akka-http-core

/**
 * Creates the FormData from the given parameters.
 */
public static FormData create(Map<String, String> params) {
 return new FormData(Query.create(params));
}

相关文章

微信公众号

最新文章

更多