Switch to unified view

a/tool/src/www/WebRequest.java b/tool/src/www/WebRequest.java
...
...
32
public class WebRequest {
32
public class WebRequest {
33
    
33
    
34
    // the set of parameters in key/value style
34
    // the set of parameters in key/value style
35
    public ArrayList<String[]> parameters = new ArrayList<String[]>(); 
35
    public ArrayList<String[]> parameters = new ArrayList<String[]>(); 
36
    
36
    
37
    // what we reply when there is no answer?
38
    private final String noAnswerReply = "No answer";
39
    
37
    // helps to know if this request has already been handled or not
40
    // helps to know if this request has already been handled or not
38
    private boolean
41
    private boolean
39
            wasAnswered = false;
42
            wasAnswered = false;
40
    
43
    
41
    public String 
44
    public String 
...
...
113
        // all done in our side
116
        // all done in our side
114
    }
117
    }
115
            
118
            
116
    
119
    
117
    public String getAnswer() {
120
    public String getAnswer() {
121
        if(answer == null){
122
            setAnswer(noAnswerReply);
123
            return answer;
124
        }
125
        
118
        if(answer.isEmpty()){
126
        if(answer.isEmpty()){
119
            setAnswer("No answer");
127
            setAnswer(noAnswerReply);
120
        }
128
        }
121
        return answer;
129
        return answer;
122
    }
130
    }
123
131
124
    public long getTimeStart() {
132
    public long getTimeStart() {