org.apache.camel.component.iec60870.server.ServerEndpointConfigurer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camel-iec60870 Show documentation
Show all versions of camel-iec60870 Show documentation
Camel IEC 60870-5-104 support
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.iec60870.server;
import javax.annotation.processing.Generated;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
import org.apache.camel.spi.PropertyConfigurerGetter;
import org.apache.camel.spi.ConfigurerStrategy;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.util.CaseInsensitiveMap;
import org.apache.camel.support.component.PropertyConfigurerSupport;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.EndpointSchemaGeneratorMojo")
@SuppressWarnings("unchecked")
public class ServerEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
ServerEndpoint target = (ServerEndpoint) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "acknowledgewindow":
case "acknowledgeWindow": target.getConnectionOptions().setAcknowledgeWindow(property(camelContext, short.class, value)); return true;
case "adsuaddresstype":
case "adsuAddressType": target.getConnectionOptions().setAdsuAddressType(property(camelContext, org.eclipse.neoscada.protocol.iec60870.ASDUAddressType.class, value)); return true;
case "bridgeerrorhandler":
case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
case "causeoftransmissiontype":
case "causeOfTransmissionType": target.getConnectionOptions().setCauseOfTransmissionType(property(camelContext, org.eclipse.neoscada.protocol.iec60870.CauseOfTransmissionType.class, value)); return true;
case "causesourceaddress":
case "causeSourceAddress": target.getConnectionOptions().setCauseSourceAddress(property(camelContext, byte.class, value)); return true;
case "connectionid":
case "connectionId": target.setConnectionId(property(camelContext, java.lang.String.class, value)); return true;
case "connectiontimeout":
case "connectionTimeout": target.getConnectionOptions().setConnectionTimeout(property(camelContext, int.class, value)); return true;
case "datamoduleoptions":
case "dataModuleOptions": target.getConnectionOptions().setDataModuleOptions(property(camelContext, org.eclipse.neoscada.protocol.iec60870.client.data.DataModuleOptions.class, value)); return true;
case "exceptionhandler":
case "exceptionHandler": target.setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
case "exchangepattern":
case "exchangePattern": target.setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
case "filternonexecute":
case "filterNonExecute": target.setFilterNonExecute(property(camelContext, boolean.class, value)); return true;
case "ignorebackgroundscan":
case "ignoreBackgroundScan": target.getConnectionOptions().setIgnoreBackgroundScan(property(camelContext, boolean.class, value)); return true;
case "ignoredaylightsavingtime":
case "ignoreDaylightSavingTime": target.getConnectionOptions().setIgnoreDaylightSavingTime(property(camelContext, boolean.class, value)); return true;
case "informationobjectaddresstype":
case "informationObjectAddressType": target.getConnectionOptions().setInformationObjectAddressType(property(camelContext, org.eclipse.neoscada.protocol.iec60870.InformationObjectAddressType.class, value)); return true;
case "lazystartproducer":
case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "maxunacknowledged":
case "maxUnacknowledged": target.getConnectionOptions().setMaxUnacknowledged(property(camelContext, short.class, value)); return true;
case "protocoloptions":
case "protocolOptions": target.getConnectionOptions().setProtocolOptions(property(camelContext, org.eclipse.neoscada.protocol.iec60870.ProtocolOptions.class, value)); return true;
case "timezone":
case "timeZone": target.getConnectionOptions().setTimeZone(property(camelContext, java.util.TimeZone.class, value)); return true;
case "timeout1": target.getConnectionOptions().setTimeout1(property(camelContext, int.class, value)); return true;
case "timeout2": target.getConnectionOptions().setTimeout2(property(camelContext, int.class, value)); return true;
case "timeout3": target.getConnectionOptions().setTimeout3(property(camelContext, int.class, value)); return true;
default: return false;
}
}
@Override
public Class> getOptionType(String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
case "acknowledgewindow":
case "acknowledgeWindow": return short.class;
case "adsuaddresstype":
case "adsuAddressType": return org.eclipse.neoscada.protocol.iec60870.ASDUAddressType.class;
case "bridgeerrorhandler":
case "bridgeErrorHandler": return boolean.class;
case "causeoftransmissiontype":
case "causeOfTransmissionType": return org.eclipse.neoscada.protocol.iec60870.CauseOfTransmissionType.class;
case "causesourceaddress":
case "causeSourceAddress": return byte.class;
case "connectionid":
case "connectionId": return java.lang.String.class;
case "connectiontimeout":
case "connectionTimeout": return int.class;
case "datamoduleoptions":
case "dataModuleOptions": return org.eclipse.neoscada.protocol.iec60870.client.data.DataModuleOptions.class;
case "exceptionhandler":
case "exceptionHandler": return org.apache.camel.spi.ExceptionHandler.class;
case "exchangepattern":
case "exchangePattern": return org.apache.camel.ExchangePattern.class;
case "filternonexecute":
case "filterNonExecute": return boolean.class;
case "ignorebackgroundscan":
case "ignoreBackgroundScan": return boolean.class;
case "ignoredaylightsavingtime":
case "ignoreDaylightSavingTime": return boolean.class;
case "informationobjectaddresstype":
case "informationObjectAddressType": return org.eclipse.neoscada.protocol.iec60870.InformationObjectAddressType.class;
case "lazystartproducer":
case "lazyStartProducer": return boolean.class;
case "maxunacknowledged":
case "maxUnacknowledged": return short.class;
case "protocoloptions":
case "protocolOptions": return org.eclipse.neoscada.protocol.iec60870.ProtocolOptions.class;
case "timezone":
case "timeZone": return java.util.TimeZone.class;
case "timeout1": return int.class;
case "timeout2": return int.class;
case "timeout3": return int.class;
default: return null;
}
}
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
ServerEndpoint target = (ServerEndpoint) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "acknowledgewindow":
case "acknowledgeWindow": return target.getConnectionOptions().getAcknowledgeWindow();
case "adsuaddresstype":
case "adsuAddressType": return target.getConnectionOptions().getAdsuAddressType();
case "bridgeerrorhandler":
case "bridgeErrorHandler": return target.isBridgeErrorHandler();
case "causeoftransmissiontype":
case "causeOfTransmissionType": return target.getConnectionOptions().getCauseOfTransmissionType();
case "causesourceaddress":
case "causeSourceAddress": return target.getConnectionOptions().getCauseSourceAddress();
case "connectionid":
case "connectionId": return target.getConnectionId();
case "connectiontimeout":
case "connectionTimeout": return target.getConnectionOptions().getConnectionTimeout();
case "datamoduleoptions":
case "dataModuleOptions": return target.getConnectionOptions().getDataModuleOptions();
case "exceptionhandler":
case "exceptionHandler": return target.getExceptionHandler();
case "exchangepattern":
case "exchangePattern": return target.getExchangePattern();
case "filternonexecute":
case "filterNonExecute": return target.isFilterNonExecute();
case "ignorebackgroundscan":
case "ignoreBackgroundScan": return target.getConnectionOptions().isIgnoreBackgroundScan();
case "ignoredaylightsavingtime":
case "ignoreDaylightSavingTime": return target.getConnectionOptions().isIgnoreDaylightSavingTime();
case "informationobjectaddresstype":
case "informationObjectAddressType": return target.getConnectionOptions().getInformationObjectAddressType();
case "lazystartproducer":
case "lazyStartProducer": return target.isLazyStartProducer();
case "maxunacknowledged":
case "maxUnacknowledged": return target.getConnectionOptions().getMaxUnacknowledged();
case "protocoloptions":
case "protocolOptions": return target.getConnectionOptions().getProtocolOptions();
case "timezone":
case "timeZone": return target.getConnectionOptions().getTimeZone();
case "timeout1": return target.getConnectionOptions().getTimeout1();
case "timeout2": return target.getConnectionOptions().getTimeout2();
case "timeout3": return target.getConnectionOptions().getTimeout3();
default: return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy