你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
UrlRewriteActionParameters 类
- java.
lang. Object - com.
microsoft. azure. management. cdn. UrlRewriteActionParameters
- com.
public class UrlRewriteActionParameters
定义 URL 重写操作的参数。
构造函数摘要
构造函数 | 说明 |
---|---|
UrlRewriteActionParameters() |
创建 Url |
方法摘要
修饰符和类型 | 方法和描述 |
---|---|
java.lang.String |
destination()
Get 定义上述请求将重写到的相对 URL。 |
java.lang.String |
odatatype()
获取 odatatype 值。 |
java.lang.Boolean |
preserveUnmatchedPath()
获取是否保留不匹配的路径。 |
java.lang.String |
sourcePattern()
获取 定义一个请求 URI 模式,该模式标识可能重写的请求的类型。 |
Url |
withDestination(String destination)
Set 定义上述请求将重写到的相对 URL。 |
Url |
withOdatatype(String odatatype)
设置 odatatype 值。 |
Url |
withPreserveUnmatchedPath(Boolean preserveUnmatchedPath)
设置是否保留不匹配的路径。 |
Url |
withSourcePattern(String sourcePattern)
Set 定义标识可重写的请求类型的请求 URI 模式。 |
方法继承自 java.lang.Object
构造函数详细信息
UrlRewriteActionParameters
public UrlRewriteActionParameters()
创建 UrlRewriteActionParameters 类的实例。
方法详细信息
destination
public String destination()
Get 定义上述请求将重写到的相对 URL。
Returns:
odatatype
public String odatatype()
获取 odatatype 值。
Returns:
preserveUnmatchedPath
public Boolean preserveUnmatchedPath()
获取是否保留不匹配的路径。 默认值为 true。
Returns:
sourcePattern
public String sourcePattern()
获取 定义一个请求 URI 模式,该模式标识可能重写的请求的类型。 如果值为空,则匹配所有字符串。
Returns:
withDestination
public UrlRewriteActionParameters withDestination(String destination)
Set 定义上述请求将重写到的相对 URL。
Parameters:
Returns:
withOdatatype
public UrlRewriteActionParameters withOdatatype(String odatatype)
设置 odatatype 值。
Parameters:
Returns:
withPreserveUnmatchedPath
public UrlRewriteActionParameters withPreserveUnmatchedPath(Boolean preserveUnmatchedPath)
设置是否保留不匹配的路径。 默认值为 true。
Parameters:
Returns:
withSourcePattern
public UrlRewriteActionParameters withSourcePattern(String sourcePattern)
Set 定义标识可重写的请求类型的请求 URI 模式。 如果值为空,则匹配所有字符串。
Parameters:
Returns:
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈