Tabnine Logo
HttpsMapper.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.wicket.protocol.https.HttpsMapper
constructor

Best Java code snippets using org.apache.wicket.protocol.https.HttpsMapper.<init> (Showing top 3 results out of 315)

origin: stackoverflow.com

 setRootRequestMapper(new HttpsMapper(getRootRequestMapper(), new HttpsConfig(8080, 8443)){
  @Override
  public Url mapHandler(IRequestHandler requestHandler) {
    Url url = super.mapHandler(requestHandler);
    if ("https".equals(url.getProtocol)){
      // Force the HostName for HTTPS requests
      url.setHost("securepage.example.com");   
    }
    return url;
  }
});
origin: de.alpharogroup/jaulp-wicket-base

/**
 * Sets the root request mapper for the given application from the given httpPort and httpsPort.
 *
 * @param application
 *            the application
 * @param httpPort
 *            the http port
 * @param httpsPort
 *            the https port
 * @return the i request mapper
 */
public static IRequestMapper setRootRequestMapper(final Application application,
  final int httpPort, final int httpsPort)
{
  final IRequestMapper httpsMapper = new HttpsMapper(application.getRootRequestMapper(),
    new HttpsConfig(httpPort, httpsPort));
  application.setRootRequestMapper(httpsMapper);
  return httpsMapper;
}
origin: de.alpharogroup/jaulp-wicket-base

final int httpPort, final int httpsPort)
application.setRootRequestMapper(new HttpsMapper(application.getRootRequestMapper(),
  new HttpsConfig(httpPort, httpsPort))
org.apache.wicket.protocol.httpsHttpsMapper<init>

Javadoc

Constructor

Popular methods of HttpsMapper

  • getDesiredSchemeFor
    Figures out which Scheme should be used to access the request handler
  • getSchemeOf
    Determines the Scheme of the request
  • createRedirectHandler
    Creates the IRequestHandler that will be responsible for the redirect
  • createRedirectUrl
    Constructs a redirect url that should switch the user to the specified scheme
  • hasSecureAnnotation
    Checks if the specified type has the RequireHttps annotation
  • mapHandler
    Creates a url for the handler. Modifies it with the correct Scheme if necessary.

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • requestLocationUpdates (LocationManager)
  • notifyDataSetChanged (ArrayAdapter)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Permission (java.security)
    Legacy security code; do not use.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • JPanel (javax.swing)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now