Package | Description |
---|---|
cn.hutool.core.net.url |
URL相关工具
|
Modifier and Type | Method and Description |
---|---|
UrlPath |
UrlPath.add(CharSequence segment)
添加到path最后面
|
UrlPath |
UrlPath.addBefore(CharSequence segment)
添加到path最前面
|
UrlPath |
UrlBuilder.getPath()
获取路径,例如/aa/bb/cc
|
static UrlPath |
UrlPath.of(CharSequence pathStr,
Charset charset)
构建UrlPath
|
UrlPath |
UrlPath.parse(CharSequence path,
Charset charset)
解析path
|
UrlPath |
UrlPath.setWithEndTag(boolean withEngTag)
是否path的末尾加 /
|
Modifier and Type | Method and Description |
---|---|
static UrlBuilder |
UrlBuilder.of(String scheme,
String host,
int port,
UrlPath path,
UrlQuery query,
String fragment,
Charset charset)
构建UrlBuilder
|
UrlBuilder |
UrlBuilder.setPath(UrlPath path)
设置路径,例如/aa/bb/cc,将覆盖之前所有的path相关设置
|
Constructor and Description |
---|
UrlBuilder(String scheme,
String host,
int port,
UrlPath path,
UrlQuery query,
String fragment,
Charset charset)
构造
|
Copyright © 2024. All rights reserved.