本文整理了Java中com.ning.http.client.uri.Uri.withNewQuery()
方法的一些代码示例,展示了Uri.withNewQuery()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Uri.withNewQuery()
方法的具体详情如下:
包路径:com.ning.http.client.uri.Uri
类名称:Uri
方法名:withNewQuery
暂无
代码示例来源:origin: com.ning/async-http-client
public void resetQuery() {
rbQueryParams = null;
request.uri = request.uri.withNewQuery(null);
}
代码示例来源:origin: com.ning/async-http-client
public T setQueryParams(List<Param> params) {
// reset existing query
if (isNonEmpty(request.uri.getQuery()))
request.uri = request.uri.withNewQuery(null);
rbQueryParams = params;
return derived.cast(this);
}
代码示例来源:origin: com.ning/async-http-client
public static String computeRealmURI(Uri uri, boolean useAbsoluteURI, boolean omitQuery) {
if (useAbsoluteURI) {
return omitQuery && MiscUtils.isNonEmpty(uri.getQuery()) ? uri.withNewQuery(null).toUrl() : uri.toUrl();
} else {
String path = getNonEmptyPath(uri);
return omitQuery || !MiscUtils.isNonEmpty(uri.getQuery()) ? path : path + "?" + uri.getQuery();
}
}
代码示例来源:origin: javaee/grizzly-ahc
public void resetQuery() {
rbQueryParams = null;
request.uri = request.uri.withNewQuery(null);
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-http-client
public void resetQuery() {
rbQueryParams = null;
request.uri = request.uri.withNewQuery(null);
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-http-client
public T setQueryParams(List<Param> params) {
// reset existing query
if (isNonEmpty(request.uri.getQuery()))
request.uri = request.uri.withNewQuery(null);
rbQueryParams = params;
return derived.cast(this);
}
代码示例来源:origin: javaee/grizzly-ahc
public T setQueryParams(List<Param> params) {
// reset existing query
if (isNonEmpty(request.uri.getQuery()))
request.uri = request.uri.withNewQuery(null);
rbQueryParams = params;
return derived.cast(this);
}
代码示例来源:origin: javaee/grizzly-ahc
public static String computeRealmURI(Uri uri, boolean useAbsoluteURI, boolean omitQuery) {
if (useAbsoluteURI) {
return omitQuery && MiscUtils.isNonEmpty(uri.getQuery()) ? uri.withNewQuery(null).toUrl() : uri.toUrl();
} else {
String path = getNonEmptyPath(uri);
return omitQuery || !MiscUtils.isNonEmpty(uri.getQuery()) ? path : path + "?" + uri.getQuery();
}
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-http-client
public static String computeRealmURI(Uri uri, boolean useAbsoluteURI, boolean omitQuery) {
if (useAbsoluteURI) {
return omitQuery && MiscUtils.isNonEmpty(uri.getQuery()) ? uri.withNewQuery(null).toUrl() : uri.toUrl();
} else {
String path = getNonEmptyPath(uri);
return omitQuery || !MiscUtils.isNonEmpty(uri.getQuery()) ? path : path + "?" + uri.getQuery();
}
}
内容来源于网络,如有侵权,请联系作者删除!