Package com.ramforth.webserver.http

Examples of com.ramforth.webserver.http.HttpVersion


            catch (URISyntaxException e) {
                throw new HttpException(HttpStatusCode.STATUS_400_BAD_REQUEST, "URI '" + uriString + "' not valid!");
            }

            if (versionString.compareTo(HttpUtils.httpVersion(1, 0)) == 0) {
                version = new HttpVersion(1, 0);
            } else if (versionString.compareTo(HttpUtils.httpVersion(1, 1)) == 0) {
                version = new HttpVersion(1, 1);
            } else {
                throw new HttpException(HttpStatusCode.STATUS_505_HTTP_VERSION_NOT_SUPPORTED, "Version '" + versionString + "' not supported!");
            }
        } else {
            throw new HttpException(HttpStatusCode.STATUS_400_BAD_REQUEST, "Request line '" + requestLine + "' invalid!");
View Full Code Here

TOP

Related Classes of com.ramforth.webserver.http.HttpVersion

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.