AllMethodsRedirectStrategy
Stay organized with collections
Save and categorize content based on your preferences.
- java.lang.Object
-
- DefaultRedirectStrategy
-
- com.google.appengine.api.urlfetch.dev.AllMethodsRedirectStrategy
-
public class AllMethodsRedirectStrategy
extends DefaultRedirectStrategy
A DefaultRedirectStrategy
that accepts redirects for 301,302,303,307 status
codes from all methods. getRedirect in DefaultRedirectStrategy correctly
takes care of making the redirects to use correct methods for different status codes.
-
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AllMethodsRedirectStrategy
public AllMethodsRedirectStrategy()
-
Method Detail
-
isRedirected
public boolean isRedirected(HttpRequest request,
HttpResponse response,
HttpContext context)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-02-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-02-15 UTC."],[[["`AllMethodsRedirectStrategy` is a subclass of `DefaultRedirectStrategy` that handles redirects for HTTP status codes 301, 302, 303, and 307."],["It ensures correct method usage during redirects, as managed by the `getRedirect` method in its parent class, `DefaultRedirectStrategy`."],["The class includes a default constructor, `AllMethodsRedirectStrategy()`, for creating instances."],["The `isRedirected` method determines if a given HTTP request-response interaction should result in a redirect, taking into account the request, response, and context."]]],[]]