久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

在 HTTPS 上使用重定向的 JSF 導航規則問題

Issues with JSF navigation rules using redirect on HTTPS(在 HTTPS 上使用重定向的 JSF 導航規則問題)
本文介紹了在 HTTPS 上使用重定向的 JSF 導航規則問題的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

在導航規則上使用 <redirect/> 時遇到問題.我的應用程序在 HTTPS 上運行,當導航規則使用 <redirect/> 時,重定向將執行到 HTTP,而不是 HTTPS.有沒有辦法解決這個問題?

I'm having issues when using <redirect/> on navigation rules. My application works on HTTPS and when a navigation rule uses <redirect/> the redirect is done to HTTP, not HTTPS. Is there any way to solve this?

推薦答案

你應該實現一個自定義 ConfigurableNavigationHandler 將根據操作源重新映射 URL(我在這里假設并非所有重定向都是到 https 目的地).舉個例子:

You should implement a custom ConfigurableNavigationHandler that will remap the URL based on the source of the action (I'm assuming here that not all your redirects are to https destinations). As an example:

 public class NavigationHandlerTest extends ConfigurableNavigationHandler {

 private NavigationHandlerTest concreteHandler;

 public NavigationHandlerTest(NavigationHandler concreteHandler) {
      this.concreteHandler = concreteHandler;
 }


 @Override
 public void handleNavigation(FacesContext context, String fromAction, String outcome) 
 {
    //here, check where navigation is going to/coming from and based on that build an appropriate URL.
     if(outcome.equals("someAction"){
        outcome = "https://foo.bar.baz"; //set destination url
          }


     concreteHandler.handleNavigation(context, fromAction, outcome);   

 }


   } 

faces-config.xml

     <application>
        <navigation-handler>com.example.NavigationHandlerTest</navigation-handler>
     </application> 

這篇關于在 HTTPS 上使用重定向的 JSF 導航規則問題的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Java Remove Duplicates from an Array?(Java從數組中刪除重復項?)
How to fix Invocation failed Unexpected Response from Server: Unauthorized in Android studio(如何修復調用失敗來自服務器的意外響應:在 Android 工作室中未經授權)
AES encryption, got extra trash characters in decrypted file(AES 加密,解密文件中有多余的垃圾字符)
AES Error: Given final block not properly padded(AES 錯誤:給定的最終塊未正確填充)
Detecting incorrect key using AES/GCM in JAVA(在 JAVA 中使用 AES/GCM 檢測不正確的密鑰)
AES-256-CBC in Java(Java 中的 AES-256-CBC)
主站蜘蛛池模板: 国产精品成人免费视频 | 中文字幕免费看 | 黄色片www | 精品一区av | 成人一级毛片 | 黄色小视频免费观看 | 91黄色免费 | 国产麻豆视频 | www.爱爱| 亚洲精品乱码久久久久久蜜桃91 | 污视频网站在线观看 | 欧美一级淫片 | 日韩av手机在线 | 天堂av中文在线 | 超碰在线成人 | 国产欧美精品一区二区三区 | 成人黄色小视频 | 一区久久| 中文字幕av在线播放 | 91久久精品日日躁夜夜躁欧美 | 欧美91| 日韩免费精品视频 | 日韩一区二区免费视频 | 欧美性猛交99久久久久99按摩 | 黄色小视频在线观看免费 | 一级做a视频 | 欧美成人毛片 | 免费看av的网址 | 99精品热 | 免费毛片观看 | 国产精品国产精品国产专区不卡 | 久草福利在线 | 欧美顶级黄色大片免费 | 黄色一级片黄色一级片 | 日本天堂在线 | 久久激情综合 | 国产精品1区2区3区 国产黄在线观看 | 性色av一区二区 | 国产成人a亚洲精品 | 亚洲一区网站 | 久久久久婷婷 |