All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.albertus82.net.httpserver.AbstractStaticHandler Maven / Gradle / Ivy

Go to download

Java SWT/JFace Utility Library including a Preferences Framework, Lightweight HTTP Server and macOS support.

There is a newer version: 20.1.0
Show newest version
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