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

org.zodiac.sdk.nio.http.ApplicationProtocol Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
package org.zodiac.sdk.nio.http;

import java.io.IOException;

import org.zodiac.sdk.nio.http.common.HTTPRequest;
import org.zodiac.sdk.nio.http.common.HTTPResponse;

public interface ApplicationProtocol {
    enum Type {
        FILESERVER;

        public static Type of(final String name) {
            switch (name) {
                case "FILESERVER":
                case "fileserver":
                case "FS":
                case "fs":
                default:
                    return FILESERVER;
            }
        }
    }

    interface Response extends ApplicationProtocol {
        HTTPResponse response(HTTPRequest request) throws IOException;
    }

    ApplicationProtocol copy() throws IllegalAccessException, IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy