View Javadoc

1   /*
2    * Copyright  1999-2004 The Apache Software Foundation.
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
15   *
16   */
17  
18  package org.apache.savan.configuration;
19  
20  import org.apache.savan.util.UtilFactory;
21  
22  /***
23   *Encapsulates a date of a Protocol as defined by Savan configurations. 
24   *(probably from a savan-config.xml file).
25   */
26  public class Protocol {
27  
28  	private String name;
29  	private UtilFactory utilFactory;
30  	private MappingRules mappingRules;
31  	private String defaultSubscriber;
32  	private String defaultFilter;
33  	
34  	public String getDefaultFilter() {
35  		return defaultFilter;
36  	}
37  
38  	public String getDefaultSubscriber() {
39  		return defaultSubscriber;
40  	}
41  
42  	public void setDefaultFilter(String defaultFilter) {
43  		this.defaultFilter = defaultFilter;
44  	}
45  
46  	public void setDefaultSubscriber(String defaultSubscriber) {
47  		this.defaultSubscriber = defaultSubscriber;
48  	}
49  
50  	public String getName() {
51  		return name;
52  	}
53  	
54  	public UtilFactory getUtilFactory() {
55  		return utilFactory;
56  	}
57  	
58  	public void setName(String name) {
59  		this.name = name;
60  	}
61  	
62  	public void setUtilFactory(UtilFactory utilFactory) {
63  		this.utilFactory = utilFactory;
64  	}
65  
66  	public MappingRules getMappingRules() {
67  		return mappingRules;
68  	}
69  
70  	public void setMappingRules(MappingRules mappingRule) {
71  		this.mappingRules = mappingRule;
72  	}
73  }