com.aliyun.oss.model

## 类 RoutingRule.Redirect

- java.lang.Object
- - com.aliyun.oss.model.RoutingRule.Redirect

- 封闭类:
    RoutingRule

      public static class RoutingRule.Redirect
      extends Object

  Container element that provides instructions for redirecting the request. You can redirect requests to another host, or another page, or you can specify another protocol to use.

- - ### 构造器概要

    构造器
    构造器和说明
    `RoutingRule.Redirect()`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `ensureRedirectValid()` A Redirect element must contain at least one of the following sibling elements.
    `String` | `getHostName()`
    `Integer` | `getHttpRedirectCode()`
    `String` | `getMirrorProbeURL()`
    `String` | `getMirrorSecondaryURL()`
    `String` | `getMirrorURL()`
    `RoutingRule.Protocol` | `getProtocol()`
    `RoutingRule.RedirectType` | `getRedirectType()`
    `String` | `getReplaceKeyPrefixWith()`
    `String` | `getReplaceKeyWith()`
    `Boolean` | `isPassOriginalSlashes()`
    `Boolean` | `isPassQueryString()`
    `void` | `setHostName(String hostName)`
    `void` | `setHttpRedirectCode(Integer httpRedirectCode)`
    `void` | `setMirrorProbeURL(String mirrorProbeURL)`
    `void` | `setMirrorSecondaryURL(String mirrorSecondaryURL)`
    `void` | `setMirrorURL(String mirrorURL)`
    `void` | `setPassOriginalSlashes(Boolean passOriginalSlashes)`
    `void` | `setPassQueryString(Boolean passQueryString)`
    `void` | `setProtocol(RoutingRule.Protocol protocol)`
    `void` | `setRedirectType(RoutingRule.RedirectType redirectType)`
    `void` | `setReplaceKeyPrefixWith(String replaceKeyPrefixWith)`
    `void` | `setReplaceKeyWith(String replaceKeyWith)`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### RoutingRule.Redirect

          public RoutingRule.Redirect()

  - ### 方法详细资料

    - #### getRedirectType

          public RoutingRule.RedirectType getRedirectType()

    - #### setRedirectType

          public void setRedirectType(RoutingRule.RedirectType redirectType)

    - #### getHostName

          public String getHostName()

    - #### setHostName

          public void setHostName(String hostName)

    - #### getProtocol

          public RoutingRule.Protocol getProtocol()

    - #### setProtocol

          public void setProtocol(RoutingRule.Protocol protocol)

    - #### getReplaceKeyPrefixWith

          public String getReplaceKeyPrefixWith()

    - #### setReplaceKeyPrefixWith

          public void setReplaceKeyPrefixWith(String replaceKeyPrefixWith)

    - #### getReplaceKeyWith

          public String getReplaceKeyWith()

    - #### setReplaceKeyWith

          public void setReplaceKeyWith(String replaceKeyWith)

    - #### getHttpRedirectCode

          public Integer getHttpRedirectCode()

    - #### setHttpRedirectCode

          public void setHttpRedirectCode(Integer httpRedirectCode)

    - #### getMirrorURL

          public String getMirrorURL()

    - #### setMirrorURL

          public void setMirrorURL(String mirrorURL)

    - #### getMirrorSecondaryURL

          public String getMirrorSecondaryURL()

    - #### setMirrorSecondaryURL

          public void setMirrorSecondaryURL(String mirrorSecondaryURL)

    - #### getMirrorProbeURL

          public String getMirrorProbeURL()

    - #### setMirrorProbeURL

          public void setMirrorProbeURL(String mirrorProbeURL)

    - #### isPassQueryString

          public Boolean isPassQueryString()

    - #### setPassQueryString

          public void setPassQueryString(Boolean passQueryString)

    - #### isPassOriginalSlashes

          public Boolean isPassOriginalSlashes()

    - #### setPassOriginalSlashes

          public void setPassOriginalSlashes(Boolean passOriginalSlashes)

    - #### ensureRedirectValid

          public void ensureRedirectValid()

      A Redirect element must contain at least one of the following sibling elements.

Copyright © 2020. All Rights Reserved.