Package org.jwall.web.http

Examples of org.jwall.web.http.HttpHeader


        partialHeader.append( HttpHeader.CRLF );

        //
        // an empty line signals the end of a http-header
        //
        HttpHeader head = null;
       
        try {
            head = new HttpHeader( partialHeader.toString() );
        } catch (Exception e){
            //e.printStackTrace();
            log.error(this + " Exception: " + e.getMessage() );
            log.error(this + " PartialHeader: "+partialHeader);
        }

        // if this header signals a request-body then we
        // switch into the READ_BODY state
        //
        if( head.getContentLength() > 0 )
            state = STATE_READING_BODY;
       
        partialHeader = new StringBuffer();
        log.debug("Completed reading the current header, leaving HttpRequestStream.readHeader()");
        touch();
View Full Code Here


            else {
                reqNum++;
                return new HttpRequest( header, buf.array() );
            }
        } else {
            HttpHeader hd = header;
            header = null;
            state = STATE_READING_HEADER;
            reqNum++;
            return new HttpRequest( hd, new byte[0] );
        }
View Full Code Here

TOP

Related Classes of org.jwall.web.http.HttpHeader

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.