io.github.albertus82.net.httpserver.AbstractStaticHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jface-utils Show documentation
Show all versions of jface-utils Show documentation
Java SWT/JFace Utility Library including a Preferences Framework, Lightweight HTTP Server and macOS support.
package io.github.albertus82.net.httpserver;
import io.github.albertus82.net.httpserver.config.IHttpServerConfig;
public abstract class AbstractStaticHandler extends BaseHttpHandler {
private String basePath;
private String cacheControl;
private boolean attachment;
protected AbstractStaticHandler(final IHttpServerConfig config) {
super(config);
}
public String getBasePath() {
return basePath;
}
public void setBasePath(final String basePath) {
this.basePath = normalizeBasePath(basePath);
}
public String getCacheControl() {
return cacheControl;
}
public void setCacheControl(final String cacheControl) {
this.cacheControl = cacheControl;
}
public boolean isAttachment() {
return attachment;
}
public void setAttachment(final boolean attachment) {
this.attachment = attachment;
}
protected abstract String normalizeBasePath(String basePath);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy