| | |
| | | package de.micromata.borgbutler.server; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonProperty; |
| | | import de.micromata.borgbutler.cache.ButlerCache; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.micromata.borgbutler.config.Configuration; |
| | | import org.micromata.borgbutler.config.ConfigurationHandler; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | |
| | |
| | | |
| | | private int port = WEBSERVER_PORT_DEFAULT; |
| | | private boolean webDevelopmentMode = WEB_DEVELOPMENT_MODE_PREF_DEFAULT; |
| | | @JsonProperty |
| | | public String getCacheDir() { |
| | | return ButlerCache.getInstance().getCacheDir().getAbsolutePath(); |
| | | } |
| | | |
| | | public static ServerConfiguration get() { |
| | | return (ServerConfiguration)ConfigurationHandler.getConfiguration(); |