Subversion Repositories SmartDukaan

Rev

Rev 16289 | Rev 16291 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16289 Rev 16290
Line 30... Line 30...
30
import javax.xml.xpath.XPath;
30
import javax.xml.xpath.XPath;
31
import javax.xml.xpath.XPathConstants;
31
import javax.xml.xpath.XPathConstants;
32
import javax.xml.xpath.XPathExpressionException;
32
import javax.xml.xpath.XPathExpressionException;
33
import javax.xml.xpath.XPathFactory;
33
import javax.xml.xpath.XPathFactory;
34
 
34
 
-
 
35
import org.apache.commons.codec.Encoder;
35
import org.apache.commons.collections.ListUtils;
36
import org.apache.commons.collections.ListUtils;
36
import org.apache.log4j.Logger;
37
import org.apache.log4j.Logger;
37
import org.w3c.dom.Node;
38
import org.w3c.dom.Node;
38
import org.w3c.dom.NodeList;
39
import org.w3c.dom.NodeList;
39
import org.xml.sax.InputSource;
40
import org.xml.sax.InputSource;
Line 216... Line 217...
216
		}
217
		}
217
		String minString = "0";
218
		String minString = "0";
218
		String maxString = "*";  
219
		String maxString = "*";  
219
		if(minPrice != null || maxPrice != null){
220
		if(minPrice != null || maxPrice != null){
220
			try {
221
			try {
221
				dynamicPriceMap = getPriceStatsMap(new InputSource(uri)); 
222
				dynamicPriceMap = getPriceStatsMap(new InputSource(URLEncoder.encode(uri, "UTF-8"))); 
222
			} catch (Exception e){
223
			} catch (Exception e){
223
				e.printStackTrace();
224
				e.printStackTrace();
224
			}
225
			}
225
			if(minPrice != null){
226
			if(minPrice != null){
226
				minString = minPrice.toString();
227
				minString = minPrice.toString();
Line 238... Line 239...
238
					uri += "&facet.field=" + facetDefinitionID;
239
					uri += "&facet.field=" + facetDefinitionID;
239
				}
240
				}
240
		}
241
		}
241
		log.info("uri=" + uri);
242
		log.info("uri=" + uri);
242
		
243
		
-
 
244
		try{
243
		this.inputSource = new InputSource(uri);
245
			this.inputSource = new InputSource(URLEncoder.encode(uri,"UTF-8"));
-
 
246
		}catch(Exception e){
-
 
247
			log.info("Could not make it");
-
 
248
		}
244
 
249
 
245
		this.facetMap = getFacetMap();
250
		this.facetMap = getFacetMap();
246
	}
251
	}
247
 
252
 
248
	@SuppressWarnings("unchecked")
253
	@SuppressWarnings("unchecked")