/** * Add the specified properties. * @param descriptorProperties the metadata properties to add */ public void addProperties(final PropertiesMetaData descriptorProperties) { if (descriptorProperties != null) { for (PropertyMetaData descriptorProperty : descriptorProperties) { this.properties.put(descriptorProperty.getName(), descriptorProperty.getValue()); } } }
private void configure() { String protocol = metaData.getTransportProtocol(); if (protocol == null) { protocol = metaData.getStoreProtocol(); } if (protocol == null) { protocol = "smtp"; } properties.put(getHostKey(protocol), metaData.getHost()); if (metaData.getFrom() != null) { properties.put(getPropKey(protocol, "from"), metaData.getFrom()); } if (metaData.getProperties() != null) { for (PropertyMetaData prop : metaData.getProperties()) { properties.put(prop.getKey(), prop.getValue()); } } if (metaData.getUser() != null) { authenticator = new PasswordAuthentication(metaData.getUser(), metaData.getPassword()); } }
@Override public String toString() { StringBuilder tmp = new StringBuilder("{name="); tmp.append(super.getName()); tmp.append(",value="); tmp.append(getValue()); tmp.append('}'); return tmp.toString(); } }
/** * Add the specified properties. * @param descriptorProperties the metadata properties to add */ public void addProperties(final PropertiesMetaData descriptorProperties) { if (descriptorProperties != null) { for (PropertyMetaData descriptorProperty : descriptorProperties) { this.properties.put(descriptorProperty.getName(), descriptorProperty.getValue()); } } }
/** * Add the specified properties. * @param descriptorProperties the metadata properties to add */ public void addProperties(final PropertiesMetaData descriptorProperties) { if (descriptorProperties != null) { for (PropertyMetaData descriptorProperty : descriptorProperties) { this.properties.put(descriptorProperty.getName(), descriptorProperty.getValue()); } } }
if (properties != null) { for (PropertyMetaData prop : properties) { map.put(prop.getKey(), prop.getValue());
if (properties != null) { for (PropertyMetaData prop : properties) { map.put(prop.getKey(), prop.getValue());
connectionProp = new DataSourceConnectionPropertyMetaData(); connectionProp.setName(pmd.getName()); connectionProp.setValue(pmd.getValue()); connectionProps.add(connectionProp);
for(int i = 0; i < properties.length; ++i) { final PropertyMetaData prop = it.next(); properties[i] = prop.getName() + "=" + prop.getValue();