Package org.wicketstuff.wicket.servlet3.auth

Examples of org.wicketstuff.wicket.servlet3.auth.ServletContainerAuthenticatedWebSession


    if (authPage != null)
    {
      final MountPath mp = authPage.getAnnotation(MountPath.class);
      if (mp == null)
      {
        final SecureAutoMount annot = getClass().getAnnotation(SecureAutoMount.class);
        String root = annot.defaultRoot().trim();
        if (!root.isEmpty() && !root.endsWith("/"))
        {
          root = root + "/";
        }
        String mime = annot.defaultMimeExtension().trim();
        if (!mime.isEmpty() && !mime.startsWith("."))
        {
          mime = "." + mime;
        }
        final String loginPagePath = root + "login" + mime;
View Full Code Here


  }

  @Override
  protected String getDefaultRootPath(AutoMountContext context, TypeElement elem)
  {
    SecureAutoMount auto = context.getAppAnnotation(SecureAutoMount.class);
    if (auto == null)
    {
      return "";
    }
    if (isSecureElement(elem))
    {
      return auto.secureRoot().replaceAll("^/+|/+$", "");
    } else
    {
      return auto.defaultRoot().replaceAll("^/+|/+$", "");
    }
  }
View Full Code Here

  @Override
  protected void setPackagesToScan(AutoMountContext context)
  {
    final String[] packagesToScan;
    SecureAutoMount annotation = context.getAppAnnotation(SecureAutoMount.class);
    if (annotation != null)
    {
      packagesToScan = annotation.packagesToScan();
    } else
    {
      packagesToScan = new String[]{};
    }
    if (packagesToScan.length == 0)
View Full Code Here

  @Override
  protected String getDefaultMimeExtension(AutoMountContext context, TypeElement elem)
  {
    String mimeExtension = "";
    SecureAutoMount annotation = context.getAppAnnotation(SecureAutoMount.class);
    if (annotation != null)
    {
      if (isSecureElement(elem))
      {
        mimeExtension = annotation.secureMimeExtension();
      } else
      {
        mimeExtension = annotation.defaultMimeExtension();
      }
    }
    if (!mimeExtension.isEmpty() && !mimeExtension.startsWith("."))
    {
      mimeExtension = "." + mimeExtension;
View Full Code Here

TOP

Related Classes of org.wicketstuff.wicket.servlet3.auth.ServletContainerAuthenticatedWebSession

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.