Come reindirizzare a un URL ftp: // con Spring Webflow?
-
08-07-2019 - |
Domanda
Sto cercando di usare Spring WebFlow per reindirizzare a un URL calcolato su un server ftp, ma nel codice ExternalRedirect sono le seguenti righe:
} else if (location.startsWith("http://") || location.startsWith("https://")) {
sendRedirect(location, request, response);
} else {
sendServletRelativeRedirect(location, request, response);
}
Esiste un modo per convincere Spring WebFlow a reindirizzare, per esempio, a ftp://example.com/ ?
Soluzione
Dovresti considerare di usare questo: http://www.tuckey.org/urlrewrite/
L'ho installato con ogni progetto primaverile su cui lavoro.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow