Examples of addMapping()


Examples of com.sun.appserv.management.util.jmx.AttributeNameMapper.addMapping()

  initStatisticNameMapper()
  {
    super.initStatisticNameMapper();
    final AttributeNameMapper  m  = getStatisticNameMapper();
   
    m.addMapping( "JmsMaxMessagesLoad", "JMSMaxMessagesLoad" );
  }
 
}
View Full Code Here

Examples of com.sun.enterprise.management.offline.OfflineDottedNamesRegistry.addMapping()

  {
      final OfflineDottedNamesRegistry    reg = create();
     
      try
      {
          reg.addMapping( null, "foo", dummySet() );
          assert false : "Expected exception adding null ObjectName";
      }
      catch ( Exception e )
      {
      }
View Full Code Here

Examples of com.sun.xml.rpc.spi.tools.NamespaceMappingRegistryInfo.addMapping()

        for(Iterator iter = mappings.iterator(); iter.hasNext();) {
            Mapping next = (Mapping) iter.next();
            NamespaceMappingInfo namespaceInfo =
                rpcFactory.createNamespaceMappingInfo(next.getNamespaceUri(),
                                                      next.getPackage());
            namespaceRegistry.addMapping(namespaceInfo);
        }
    }

    private NoMetadataModelInfo createNoMetadataModelInfo
        (ServiceReferenceDescriptor serviceRef,
View Full Code Here

Examples of com.sun.xml.tree.SimpleElementFactory.addMapping()

            SAXParser sax = SAXParserFactory.newInstance().newSAXParser();
            Parser parser = (Parser) sax.getParser();
            XmlDocumentBuilder builder = new XmlDocumentBuilder();
            builder.setIgnoringLexicalInfo(false);
            SimpleElementFactory fact = new SimpleElementFactory();
            fact.addMapping(_elementMap, ACSFactory.class.getClassLoader());

            builder.setElementFactory(fact);
           
            parser.setDocumentHandler(builder);
            parser.setEntityResolver(new Resolver());
View Full Code Here

Examples of com.trendrr.strest.server.routing.RouteMatcher.addMapping()

  public void testRoutes() {
   
    RouteMatcher tree = new RouteMatcher();
   
   
    tree.addMapping(new UriMapping("/", HelloWorld.class));
    tree.addMapping(new UriMapping("/test", HelloWorld.class));
    tree.addMapping(new UriMapping("/test/*filenames", HelloWorld.class));
    tree.addMapping(new UriMapping("/test/:id", HelloWorld.class));
    tree.addMapping(new UriMapping("/test/:name/:id", HelloWorld.class));
    tree.addMapping(new UriMapping("/test/idmatch/:id", HelloWorld.class));
View Full Code Here

Examples of com.volantis.mcs.themes.mappers.DefaultKeywordMapper.addMapping()

    protected void initialiseStyleHandlers() {
        super.initialiseStyleHandlers();

        // center and justify are both treated as center which is the default.
        DefaultKeywordMapper alignmentMapper = new DefaultKeywordMapper();
        alignmentMapper.addMapping(TextAlignKeywords.LEFT, "left");
        alignmentMapper.addMapping(TextAlignKeywords.RIGHT, "right");

        horizontalRuleAlignHandler = new ValueHandlerToPropertyAdapter(StylePropertyDetails.TEXT_ALIGN,
                new KeywordValueHandler(alignmentMapper));
View Full Code Here

Examples of com.volantis.mcs.themes.mappers.KeywordMapper.addMapping()

     * @return a KeywordMapper
     */
    private KeywordMapper createKeywordMapper() {
        KeywordMapper mapper = new KeywordMapper(2) {
        };
        mapper.addMapping(0, "keyword_1");
        mapper.addMapping(1, "keyword_2");
        return mapper;
    }

    /**
 
View Full Code Here

Examples of com.volantis.mcs.xdime.initialisation.ElementFactoryMapBuilder.addMapping()

        factoryMock = new ElementFactoryMock("factoryMock", expectations);

        ElementFactoryMapBuilder builder = new ElementFactoryMapBuilder();
        elementType = new ElementType("foo", "bar");
        builder.addMapping(elementType, factoryMock);
        ElementFactoryMap map = builder.buildFactoryMap();

        handler = new XDIMEElementHandler(map);

        contextMock =
View Full Code Here

Examples of io.undertow.servlet.api.ServletInfo.addMapping()

        }
    }

    private ServletInfo getResteasyServlet() {
        final ServletInfo servletInfo = new ServletInfo("Resteasy", HttpServletDispatcher.class);
        servletInfo.addMapping("/*");

        return servletInfo;
    }

    private ListenerInfo getResteasyListener() {
View Full Code Here

Examples of javax.servlet.ServletRegistration.addMapping()

    public void contextInitialized(ServletContextEvent sce) {
        ServletContext sc = sce.getServletContext();
        // Regist servlet
        ServletRegistration sr = sc.addServlet("ClassViewer",
                "org.apache.geronimo.testsuite.servlet3.app.CViewerServlet");
        sr.addMapping("/ClassViewer");

        // Register Filter
        FilterRegistration fr = sc.addFilter("CViewerFilter",
                "org.apache.geronimo.testsuite.servlet3.app.CviewerFilter");
        fr.addMappingForServletNames(EnumSet.of(DispatcherType.REQUEST), true,
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.