RedirectStrategy
@Deprecated public interface RedirectHandler
Implementations of this interface must be thread-safe. Access to shared data must be synchronized as methods of this interface may be executed from multiple threads.
Modifier and Type | Method and Description |
---|---|
URI |
getLocationURI(HttpResponse response,
HttpContext context)
Deprecated.
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)
Deprecated.
Determines if a request should be redirected to a new location
given the response from the target server.
|
boolean isRedirectRequested(HttpResponse response, HttpContext context)
response
- the response received from the target servercontext
- the context for the request executiontrue
if the request should be redirected, false
otherwiseURI getLocationURI(HttpResponse response, HttpContext context) throws ProtocolException
response
- the response received from the target servercontext
- the context for the request executionProtocolException
Copyright © 1999–2013 The Apache Software Foundation. All rights reserved.