接口的使用
cn.taketoday.web.util.UriBuilder
使用UriBuilder的程序包
程序包
说明
Core package of the client-side web support.
Provides the types that make up Infra functional web framework.
Provides a reactive
WebClient
that builds on top of the
cn.taketoday.http.client.reactive reactive HTTP adapter layer.Miscellaneous web utility classes, such as HTML escaping,
Log4j initialization, and cookie handling.
-
cn.taketoday.web.client中UriBuilder的使用
类型变量类型为UriBuilder的cn.taketoday.web.client中的方法参数修饰符和类型方法说明DefaultRestClient.DefaultRequestBodyUriSpec.uri(String uriTemplate, Function<UriBuilder, URI> uriFunction) DefaultRestClient.DefaultRequestBodyUriSpec.uri(Function<UriBuilder, URI> uriFunction) RestClient.UriSpec.uri(String uri, Function<UriBuilder, URI> uriFunction) Specify the URI starting with a URI template and finishing off with aUriBuildercreated from the template.RestClient.UriSpec.uri(Function<UriBuilder, URI> uriFunction) Specify the URI by through aUriBuilder. -
cn.taketoday.web.handler.function中UriBuilder的使用
修饰符和类型方法说明DefaultServerRequest.uriBuilder()DefaultServerRequestBuilder.BuiltServerRequest.uriBuilder()RequestPredicates.SubPathServerRequestWrapper.uriBuilder()ServerRequest.uriBuilder()Get aUriBuilderComponentsfrom the URI associated with thisServerRequest. -
cn.taketoday.web.reactive.function.client中UriBuilder的使用
类型变量类型为UriBuilder的cn.taketoday.web.reactive.function.client中的方法参数修饰符和类型方法说明DefaultWebClient.DefaultRequestBodyUriSpec.uri(String uriTemplate, Function<UriBuilder, URI> uriFunction) DefaultWebClient.DefaultRequestBodyUriSpec.uri(Function<UriBuilder, URI> uriFunction) WebClient.UriSpec.uri(String uri, Function<UriBuilder, URI> uriFunction) Specify the URI starting with a URI template and finishing off with aUriBuildercreated from the template.WebClient.UriSpec.uri(Function<UriBuilder, URI> uriFunction) Specify the URI by through aUriBuilder. -
cn.taketoday.web.servlet.support中UriBuilder的使用
修饰符和类型类说明classUriComponentsBuilder with additional static factory methods to create links based on the current HttpServletRequest. -
cn.taketoday.web.util中UriBuilder的使用
修饰符和类型类说明private classDefaultUriBuilderFactoryspecific implementation of UriBuilder.classBuilder forUriComponents.修饰符和类型方法说明DefaultUriBuilderFactory.builder()UriBuilderFactory.builder()Create a URI builder with default settings.Set the URI fragment.Set the URI host which may contain URI template variables, and may also benullto clear the host of this builder.Append to the path of this builder.UriBuilder.pathSegment(String... pathSegments) Append to the path using path segments.UriBuilder.port(int port) Set the URI port.Set the URI port .Parse the given query string into query parameters where parameters are separated with'&'and their values, if any, with'='.UriBuilder.queryParam(String name, Object... values) Append the given query parameter.UriBuilder.queryParam(String name, Collection<?> values) Variant ofqueryParam(String, Object...)with a Collection.UriBuilder.queryParamIfPresent(String name, Optional<?> value) Delegates to eitherqueryParam(String, Object...)orqueryParam(String, Collection)if the givenOptionalhas a value, or else if it is empty, no query parameter is added at all.UriBuilder.queryParams(cn.taketoday.util.MultiValueMap<String, String> params) Add multiple query parameters and values.UriBuilder.replacePath(String path) Override the current path.UriBuilder.replaceQuery(String query) Clear existing query parameters and then delegate toquery(String).UriBuilder.replaceQueryParam(String name, Object... values) Set the query parameter values replacing existing values, or if no values are given, the query parameter is removed.UriBuilder.replaceQueryParam(String name, Collection<?> values) Variant ofreplaceQueryParam(String, Object...)with a Collection.UriBuilder.replaceQueryParams(cn.taketoday.util.MultiValueMap<String, String> params) Set the query parameter values after removing all existing ones.Set the URI scheme which may contain URI template variables, and may also benullto clear the scheme of this builder.Initialize a builder with the given URI template.Set the URI user info which may contain URI template variables, and may also benullto clear the user info of this builder.