Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: add usage for cryptomapper

...

A wrapper around another mapper which will encrypt/decrypt the URLs generated by the inner one.

Usage:
MyApp.java:

Code Block

public void init() {
	super.init();

        IRequestMapper cryptoMapper = new CryptoMapper(getRootRequestMapper(), this));
	setRootRequestMapper(cryptoMapper);
}

HttpsMapper

A mapper which makes a redirect to the same URL with HTTPS protocol if the requested page is annotated with @RequireHttps or to HTTP protocol if the last processed page had @RequireHttps and the one going to be processed has no such annotation.

...