DefaultRedirectStrategy 。
@Contract(threading=IMMUTABLE) @Deprecated public class DefaultRedirectHandler extends Object implements RedirectHandler
RedirectHandler 。
| Constructor and Description |
|---|
DefaultRedirectHandler()
已过时。
|
| Modifier and Type | Method and Description |
|---|---|
URI |
getLocationURI(HttpResponse response, HttpContext context)
已过时。
确定位置请求被预期重定向到给定来自目标服务器和当前请求执行上下文的响应。
|
boolean |
isRedirectRequested(HttpResponse response, HttpContext context)
已过时。
确定一个请求是否应该被重定向到一个新的位置,给定来自目标服务器的响应。
|
public boolean isRedirectRequested(HttpResponse response, HttpContext context)
RedirectHandler复制
isRedirectRequested在接口
RedirectHandler
response - 从目标服务器收到的响应
context - 请求执行的上下文
true如果请求被重定向,否则
false
public URI getLocationURI(HttpResponse response, HttpContext context) throws ProtocolException
RedirectHandler复制
getLocationURI在接口
RedirectHandler
response - 从目标服务器收到的响应
context - 请求执行的上下文
ProtocolException
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.