Revision 59845
Added by Miriam Baglioni over 3 years ago
RestIterator.java | ||
---|---|---|
40 | 40 |
* |
41 | 41 |
*/ |
42 | 42 |
public class RestIterator implements Iterator<String> { |
43 |
private final String BASIC = "basic"; |
|
43 | 44 |
|
44 | 45 |
// TODO: clean up the comments of replaced source code |
45 | 46 |
private static final Log log = LogFactory.getLog(RestIterator.class); // NOPMD by marko on 11/24/08 5:02 PM |
... | ... | |
261 | 262 |
conn.setRequestProperty("Content-Type","application/json"); |
262 | 263 |
conn.setRequestMethod("GET"); |
263 | 264 |
theHttpInputStream = conn.getInputStream(); |
264 |
}else if (this.authMethod == "basic") {
|
|
265 |
}else if (BASIC.equalsIgnoreCase(this.authMethod)) {
|
|
265 | 266 |
log.trace("authMethod before inputStream: " + resultXml); |
266 | 267 |
log.debug("authMethod :" + authMethod); |
267 | 268 |
HttpURLConnection conn = (HttpURLConnection) qUrl.openConnection(); |
Also available in: Unified diff
changed way to express if condition