Package com.ds.http.processor.util

Examples of com.ds.http.processor.util.LineIterator


    private HttpRequest parseConnection() throws IOException {
        System.out.println("Extract request from connection");
        HttpRequest httpRequest = new HttpRequest();

        String line = connection.readLine();
        LineIterator lineIterator = new LineIterator(line);
        httpRequest.setMethod(HttpMethod.valueOf(lineIterator.next()));
        httpRequest.setURI(lineIterator.next());
        httpRequest.setHttpVersion(lineIterator.next());

        Map<String, String> headers = new HashMap<String, String>();
        String nextLine = "";
        while (!(nextLine = connection.readLine()).equals("")) {
            String values[] = nextLine.split(":", 2);
View Full Code Here

TOP

Related Classes of com.ds.http.processor.util.LineIterator

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.