mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-19 05:52:11 +01:00
rename scm-server-util to scm-server-api and added scm-server-jetty
This commit is contained in:
152
scm-server-api/src/main/java/sonia/scm/server/ServerConfig.java
Normal file
152
scm-server-api/src/main/java/sonia/scm/server/ServerConfig.java
Normal file
@@ -0,0 +1,152 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
package sonia.scm.server;
|
||||
|
||||
//~--- non-JDK imports --------------------------------------------------------
|
||||
|
||||
import sonia.scm.cli.Argument;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Sebastian Sdorra
|
||||
*/
|
||||
public class ServerConfig
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructs ...
|
||||
*
|
||||
*/
|
||||
public ServerConfig() {}
|
||||
|
||||
//~--- get methods ----------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getContextPath()
|
||||
{
|
||||
return contextPath;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public Integer getPort()
|
||||
{
|
||||
return port;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getResourcePath()
|
||||
{
|
||||
return resourcePath;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public Boolean getShowHelp()
|
||||
{
|
||||
return showHelp;
|
||||
}
|
||||
|
||||
//~--- set methods ----------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @param contextPath
|
||||
*/
|
||||
public void setContextPath(String contextPath)
|
||||
{
|
||||
this.contextPath = contextPath;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @param port
|
||||
*/
|
||||
public void setPort(Integer port)
|
||||
{
|
||||
this.port = port;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @param resourcePath
|
||||
*/
|
||||
public void setResourcePath(String resourcePath)
|
||||
{
|
||||
this.resourcePath = resourcePath;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @param showHelp
|
||||
*/
|
||||
public void setShowHelp(Boolean showHelp)
|
||||
{
|
||||
this.showHelp = showHelp;
|
||||
}
|
||||
|
||||
//~--- fields ---------------------------------------------------------------
|
||||
|
||||
/** Field description */
|
||||
@Argument(
|
||||
value = "c",
|
||||
longName = "context-path",
|
||||
description = "The Context-Path of the Jab-WebApp"
|
||||
)
|
||||
private String contextPath = "/";
|
||||
|
||||
/** Field description */
|
||||
@Argument(
|
||||
value = "p",
|
||||
longName = "port",
|
||||
description = "The port for the listener"
|
||||
)
|
||||
private Integer port = Integer.valueOf(8080);
|
||||
|
||||
/** Field description */
|
||||
@Argument(
|
||||
value = "r",
|
||||
longName = "resource-path",
|
||||
description = "Path to the server resource directory"
|
||||
)
|
||||
private String resourcePath;
|
||||
|
||||
/** Field description */
|
||||
@Argument(
|
||||
value = "h",
|
||||
longName = "help",
|
||||
description = "Shows this help"
|
||||
)
|
||||
private Boolean showHelp = Boolean.FALSE;
|
||||
}
|
||||
Reference in New Issue
Block a user