Examples of urlPattern()


Examples of com.claudiushauptmann.gwt.multipage.client.MultipageEntryPoint.urlPattern()

        for (JClassType classtype : classes) {
          MultipageEntryPoint mep = classtype
              .getAnnotation(MultipageEntryPoint.class);

          if (mep != null) {
            pw.println("    if (relativePath.matches(\"" + mep.urlPattern()
                + "\")) {");
            pw.println("      if (ep != null) {");
            pw
                .println("        throw new MultipleEntryPointsMatchingException();");
            pw.println("      }");
View Full Code Here

Examples of com.claudiushauptmann.gwt.multipage.client.MultipageEntryPoint.urlPattern()

          if (mep != null) {
            log.info(classtype.getQualifiedSourceName());

            pw.println("    if (relativePath.matches(\""
                + mep.urlPattern() + "\")) {");
            pw.println("      GWT.runAsync(new RunAsyncCallback() {");
            pw
                .println("        public void onFailure(Throwable caught) {");
            pw
                .println("          Window.alert(\"Code download failed\");");
View Full Code Here

Examples of org.gwtmultipage.client.MultipageEntryPoint.urlPattern()

  @Override
  protected String generateMatchCondition(JClassType classType) {
    MultipageEntryPoint annotation = getAnnotation(classType);
    if (annotation != null) {
      return EntryPointFactoryImplGenerator.RELATIVE_PATH_VAR + ".matches(\"" + annotation.urlPattern() + "\")";
    } else {
      throw new RuntimeException(classType.getQualifiedSourceName()
          + " does not have a @MultipageEntryPoint annotation");
    }
  }
View Full Code Here

Examples of org.gwtmultipage.client.MultipageEntryPoint.urlPattern()

  @Override
  protected String generateMatchCondition(JClassType classType) {
    MultipageEntryPoint annotation = getAnnotation(classType);
    if (annotation != null) {
      return EntryPointFactoryImplGenerator.RELATIVE_PATH_VAR + ".matches(\"" + annotation.urlPattern() + "\")";
    } else {
      throw new RuntimeException(classType.getQualifiedSourceName()
          + " does not have a @MultipageEntryPoint annotation");
    }
  }
View Full Code Here

Examples of org.jboss.wsf.spi.annotation.WebContext.urlPattern()

      // #3 For EJB use @WebContext.urlPattern
      if (urlPattern == null)
      {
         Class beanClass = ep.getTargetBeanClass();
         WebContext anWebContext = (WebContext)beanClass.getAnnotation(WebContext.class);
         if (anWebContext != null && anWebContext.urlPattern().length() > 0)
            urlPattern = anWebContext.urlPattern();
      }

      return urlPattern;
   }
View Full Code Here

Examples of org.jboss.wsf.spi.annotation.WebContext.urlPattern()

      if (urlPattern == null)
      {
         Class beanClass = ep.getTargetBeanClass();
         WebContext anWebContext = (WebContext)beanClass.getAnnotation(WebContext.class);
         if (anWebContext != null && anWebContext.urlPattern().length() > 0)
            urlPattern = anWebContext.urlPattern();
      }

      return urlPattern;
   }
View Full Code Here

Examples of org.jboss.wsf.spi.annotation.WebContext.urlPattern()

            sepMetaData.setContextRoot(contextRoot);
         }
      }

      // url-pattern
      if (anWebContext.urlPattern().length() > 0)
      {
         if (isJSEEndpoint)
         {
            log.warn("@WebContext.urlPattern is only valid on EJB endpoints");
         }
View Full Code Here

Examples of org.jboss.wsf.spi.annotation.WebContext.urlPattern()

         {
            log.warn("@WebContext.urlPattern is only valid on EJB endpoints");
         }
         else
         {
            String urlPattern = anWebContext.urlPattern();
            sepMetaData.setURLPattern(urlPattern);
         }
      }

      // auth-method
View Full Code Here

Examples of org.jboss.wsf.spi.annotation.WebContext.urlPattern()

      // #3 For EJB use @WebContext.urlPattern
      if (urlPattern == null)
      {
         Class beanClass = ep.getTargetBeanClass();
         WebContext anWebContext = (WebContext)beanClass.getAnnotation(WebContext.class);
         if (anWebContext != null && anWebContext.urlPattern().length() > 0)
            urlPattern = anWebContext.urlPattern();
      }

      return urlPattern;
   }
View Full Code Here

Examples of org.jboss.wsf.spi.annotation.WebContext.urlPattern()

      if (urlPattern == null)
      {
         Class beanClass = ep.getTargetBeanClass();
         WebContext anWebContext = (WebContext)beanClass.getAnnotation(WebContext.class);
         if (anWebContext != null && anWebContext.urlPattern().length() > 0)
            urlPattern = anWebContext.urlPattern();
      }

      return urlPattern;
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.