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

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

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

import java.util.Arrays;

import org.zodiac.sdk.nio.http.client.ClientEntryPoint;
import org.zodiac.sdk.nio.http.server.ServerEntryPoint;

public class HttpMain {

    public static void main(final String[] args) {
        if (!Arrays.asList(args).isEmpty()) {
            final String command = args[0];

            switch (command) {
                case NioHttpConstants.HTTPC:
                    ClientEntryPoint.entryPoint(args);
                    break;
                case NioHttpConstants.HTTPFS:
                    ServerEntryPoint.entryPoint(args);
                    break;
                default:
                    throw new IllegalArgumentException("Not a valid command.");
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy