package org.wildfly.swarm.undertow;

import org.wildfly.swarm.config.undertow.Undertow;
import org.wildfly.swarm.container.Container;
import org.wildfly.swarm.container.Fraction;
import org.wildfly.swarm.container.SocketBinding;

/**
 * @author Bob McWhirter
 */
public class UndertowFraction extends Undertow<UndertowFraction> implements Fraction {

    public UndertowFraction() {
    }

    @Override
    public void initialize(Container.InitContext initContext) {
        initContext.socketBinding(
                new SocketBinding("http")
                        .port("${jboss.http.port:8080}"));
    }
}

@@ -597,16 +597,154 @@
 80%7D%22));%0A
+        initContext.socketBinding(%0A                new SocketBinding(%22https%22)%0A                        .port(%22$%7Bjboss.https.port:8443%7D%22));%0A
     %7D%0A%7D%0A

Add https binding.