Logo Search packages:      
Sourcecode: jaminid version File versions  Download package

void com::prolixtech::jaminid::Request::setMethodLine ( String  methodLine  )  [inline]

Parameters:
methodLine the method line of the request

Definition at line 135 of file Request.java.

References processParamString().

Referenced by addRequestLines().

                                                 {
        try {
            String firstLine = methodLine.trim();
            this.HTTPMethod = firstLine.substring(0, firstLine.indexOf(" "));
            this.requestURI = (firstLine.substring(firstLine.indexOf(" "),
                    firstLine.lastIndexOf("HTTP/"))).trim();

            int splitLocation = this.requestURI.indexOf("?");
            if (splitLocation > 0) {
                this.paramString = requestURI.substring(splitLocation + 1);
                // (paramString);
                this.requestLocation = requestURI.substring(0, splitLocation);
                // (this.requestLocation);
                this.processParamString(paramString);

            } else {
                this.requestLocation = this.requestURI;
            }

        } catch (Exception e) {
            this.isbad = true;
            this.currentStatus = Request.STATUS_MALFORMED;
            return;
        }
    }


Generated by  Doxygen 1.6.0   Back to index