public static class RewriteSubstitution.SubstitutionFlags extends Flags
| Constructor and Description |
|---|
SubstitutionFlags() |
SubstitutionFlags(String... flags) |
| Modifier and Type | Method and Description |
|---|---|
int |
getRedirectCode()
标志位:重定向,并取得redirect code。如果未指定重定向,则返回
0。 |
boolean |
hasC()
标志位:如果一个规则被匹配,则继续处理其后继规则;如果该规则不被匹配,则其后继规则将被跳过。
|
boolean |
hasL()
标志位:如果一个规则被匹配,并指明该参数,则立即结束。
|
boolean |
hasQSA()
标志位:保留所有GET、POST、UPLOAD所得的参数。
|
public SubstitutionFlags()
public SubstitutionFlags(String... flags)
public boolean hasQSA()
public boolean hasC()
public boolean hasL()
public int getRedirectCode()
0。
默认为302 moved temporarily。如指定R=301则表示
301 moved permanently。
Copyright © 2006–2018 TinyGroup. All rights reserved.