java - How to skip redirection to https for some http request? How to configure this in jboss web subsystem? -


i have requirement in application http request redirected https there code in java servlet create http request through code , send jobss server translating https request. servlet not have capability handle https response , not want change servlet code. there way configure in jboss web system skip redirection of http request https request?

you can add security constraint in web.xml disable https few pages

<security-constraint>   <web-resource-collection>     <web-resource-name>pageswithouthttps</web-resource-name>     <description>no description</description>     <url-pattern>/nohttps/*.jsp</url-pattern>   </web-resource-collection>   <user-data-constraint>     <description>no description</description>     <transport-guarantee>none</transport-guarantee>   </user-data-constraint> </security-constraint>  <security-constraint>   <web-resource-collection>     <web-resource-name>httpspages</web-resource-name>     <description>no description</description>     <url-pattern>*.jsp</url-pattern>   </web-resource-collection>   <user-data-constraint>     <description>no description</description>     <transport-guarantee>confidential</transport-guarantee>   </user-data-constraint> </security-constraint> 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -