你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

UrlRewriteActionParameters 类

  • java.lang.Object
    • com.microsoft.azure.management.cdn.UrlRewriteActionParameters

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 模式,该模式标识可能重写的请求的类型。

UrlRewriteActionParameters withDestination(String destination)

Set 定义上述请求将重写到的相对 URL。

UrlRewriteActionParameters withOdatatype(String odatatype)

设置 odatatype 值。

UrlRewriteActionParameters withPreserveUnmatchedPath(Boolean preserveUnmatchedPath)

设置是否保留不匹配的路径。

UrlRewriteActionParameters withSourcePattern(String sourcePattern)

Set 定义标识可重写的请求类型的请求 URI 模式。

方法继承自 java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

构造函数详细信息

UrlRewriteActionParameters

public UrlRewriteActionParameters()

创建 UrlRewriteActionParameters 类的实例。

方法详细信息

destination

public String destination()

Get 定义上述请求将重写到的相对 URL。

Returns:

目标值

odatatype

public String odatatype()

获取 odatatype 值。

Returns:

odatatype 值

preserveUnmatchedPath

public Boolean preserveUnmatchedPath()

获取是否保留不匹配的路径。 默认值为 true。

Returns:

preserveUnmatchedPath 值

sourcePattern

public String sourcePattern()

获取 定义一个请求 URI 模式,该模式标识可能重写的请求的类型。 如果值为空,则匹配所有字符串。

Returns:

sourcePattern 值

withDestination

public UrlRewriteActionParameters withDestination(String destination)

Set 定义上述请求将重写到的相对 URL。

Parameters:

destination - 要设置的目标值

Returns:

UrlRewriteActionParameters 对象本身。

withOdatatype

public UrlRewriteActionParameters withOdatatype(String odatatype)

设置 odatatype 值。

Parameters:

odatatype - 要设置的 odatatype 值

Returns:

UrlRewriteActionParameters 对象本身。

withPreserveUnmatchedPath

public UrlRewriteActionParameters withPreserveUnmatchedPath(Boolean preserveUnmatchedPath)

设置是否保留不匹配的路径。 默认值为 true。

Parameters:

preserveUnmatchedPath - 要设置的 preserveUnmatchedPath 值

Returns:

UrlRewriteActionParameters 对象本身。

withSourcePattern

public UrlRewriteActionParameters withSourcePattern(String sourcePattern)

Set 定义标识可重写的请求类型的请求 URI 模式。 如果值为空,则匹配所有字符串。

Parameters:

sourcePattern - 要设置的 sourcePattern 值

Returns:

UrlRewriteActionParameters 对象本身。

适用于