DefaultRedirectStrategy.@Immutable @Deprecated public class DefaultRedirectHandler extends java.lang.Object implements RedirectHandler
RedirectHandler.| 构造器和说明 |
|---|
DefaultRedirectHandler()
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.net.URI |
getLocationURI(HttpResponse response,
HttpContext context)
已过时。
Determines the location request is expected to be redirected to
given the response from the target server and the current request
execution context.
|
boolean |
isRedirectRequested(HttpResponse response,
HttpContext context)
已过时。
Determines if a request should be redirected to a new location
given the response from the target server.
|
public boolean isRedirectRequested(HttpResponse response, HttpContext context)
RedirectHandlerisRedirectRequested 在接口中 RedirectHandlerresponse - the response received from the target servercontext - the context for the request executiontrue if the request should be redirected, false
otherwisepublic java.net.URI getLocationURI(HttpResponse response, HttpContext context) throws ProtocolException
RedirectHandlergetLocationURI 在接口中 RedirectHandlerresponse - the response received from the target servercontext - the context for the request executionProtocolException