| Modifier and Type | Field and Description |
|---|---|
protected int |
maxCycles |
protected int |
maxPathLength |
| Constructor and Description |
|---|
RedirectValidator() |
RedirectValidator(RedirectValidator sample) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
apply(HttpHeaders hh,
URL from,
URL to,
List<Pair<URL,URL>> history) |
RedirectValidator |
clone() |
int |
getMaxCycles()
Указывает максимальное допустимое кол-во повторов URL при redirect
|
int |
getMaxPathLength()
Указывает макс длинну пути redirect-ов
|
RedirectValidator |
maxCycles(int maxCycles)
Указывает максимальное допустимое кол-во повторов URL при redirect
|
RedirectValidator |
maxPathLength(int maxPathLength)
Указывает макс длинну пути redirect-ов
|
protected Map<URL,Integer> |
nodeHisto(List<URL> path) |
protected List<URL> |
redirectPath(URL from,
URL to,
List<Pair<URL,URL>> history) |
void |
setMaxCycles(int maxCycles)
Указывает максимальное допустимое кол-во повторов URL при redirect
|
void |
setMaxPathLength(int maxPathLength)
Указывает макс длинну пути redirect-ов
|
public RedirectValidator()
public RedirectValidator(RedirectValidator sample)
public RedirectValidator clone()
public int getMaxCycles()
public void setMaxCycles(int maxCycles)
maxCycles - макс кол-во; 0 - без ограниченияpublic RedirectValidator maxCycles(int maxCycles)
maxCycles - макс кол-во; 0 - без ограниченияpublic int getMaxPathLength()
public void setMaxPathLength(int maxPathLength)
maxPathLength - макс длина или 0 - без ограниченияpublic RedirectValidator maxPathLength(int maxPathLength)
maxPathLength - макс длина или 0 - без ограниченияCopyright © 2019. All rights reserved.