Code example for BasicHttpRequest

0
			StringTokenizer st = new StringTokenizer(firstLine);
			String method = st.nextToken();
			String uri = st.nextToken();
			String realUri = uri.substring(1);
			Log.i(TAG, realUri);
			request = new BasicHttpRequest(method, realUri);
			return request;
		} 
 
		public boolean processRequest() { 
			HttpRequest request = readRequest();
			if (request == null) {
				return false; 
			} 
			 
			// Read HTTP headers 
			Log.i(TAG, "Processing request");
 
			try { 
				localPath = URLDecoder.decode(request.getRequestLine().getUri(), Constants.UTF_8);
			} catch (UnsupportedEncodingException e) {