Code example for HttpUriRequest

Methods: addHeader

0
	@Override public String method() { return "GET"; }
	protected HttpUriRequest generateRequest() {
		HttpUriRequest req = super.generateRequest();
		String date = getLastModified();
		if (date != null) {
			req.addHeader(IF_MODIFIED_SINCE, date);
		} 
		return req;
	} 
 
	private String getLastModified() {
		Cursor result = null;
		String value = null;
		try { 
			SQLiteDatabase db = DB.storeHelper.getReadableDatabase();
			String[] key = new String[]{key_};
			result = db.rawQuery("SELECT VALUE FROM store where id=?", key);
			if(result.getCount() > 0) {
				result.moveToFirst();
				value = result.getString(0);
Connect your IDE to all the code out there  Get Codota for Java