Examples of CaseInsensitiveMap


Examples of org.apache.camel.util.CaseInsensitiveMap

    public void setHeaders(Map<String, Object> headers) {
        if (headers instanceof CaseInsensitiveMap) {
            this.headers = headers;
        } else {
            // wrap it in a case insensitive map
            this.headers = new CaseInsensitiveMap(headers);
        }
    }
View Full Code Here

Examples of org.apache.camel.util.CaseInsensitiveMap

     *
     * @return return a newly constructed Map possibly containing headers from
     *         the underlying inbound transport
     */
    protected Map<String, Object> createHeaders() {
        Map<String, Object> map = new CaseInsensitiveMap();
        populateInitialHeaders(map);
        return map;
    }
View Full Code Here

Examples of org.apache.camel.util.CaseInsensitiveMap

        Set<Map.Entry<String, String>> out = CollectionConverter.toSet(map);
        assertEquals(1, out.size());
    }

    public void testToHashMap() {
        Map<String, Object> map = new CaseInsensitiveMap();
        map.put("foo", "bar");

        Map<String, Object> out = CollectionConverter.toHashMap(map);
        assertEquals(1, out.size());
    }
View Full Code Here

Examples of org.apache.camel.util.CaseInsensitiveMap

        Map<String, Object> out = CollectionConverter.toHashMap(map);
        assertEquals(1, out.size());
    }

    public void testToHashtable() {
        Map<String, Object> map = new CaseInsensitiveMap();
        map.put("foo", "bar");

        Map<String, Object> out = CollectionConverter.toHashtable(map);
        assertEquals(1, out.size());
    }
View Full Code Here

Examples of org.apache.commons.collections.map.CaseInsensitiveMap

public class CaseInsensitiveMapTransformer {

  public Object transform(Object object) {
    @SuppressWarnings("unchecked")
    Map<String, ?> m = (Map<String, ?>) object;
    return new CaseInsensitiveMap(m);
  }
View Full Code Here

Examples of org.apache.commons.collections.map.CaseInsensitiveMap

     */
    private void addIssueLinkTemplate( String system, String issueLinkTemplate )
    {
        if ( caseInsensitiveIssueLinkTemplatePerSystem == null )
        {
            caseInsensitiveIssueLinkTemplatePerSystem = new CaseInsensitiveMap();
        }
        if ( !caseInsensitiveIssueLinkTemplatePerSystem.containsKey( system ) )
        {
            caseInsensitiveIssueLinkTemplatePerSystem.put( system, issueLinkTemplate );
        }
View Full Code Here

Examples of org.apache.commons.collections.map.CaseInsensitiveMap

        // Create a case insensitive version of issueLinkTemplatePerSystem
        // We need something case insensitive to maintain backward compatibility
        if ( issueLinkTemplatePerSystem == null )
        {
            caseInsensitiveIssueLinkTemplatePerSystem = new CaseInsensitiveMap();
        }
        else
        {
            caseInsensitiveIssueLinkTemplatePerSystem = new CaseInsensitiveMap( issueLinkTemplatePerSystem );
        }

        // Set good default values for issue management systems here, but only
        // if they have not been configured already by the user
        addIssueLinkTemplate( ChangesReportGenerator.DEFAULT_ISSUE_SYSTEM_KEY, issueLinkTemplate );
View Full Code Here

Examples of org.apache.commons.collections.map.CaseInsensitiveMap

     * Initializes an instance of this class.
     */
    @SuppressWarnings("unchecked")
    public TemplatePackageRegistry() {
      super();
      actions = new CaseInsensitiveMap();
      backgroundActions = new CaseInsensitiveMap();
    }
View Full Code Here

Examples of org.apache.commons.collections.map.CaseInsensitiveMap

     */
    @Override
    public void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException {
        if ("table".equals(name)) {
            this.currentColumns = new LinkedHashMap<String, Column>();
            this.currentColumnTypes = new CaseInsensitiveMap();
        }
        else if ("index".equals(name)) {
            this.currentIndex = new Index();
            this.currentIndex.setTable(this.currentTable);
        }
View Full Code Here

Examples of org.apache.commons.collections.map.CaseInsensitiveMap

        {
            throw new IllegalArgumentException(
                    CoreMessages.propertiesNotSet("message").toString());
        }

        properties = new CaseInsensitiveMap/*<String, Object>*/();
        requestSessionHandler.retrieveSessionInfoFromMessage(message, this);
        id = getProperty(requestSessionHandler.getSessionIDKey());
        if (id == null)
        {
            id = UUID.getUUID();
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.