public int getSessionTimeout() { return sessionTimeout; }
@Override
protected Options getOptions() {
final Options options = new Options();
options.addOption(
OptionBuilder
.withLongOpt(PORT_OPTION_VALUE)
.withDescription("The port to run the HTTP connector on")
.withArgName("port_number")
.hasArg()
.create()
);
options.addOption(
OptionBuilder
.withLongOpt(HTTPS_PORT_OPTION_VALUE)
.withDescription("The port to run the HTTPS connector on")
.withArgName("https_port_number")
.hasArg()
.create()
);
options.addOption(
OptionBuilder
.withLongOpt(KEY_STORE_PATH_OPTION_VALUE)
.withDescription("Path to the JKS keystore used for SSL")
.withArgName("key_store_path")
.hasArg()
.isRequired()
.create()
);
options.addOption(
OptionBuilder
.withLongOpt(KEY_STORE_PASSWORD_OPTION_VALUE)
.withDescription("JKS keystore password")
.withArgName("key_store_password")
.hasArg()
.isRequired()
.create()
);
options.addOption(
OptionBuilder
.withLongOpt(TRUST_STORE_PATH_OPTION_VALUE)
.withDescription("Path to the JKS truststore used for SSL")
.withArgName("trust_store_path")
.hasArg()
.create()
);
options.addOption(
OptionBuilder
.withLongOpt(TRUST_STORE_PASSWORD_OPTION_VALUE)
.withDescription("JKS truststore password")
.withArgName("trust_store_password")
.hasArg()
.create()
);
options.addOption(
OptionBuilder
.withLongOpt(REQUIRE_CLIENT_CERT_OPTION_VALUE)
.withDescription("require client certificate")
.create()
);
options.addOption(
OptionBuilder
.withLongOpt(WEB_APP_DIR_OPTION_VALUE)
.withDescription("Path to the webapp directory")
.isRequired()
.hasArg(true)
.create()
);
options.addOption(
OptionBuilder
.withLongOpt(CONTEXT_PATH_OPTION_VALUE)
.withDescription("Context path for the webapp")
.hasArg(true)
.create()
);
options.addOption(
OptionBuilder
.withLongOpt(SESSION_TIMEOUT_OPTION_VALUE)
.withDescription("number of minutes before idle sessions expire")
.hasArg(true)
.create()