RedirectStrategy
@Deprecated public interface RedirectHandler
此接口的实现必须是线程安全的。 必须同步访问共享数据,因为可以从多个线程执行此接口的方法。
| Modifier and Type | Method and Description |
|---|---|
URI |
getLocationURI(HttpResponse response, HttpContext context)
已过时。
确定位置请求被预期重定向到给定来自目标服务器和当前请求执行上下文的响应。
|
boolean |
isRedirectRequested(HttpResponse response, HttpContext context)
已过时。
确定一个请求是否应该被重定向到一个新的位置,给定来自目标服务器的响应。
|
boolean isRedirectRequested(HttpResponse response, HttpContext context)
response - 从目标服务器收到的响应
context - 请求执行的上下文
true如果请求被重定向,否则
false
URI getLocationURI(HttpResponse response, HttpContext context) throws ProtocolException
response - 从目标服务器收到的响应
context - 请求执行的上下文
ProtocolException
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.