org.zodiac.sdk.nio.http.ApplicationProtocol Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zodiac-sdk-nio Show documentation
Show all versions of zodiac-sdk-nio Show documentation
Zodiac SDK NIO2(New Non-Blocking IO)
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;
}