本文整理了Java中org.apache.cxf.jaxrs.client.WebClient.getCurrentBuilder()
方法的一些代码示例,展示了WebClient.getCurrentBuilder()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebClient.getCurrentBuilder()
方法的具体详情如下:
包路径:org.apache.cxf.jaxrs.client.WebClient
类名称:WebClient
方法名:getCurrentBuilder
暂无
代码示例来源:origin: apache/cxf
/**
* Updates the current URI matrix parameters
* @param name matrix name
* @param values matrix values
* @return updated WebClient
*/
public WebClient matrix(String name, Object ...values) {
addMatrixQueryParamsToBuilder(getCurrentBuilder(), name, ParameterType.MATRIX, null, values);
return this;
}
代码示例来源:origin: apache/cxf
/**
* Updates the current URI fragment
* @param name fragment name
* @return updated WebClient
*/
public WebClient fragment(String name) {
getCurrentBuilder().fragment(name);
return this;
}
代码示例来源:origin: org.apache.cxf/cxf-rt-rs-client
/**
* Replaces the current query with the new value.
* @param queryParam query param name
* @param value the new value, providing a null is
* equivalent to calling resetQuery().
* @return updated WebClient
*/
public WebClient replaceQueryParam(String queryParam, Object... value) {
getCurrentBuilder().replaceQueryParam(queryParam, value);
return this;
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
/**
* Updates the current URI path
* @param path new relative path segment
* @return updated WebClient
*/
public WebClient path(Object path) {
getCurrentBuilder().path(convertParamValue(path, null));
return this;
}
代码示例来源:origin: apache/cxf
/**
* Updates the current URI path
* @param path new relative path segment
* @return updated WebClient
*/
public WebClient path(Object path) {
getCurrentBuilder().path(convertParamValue(path, null));
return this;
}
代码示例来源:origin: apache/cxf
/**
* Replaces the current query with the new value.
* @param queryString the new value, providing a null is
* equivalent to calling resetQuery().
* @return updated WebClient
*/
public WebClient replaceQuery(String queryString) {
getCurrentBuilder().replaceQuery(queryString);
return this;
}
代码示例来源:origin: apache/cxf
/**
* Replaces the current query with the new value.
* @param queryParam query param name
* @param value the new value, providing a null is
* equivalent to calling resetQuery().
* @return updated WebClient
*/
public WebClient replaceQueryParam(String queryParam, Object... value) {
getCurrentBuilder().replaceQueryParam(queryParam, value);
return this;
}
代码示例来源:origin: org.apache.cxf/cxf-rt-rs-client
/**
* Updates the current URI path
* @param path new relative path segment
* @return updated WebClient
*/
public WebClient path(Object path) {
getCurrentBuilder().path(convertParamValue(path, null));
return this;
}
代码示例来源:origin: org.apache.cxf/cxf-rt-rs-client
/**
* Updates the current URI matrix parameters
* @param name matrix name
* @param values matrix values
* @return updated WebClient
*/
public WebClient matrix(String name, Object ...values) {
addMatrixQueryParamsToBuilder(getCurrentBuilder(), name, ParameterType.MATRIX, null, values);
return this;
}
代码示例来源:origin: org.apache.cxf/cxf-rt-rs-client
/**
* Updates the current URI fragment
* @param name fragment name
* @return updated WebClient
*/
public WebClient fragment(String name) {
getCurrentBuilder().fragment(name);
return this;
}
代码示例来源:origin: org.apache.cxf/cxf-rt-rs-client
/**
* Replaces the current query with the new value.
* @param queryString the new value, providing a null is
* equivalent to calling resetQuery().
* @return updated WebClient
*/
public WebClient replaceQuery(String queryString) {
getCurrentBuilder().replaceQuery(queryString);
return this;
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
/**
* Updates the current URI fragment
* @param name fragment name
* @return updated WebClient
*/
public WebClient fragment(String name) {
getCurrentBuilder().fragment(name);
return this;
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
/**
* Updates the current URI query parameters
* @param name query name
* @param values query values
* @return updated WebClient
*/
public WebClient query(String name, Object ...values) {
addMatrixQueryParamsToBuilder(getCurrentBuilder(), name, ParameterType.QUERY, null, values);
return this;
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
/**
* Replaces the current query with the new value.
* @param queryString the new value, providing a null is
* equivalent to calling resetQuery().
* @return updated WebClient
*/
public WebClient replaceQuery(String queryString) {
getCurrentBuilder().replaceQuery(queryString);
return this;
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
/**
* Replaces the current query with the new value.
* @param queryString the new value, providing a null is
* equivalent to calling resetQuery().
* @return updated WebClient
*/
public WebClient replaceQueryParam(String queryParam, Object... value) {
getCurrentBuilder().replaceQueryParam(queryParam, value);
return this;
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
/**
* Updates the current URI matrix parameters
* @param name matrix name
* @param values matrix values
* @return updated WebClient
*/
public WebClient matrix(String name, Object ...values) {
addMatrixQueryParamsToBuilder(getCurrentBuilder(), name, ParameterType.MATRIX, null, values);
return this;
}
代码示例来源:origin: apache/cxf
/**
* Goes back
* @param fast if true then goes back to baseURI otherwise to a previous path segment
* @return updated WebClient
*/
public WebClient back(boolean fast) {
getState().setTemplates(null);
if (fast) {
getCurrentBuilder().replacePath(getBaseURI().getPath());
} else {
URI uri = getCurrentURI();
if (uri == getBaseURI()) {
return this;
}
List<PathSegment> segments = JAXRSUtils.getPathSegments(uri.getPath(), false);
getCurrentBuilder().replacePath(null);
for (int i = 0; i < segments.size() - 1; i++) {
getCurrentBuilder().path(HttpUtils.fromPathSegment(segments.get(i)));
}
}
return this;
}
代码示例来源:origin: org.apache.cxf/cxf-rt-rs-client
/**
* Goes back
* @param fast if true then goes back to baseURI otherwise to a previous path segment
* @return updated WebClient
*/
public WebClient back(boolean fast) {
getState().setTemplates(null);
if (fast) {
getCurrentBuilder().replacePath(getBaseURI().getPath());
} else {
URI uri = getCurrentURI();
if (uri == getBaseURI()) {
return this;
}
List<PathSegment> segments = JAXRSUtils.getPathSegments(uri.getPath(), false);
getCurrentBuilder().replacePath(null);
for (int i = 0; i < segments.size() - 1; i++) {
getCurrentBuilder().path(HttpUtils.fromPathSegment(segments.get(i)));
}
}
return this;
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
/**
* Goes back
* @param fast if true then goes back to baseURI otherwise to a previous path segment
* @return updated WebClient
*/
public WebClient back(boolean fast) {
getState().setTemplates(null);
if (fast) {
getCurrentBuilder().replacePath(getBaseURI().getPath());
} else {
URI uri = getCurrentURI();
if (uri == getBaseURI()) {
return this;
}
List<PathSegment> segments = JAXRSUtils.getPathSegments(uri.getPath(), false);
getCurrentBuilder().replacePath(null);
for (int i = 0; i < segments.size() - 1; i++) {
getCurrentBuilder().path(HttpUtils.fromPathSegment(segments.get(i)));
}
}
return this;
}
内容来源于网络,如有侵权,请联系作者删除!