package com.intrbiz.bergamot.worker.config; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; import com.intrbiz.bergamot.config.EngineCfg; import com.intrbiz.bergamot.config.ExecutorCfg; import com.intrbiz.bergamot.config.WorkerCfg; import com.intrbiz.bergamot.worker.engine.http.CertificateExecutor; import com.intrbiz.bergamot.worker.engine.http.HTTPEngine; import com.intrbiz.bergamot.worker.engine.http.HTTPExecutor; import com.intrbiz.bergamot.worker.engine.http.ScriptedHTTPExecutor; @XmlType(name = "worker") @XmlRootElement(name = "worker") public class HTTPWorkerCfg extends WorkerCfg { private static final long serialVersionUID = 1L; public HTTPWorkerCfg() { super(); } @Override public void applyDefaults() { // add our default engines to avoid needing to configure them this.getEngines().add(new EngineCfg(HTTPEngine.class, new ExecutorCfg(HTTPExecutor.class), new ExecutorCfg(CertificateExecutor.class), new ExecutorCfg(ScriptedHTTPExecutor.class))); // apply defaults from super class super.applyDefaults(); } }