org.safehaus.jettyjam.https.HttpsAppJettyRunner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jettyjam-https Show documentation
Show all versions of jettyjam-https Show documentation
A simple https servlet that runs in an embedded jetty instance from an
executable jar file without requiring the webapp to be exploded.
package org.safehaus.jettyjam.https;
import org.safehaus.jettyjam.utils.HttpConnector;
import org.safehaus.jettyjam.utils.HttpsConnector;
import org.safehaus.jettyjam.utils.JettyConnectors;
import org.safehaus.jettyjam.utils.JettyContext;
import org.safehaus.jettyjam.utils.JettyRunner;
import org.safehaus.jettyjam.utils.ServletMapping;
/**
* A simple JettyLauncher.
*/
@JettyContext(
servletMappings = { @ServletMapping( servlet = HelloWorldServlet.class, spec = "/*" ) },
filterMappings = {}
)
@JettyConnectors(
defaultId = "https",
httpConnectors = { @HttpConnector( id = "http" ) },
httpsConnectors = { @HttpsConnector( id = "https" ) }
)
public class HttpsAppJettyRunner extends JettyRunner {
public HttpsAppJettyRunner() {
super( "TestApp" );
}
@Override
public String getSubClass() {
return getClass().getName();
}
public static void main( String [] args ) throws Exception {
HttpsAppJettyRunner launcher = new HttpsAppJettyRunner();
launcher.start();
}
}