/** * 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 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 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 is used to create a string from the header bytes. This * converts the header bytes to a string using a compatible * encoding. This may produce different results depending on * the time it is invoked, as the header consumes more data. * * @return this returns an encoded version of the header */ public String toString() { return toString("UTF-8"); }
/** * This is used to create a string from the header bytes. This * converts the header bytes to a string using a compatible * encoding. This may produce different results depending on * the time it is invoked, as the header consumes more data. * * @return this returns an encoded version of the header */ public String toString() { return toString("UTF-8"); }
/** * This is used to create a string from the header bytes. This * converts the header bytes to a string using a compatible * encoding. This may produce different results depending on * the time it is invoked, as the header consumes more data. * * @return this returns an encoded version of the header */ public String toString() { return toString("UTF-8"); }