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

io.github.mike10004.vhs.ParsedEntry Maven / Gradle / Ivy

package io.github.mike10004.vhs;

import io.github.mike10004.vhs.harbridge.ParsedRequest;

import java.io.IOException;
import java.util.Objects;

public class ParsedEntry {

    public final ParsedRequest request;

    public final HttpRespondableCreator responseCreator;

    public ParsedEntry(ParsedRequest request, HttpRespondableCreator responseCreator) {
        this.responseCreator = Objects.requireNonNull(responseCreator);
        this.request = Objects.requireNonNull(request);
    }

    public interface HttpRespondableCreator {
        HttpRespondable createRespondable(ParsedRequest request) throws IOException;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy