0

How to find out whether my application was called using http or https?

asked 2009-06-11 12:37:17 +0800

ela gravatar image ela
6

Is it possible to find out somehow whether my application was called using http or https? I.e. does the call look like that:
http://host:port/MyApplication?param1=100¶m2=230
or
https://host:port/MyApplication?param1=100¶m2=230
I evaluate the parameters using currentExecution.getParameter("param1"). I found several functions in the class Execution that return
other parts of the URL ( like host or port ), but nothing about the protocol. Could someone point me in the right direction? Thanks!!

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-06-12 01:54:28 +0800

RyanWu gravatar image RyanWu
533 2
about.me/flyworld

Search protocol here
http://www.zkoss.org/javadoc/3.6/zk/org/zkoss/zk/ui/Execution.html

link publish delete flag offensive edit

answered 2009-06-23 04:11:46 +0800

lovetide gravatar image lovetide
169 1 7

maybe you can try ((javax.servlet.ServletRequest)currentExecution.getNativeRequest()).isSecure()

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-06-11 12:37:17 +0800

Seen: 438 times

Last updated: Jun 23 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More