KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > container > client > http > HttpClientType


1 /*
2  * Jul 8, 2004, 3:39:40 PM
3  * @author: F. MORON
4  * @email: francois.moron@rd.francetelecom.com
5  *
6  * */

7 package org.exoplatform.container.client.http;
8
9
10 public class HttpClientType {
11   
12     private String JavaDoc name_;
13     private String JavaDoc userAgentPattern_;
14     private String JavaDoc preferredMimeType_;
15     private String JavaDoc type_ = HttpClientInfo.STANDARD_BROWSER_TYPE ;
16     
17     public HttpClientType(String JavaDoc name, String JavaDoc userAgentPattern, String JavaDoc preferredMimeType, String JavaDoc type) {
18         this(name, userAgentPattern, preferredMimeType);
19         type_ = type;
20     }
21
22     public HttpClientType(String JavaDoc name, String JavaDoc userAgentPattern, String JavaDoc preferredMimeType) {
23         name_ = name;
24         userAgentPattern_ = userAgentPattern;
25         preferredMimeType_ = preferredMimeType;
26     }
27     
28     public HttpClientType() {
29         this("", "", "");
30     }
31
32     /**
33      * @return Returns the name_.
34      */

35     public String JavaDoc getName() { return name_; }
36   
37     /**
38      * @return Returns the preferredMimeType_.
39      */

40     public String JavaDoc getPreferredMimeType() { return preferredMimeType_; }
41   
42     /**
43      * @return Returns the userAgentPattern_.
44      */

45     public String JavaDoc getUserAgentPattern() { return userAgentPattern_; }
46
47     /**
48      * @return Returns the renderer_.
49      */

50     public String JavaDoc getType() { return type_; }
51 }
52
Popular Tags