Search in sources :

Example 36 with ConfigurationWarnings

use of nl.nn.adapterframework.configuration.ConfigurationWarnings in project iaf by ibissource.

the class XmlQuerySender method configure.

@Override
public void configure(ParameterList parameterList) throws ConfigurationException {
    super.configure(parameterList);
    ConfigurationWarnings cw = ConfigurationWarnings.getInstance();
    cw.add("The XmlSender is not released for production. The configuration options for this pipe will change in a non-backward compatible way");
}
Also used : ConfigurationWarnings(nl.nn.adapterframework.configuration.ConfigurationWarnings)

Example 37 with ConfigurationWarnings

use of nl.nn.adapterframework.configuration.ConfigurationWarnings in project iaf by ibissource.

the class DirectQuerySender method configure.

public void configure(boolean trust) throws ConfigurationException {
    super.configure();
    if (!trust) {
        ConfigurationWarnings configWarnings = ConfigurationWarnings.getInstance();
        String msg = "The class [" + getClass().getName() + "] is used one or more times. Please change to [" + FixedQuerySender.class.getName() + "] for better security";
        configWarnings.add(log, msg, true);
    }
}
Also used : ConfigurationWarnings(nl.nn.adapterframework.configuration.ConfigurationWarnings)

Example 38 with ConfigurationWarnings

use of nl.nn.adapterframework.configuration.ConfigurationWarnings in project iaf by ibissource.

the class StreamTransformerPipe method registerChild.

/**
 * register a uniquely named manager.
 * @param manager
 * @throws Exception
 * @deprecated please use registerManager
 */
public void registerChild(IRecordHandlerManager manager) throws Exception {
    ConfigurationWarnings configWarnings = ConfigurationWarnings.getInstance();
    String msg = "configuration using element 'child' is deprecated. Please use element 'manager'";
    configWarnings.add(log, msg);
    registerManager(manager);
}
Also used : ConfigurationWarnings(nl.nn.adapterframework.configuration.ConfigurationWarnings)

Example 39 with ConfigurationWarnings

use of nl.nn.adapterframework.configuration.ConfigurationWarnings in project iaf by ibissource.

the class StreamTransformerPipe method registerChild.

/**
 * register a uniquely named result manager.
 * @param handler
 * @throws Exception
 * @deprecated Please use registerResultHandler()
 */
public void registerChild(IResultHandler handler) throws Exception {
    ConfigurationWarnings configWarnings = ConfigurationWarnings.getInstance();
    String msg = "configuration using element 'child' is deprecated. Please use element 'resultHandler'";
    configWarnings.add(log, msg);
    registerResultHandler(handler);
}
Also used : ConfigurationWarnings(nl.nn.adapterframework.configuration.ConfigurationWarnings)

Example 40 with ConfigurationWarnings

use of nl.nn.adapterframework.configuration.ConfigurationWarnings in project iaf by ibissource.

the class StreamTransformerPipe method registerChild.

/**
 * register a flow element that contains the handlers for a specific record type (key)
 * @param flowEl
 * @throws Exception
 * @deprecated please use manager.addFlow()
 */
public void registerChild(RecordHandlingFlow flowEl) throws Exception {
    ConfigurationWarnings configWarnings = ConfigurationWarnings.getInstance();
    String msg = "configuration using element 'child' is deprecated. Please use element 'flow' nested in element 'manager'";
    configWarnings.add(log, msg);
    IRecordHandlerManager manager = (IRecordHandlerManager) registeredManagers.get(flowEl.getRecordHandlerManagerRef());
    if (manager == null) {
        throw new ConfigurationException("RecordHandlerManager [" + flowEl.getRecordHandlerManagerRef() + "] not found. Manager must be defined before the flows it contains");
    }
    // register the flow with the manager
    manager.addHandler(flowEl);
}
Also used : ConfigurationWarnings(nl.nn.adapterframework.configuration.ConfigurationWarnings) ConfigurationException(nl.nn.adapterframework.configuration.ConfigurationException)

Aggregations

ConfigurationWarnings (nl.nn.adapterframework.configuration.ConfigurationWarnings)58 ConfigurationException (nl.nn.adapterframework.configuration.ConfigurationException)16 TransformerConfigurationException (javax.xml.transform.TransformerConfigurationException)5 ArrayList (java.util.ArrayList)4 ITransactionalStorage (nl.nn.adapterframework.core.ITransactionalStorage)3 PipeForward (nl.nn.adapterframework.core.PipeForward)3 ReceiverBase (nl.nn.adapterframework.receivers.ReceiverBase)3 URL (java.net.URL)2 BaseConfigurationWarnings (nl.nn.adapterframework.configuration.BaseConfigurationWarnings)2 Configuration (nl.nn.adapterframework.configuration.Configuration)2 HasPhysicalDestination (nl.nn.adapterframework.core.HasPhysicalDestination)2 ISender (nl.nn.adapterframework.core.ISender)2 EsbSoapWrapperPipe (nl.nn.adapterframework.extensions.esb.EsbSoapWrapperPipe)2 IOException (java.io.IOException)1 UnsupportedEncodingException (java.io.UnsupportedEncodingException)1 Connection (java.sql.Connection)1 DatabaseMetaData (java.sql.DatabaseMetaData)1 SQLException (java.sql.SQLException)1 HashMap (java.util.HashMap)1 LinkedHashMap (java.util.LinkedHashMap)1