Coverage Report - org.webslinger.rules.CSSResponseAction
 
Classes in this File Line Coverage Branch Coverage Complexity
CSSResponseAction
50%
6/12
N/A
1
 
 1  
 package org.webslinger.rules;
 2  
 
 3  
 import java.io.IOException;
 4  
 import javax.servlet.ServletRequest;
 5  
 
 6  
 import org.webslinger.Webslinger;
 7  
 import org.webslinger.container.WebslingerContainer;
 8  
 
 9  
 public class CSSResponseAction extends CSSAction {
 10  
     private int response;
 11  
 
 12  
     public CSSResponseAction(int id) {
 13  0
         super(id);
 14  0
         setAction(Action.RESPONSE);
 15  0
     }
 16  
 
 17  
     public CSSResponseAction(Rules p, int id) {
 18  2
         super(p, id);
 19  2
         setAction(Action.RESPONSE);
 20  2
     }
 21  
 
 22  
     /** Accept the visitor. **/
 23  
     public Object jjtAccept(RulesVisitor visitor, Object data) {
 24  0
         return visitor.visit(this, data);
 25  
     }
 26  
 
 27  
     public void setNumber(String value) {
 28  1
         response = Integer.parseInt(value);
 29  1
     }
 30  
 
 31  
     public int getResponse() {
 32  0
         return response;
 33  
     }
 34  
 
 35  
     public void compile(WebslingerContainer container) throws IOException {
 36  2
     }
 37  
 
 38  
     public String toString() {
 39  0
         return "ResponseAction(" + getResponse() + ")";
 40  
     }
 41  
 }