View Javadoc
1   package com.jsql.util;
2   
3   public class UserAgentUtil {
4       
5       private boolean isCustomUserAgent = false;
6   
7       private String customUserAgent = null;
8   
9       public UserAgentUtil withCustomUserAgent(String customUserAgent) {
10  
11          this.isCustomUserAgent = true;
12          this.customUserAgent = customUserAgent;
13          return this;
14      }
15      
16      
17      // Getter and setter
18  
19      public String getCustomUserAgent() {
20          return this.customUserAgent;
21      }
22  
23      public void setCustomUserAgent(String customUserAgent) {
24          this.customUserAgent = customUserAgent;
25      }
26  
27      public boolean isCustomUserAgent() {
28          return this.isCustomUserAgent;
29      }
30      
31      public void setIsCustomUserAgent(boolean isCustomUserAgent) {
32          this.isCustomUserAgent = isCustomUserAgent;
33      }
34  }