@Contract(threading=IMMUTABLE) public class LaxRedirectStrategy extends DefaultRedirectStrategy
RedirectStrategy实现自动重定向所有HEAD,GET,POST和DELETE请求。
这种策略放宽了对HTTP规范强加的POST方法自动重定向的限制。
| Modifier and Type | Field and Description |
|---|---|
static LaxRedirectStrategy |
INSTANCE |
REDIRECT_LOCATIONS| Constructor and Description |
|---|
LaxRedirectStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isRedirectable(String method) |
createLocationURI, getLocationURI, getRedirect, isRedirectedpublic static final LaxRedirectStrategy INSTANCE
protected boolean isRedirectable(String method)
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.