/** * This will parse URI target from the first line of the header * and store the parsed string internally. The target token is * used to create an <code>Address</code> object which provides * all the details of the target including the query part. */ private void target() { Token token = new Token(array, pos, 0); while(pos < count){ if(white(array[pos])){ pos++; break; } token.size++; pos++; } target = token.toString(); }
/** * This will parse HTTP method from the first line of the header * and store the parsed string internally. The method is used to * determine what action to take with the request, it also acts * as a means to determine the semantics of the request. */ private void method() { Token token = new Token(array, pos, 0); while(pos < count){ if(white(array[pos])){ pos++; break; } token.size++; pos++; } method = token.toString(); }
/** * This will parse URI target from the first line of the header * and store the parsed string internally. The target token is * used to create an <code>Address</code> object which provides * all the details of the target including the query part. */ private void target() { Token token = new Token(array, pos, 0); while(pos < count){ if(white(array[pos])){ pos++; break; } token.size++; pos++; } target = token.toString(); }
/** * This will parse URI target from the first line of the header * and store the parsed string internally. The target token is * used to create an <code>Address</code> object which provides * all the details of the target including the query part. */ private void target() { Token token = new Token(array, pos, 0); while(pos < count){ if(white(array[pos])){ pos++; break; } token.size++; pos++; } target = token.toString(); }
/** * This will parse HTTP method from the first line of the header * and store the parsed string internally. The method is used to * determine what action to take with the request, it also acts * as a means to determine the semantics of the request. */ private void method() { Token token = new Token(array, pos, 0); while(pos < count){ if(white(array[pos])){ pos++; break; } token.size++; pos++; } method = token.toString(); }
/** * This will parse HTTP method from the first line of the header * and store the parsed string internally. The method is used to * determine what action to take with the request, it also acts * as a means to determine the semantics of the request. */ private void method() { Token token = new Token(array, pos, 0); while(pos < count){ if(white(array[pos])){ pos++; break; } token.size++; pos++; } method = token.toString(); }
/** * This returns a section of characters within the specified * range. Acquiring a section in this manner is simply done by * setting a start and end offset within the internal array. * * @param start this is the start index to be used * @param end this is the end index to be used * * @return this returns a new sequence within the original */ public CharSequence subSequence(int start, int end) { return new Token(array, start, end - start); }
/** * This returns a section of characters within the specified * range. Acquiring a section in this manner is simply done by * setting a start and end offset within the internal array. * * @param start this is the start index to be used * @param end this is the end index to be used * * @return this returns a new sequence within the original */ public CharSequence subSequence(int start, int end) { return new Token(array, start, end - start); }
/** * This method returns a <code>CharSequence</code> holding the data * consumed for the request. A character sequence is returned as it * can provide a much more efficient means of representing the header * data by just wrapping the consumed byte array. * * @return this returns the characters consumed for the header */ public CharSequence getHeader() { return new Token(array, 0, count); }
/** * This method returns a <code>CharSequence</code> holding the data * consumed for the request. A character sequence is returned as it * can provide a much more efficient means of representing the header * data by just wrapping the consumed byte array. * * @return this returns the characters consumed for the header */ public CharSequence getHeader() { return new Token(array, 0, count); }
/** * This method returns a <code>CharSequence</code> holding the data * consumed for the request. A character sequence is returned as it * can provide a much more efficient means of representing the header * data by just wrapping the consumed byte array. * * @return this returns the characters consumed for the header */ public CharSequence getHeader() { return new Token(array, 0, count); }
/** * This returns a section of characters within the specified * range. Acquiring a section in this manner is simply done by * setting a start and end offset within the internal array. * * @param start this is the start index to be used * @param end this is the end index to be used * * @return this returns a new sequence within the original */ public CharSequence subSequence(int start, int end) { return new Token(array, start, end - start); }