io.higgs.http.server.protocol.HttpDetectorFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-s3 Show documentation
Show all versions of http-s3 Show documentation
Higgs HTTP S3 (Single Site Server)
package io.higgs.http.server.protocol;
import io.higgs.core.ProtocolDetector;
import io.higgs.core.ProtocolDetectorFactory;
/**
* @author Courtney Robinson
*/
public class HttpDetectorFactory implements ProtocolDetectorFactory {
private final HttpProtocolConfiguration config;
public HttpDetectorFactory(HttpProtocolConfiguration config) {
this.config = config;
}
@Override
public ProtocolDetector newProtocolDetector() {
return new HttpDetector(config);
}
@Override
public int priority() {
return 0;
}
@Override
public int compareTo(ProtocolDetectorFactory that) {
return that.priority() - this.priority();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy