Examples of addEntry()


Examples of org.apache.shale.tiger.managed.config.MapEntriesConfig.addEntry()

        MapEntryConfig config = (MapEntryConfig) digester.pop();
        MapEntriesConfig parent = (MapEntriesConfig) digester.peek();
        MapEntryConfig previous = parent.getEntry(config.getKey());
        if (previous == null) {
            parent.addEntry(config);
        } else {
            merge(config, previous);
        }

    }
View Full Code Here

Examples of org.apache.synapse.TestMessageContextBuilder.addEntry()

    public static MessageContext getTestContext(String bodyText, Map<String,Entry> props) throws Exception {
        TestMessageContextBuilder builder = new TestMessageContextBuilder();
        builder.setBodyFromString(bodyText);
        if (props != null) {
            for (Map.Entry<String,Entry> mapEntry : props.entrySet()) {
                builder.addEntry(mapEntry.getKey(), mapEntry.getValue());
            }
        }
        return builder.build();
    }
View Full Code Here

Examples of org.apache.tomcat.lite.http.MultiMap.addEntry()

            MultiMap mimeHeaders = httpRes.getMimeHeaders();
            MimeHeaders coyoteHeaders = res.getMimeHeaders();
            for (int i = 0; i < coyoteHeaders.size(); i++ ) {
                MessageBytes name = coyoteHeaders.getName(i);
                MessageBytes val = coyoteHeaders.getValue(i);
                Entry entry = mimeHeaders.addEntry(name.toString());
                entry.getValue().set(val.toString());
            }
            String contentType = res.getContentType();
            if (contentType != null) {
                mimeHeaders.addEntry("Content-Type").getValue().set(contentType);
View Full Code Here

Examples of org.apache.wiki.auth.acl.Acl.addEntry()

                AclEntry entry = ix.next();
                acl.removeEntry(entry);
            }
            for (Iterator<AclEntry> ix = entriesToAdd.iterator(); ix.hasNext(); ) {
                AclEntry entry = ix.next();
                acl.addEntry(entry);
            }
        }
        return pageChanged;
    }
View Full Code Here

Examples of org.apache.wink.common.model.synd.SyndFeed.addEntry()

        // set the entries
        for (TestBean test : tests) {
            TestAsset testAsset = new TestAsset(test, true);
            SyndEntry entry = testAsset.getSyndEntry(providers, uriInfo, linkProcessor);
            synd.addEntry(entry);
        }

        synd.setBase(uriInfo.getAbsolutePath().toString());
        linkProcessor.createSystemLinksBuilder().build(synd.getLinks());
        return synd;
View Full Code Here

Examples of org.axsl.ps.Cmap04.addEntry()

        final String encodingName = "internal-"
                + this.ttfFont().getPostscriptName();
        final Cmap04 cmap04 = psServer.makeCmap04(encodingName, segCountX2 / 2);
        for (int i = 0; i < startCount.length; i++) {
            if (rangeOffset[i] == 0) {
                cmap04.addEntry(startCount[i],
                        endCount[i],
                        (char) (startCount[i] + deltas[i]));
            } else {
                final char[] computedIndexes = new char[endCount[i]
                        - startCount[i] + 1];
View Full Code Here

Examples of org.axsl.ps.Cmap12.addEntry()

        for (int i = 0; i < nGroups; i++) {
            final int startCharCode = (int) getReader().readUnsignedInt();
            final int endCharCode = (int) getReader().readUnsignedInt();
            final int startGlyphCode = (int) getReader().readUnsignedInt();
            cmap12.addEntry(startCharCode, endCharCode, startGlyphCode);
        }
        return cmap12;
    }

    /**
 
View Full Code Here

Examples of org.b3log.solo.model.feed.atom.Feed.addEntry()

            final boolean isFullContent = "fullContent".equals(preference.getString(Preference.FEED_OUTPUT_MODE));

            for (int i = 0; i < articles.length(); i++) {
                final JSONObject article = articles.getJSONObject(i);
                final Entry entry = new Entry();
                feed.addEntry(entry);
                final String title = StringEscapeUtils.escapeXml(article.getString(Article.ARTICLE_TITLE));
                entry.setTitle(title);
                final String summary = isFullContent ? StringEscapeUtils.escapeXml(article.getString(Article.ARTICLE_CONTENT))
                                       : StringEscapeUtils.escapeXml(article.optString(Article.ARTICLE_ABSTRACT));
                entry.setSummary(summary);
View Full Code Here

Examples of org.drools.compiler.lang.dsl.DefaultDSLMapping.addEntry()

       
    private DefaultExpander makeExpander( DSLMappingEntry... entries ){
        DefaultExpander expander = new DefaultExpander();
        DefaultDSLMapping mapping = new DefaultDSLMapping();
        for( DSLMappingEntry entry: entries ){
            mapping.addEntry( entry );
        }
        List<String> options = new ArrayList<String>();
        options.add("result");
        options.add("when");
        options.add("steps");
View Full Code Here

Examples of org.eclipse.jgit.lib.Tree.addEntry()

  @Test
  public void test021_createTreeTag() throws IOException {
    final ObjectId emptyId = insertEmptyBlob();
    final Tree almostEmptyTree = new Tree(db);
    almostEmptyTree.addEntry(new FileTreeEntry(almostEmptyTree, emptyId,
        "empty".getBytes(), false));
    final ObjectId almostEmptyTreeId = insertTree(almostEmptyTree);
    final TagBuilder t = new TagBuilder();
    t.setObjectId(almostEmptyTreeId, Constants.OBJ_TREE);
    t.setTag("test021");
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.