KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis2 > description > TransportInDescription


1 /*
2 * Copyright 2004,2005 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 package org.apache.axis2.description;
17
18 import org.apache.axis2.engine.Phase;
19 import org.apache.axis2.phaseresolver.PhaseMetadata;
20 import org.apache.axis2.transport.TransportListener;
21
22 import javax.xml.namespace.QName JavaDoc;
23
24 /**
25  * Represents a transport deployed in AXis2
26  */

27 public class TransportInDescription
28         implements ParameterInclude {
29     /**
30      * Field paramInclude
31      */

32     protected final ParameterInclude paramInclude;
33
34     /**
35      * Field phasesInclude
36      */

37
38     /**
39      * Field flowInclude
40      */

41     private Flow inFlow;
42     /**
43      * Field flowInclude
44      */

45     private Flow faultFlow;
46
47
48     /**
49      * Field name
50      */

51     protected QName JavaDoc name;
52
53
54     protected TransportListener reciever;
55
56     //to store handler in inFlow
57
private Phase inPhase ;
58     //to store handler Fault in inFlow
59
private Phase faultPhase ;
60
61
62
63
64
65     /**
66      * Constructor AxisTransport
67      *
68      * @param name
69      */

70     public TransportInDescription(QName JavaDoc name) {
71         paramInclude = new ParameterIncludeImpl();
72         this.name = name;
73         inPhase = new Phase(PhaseMetadata.TRANSPORT_PHASE);
74         faultPhase = new Phase(PhaseMetadata.TRANSPORT_PHASE);
75     }
76
77     /**
78      * Method getParameter
79      *
80      * @param name
81      * @return
82      */

83     public Parameter getParameter(String JavaDoc name) {
84         return paramInclude.getParameter(name);
85     }
86
87     /**
88      * Method addParameter
89      *
90      * @param param
91      */

92     public void addParameter(Parameter param) {
93         paramInclude.addParameter(param);
94     }
95
96     /**
97      * @return
98      */

99     public QName JavaDoc getName() {
100         return name;
101     }
102
103     /**
104      * @param name
105      */

106     public void setName(QName JavaDoc name) {
107         this.name = name;
108     }
109
110     public Flow getInFlow() {
111         return inFlow;
112     }
113
114     public void setInFlow(Flow inFlow) {
115         this.inFlow = inFlow;
116     }
117
118     public Flow getFaultFlow() {
119         return faultFlow;
120     }
121
122     public void setFaultFlow(Flow faultFlow) {
123         this.faultFlow = faultFlow;
124     }
125     /**
126      * @return
127      */

128     public TransportListener getReciever() {
129         return reciever;
130     }
131
132     /**
133      * @param receiver
134      */

135     public void setReciver(TransportListener receiver) {
136         reciever = receiver;
137     }
138
139     public Phase getInPhase() {
140         return inPhase;
141     }
142
143     public void setInPhase(Phase inPhase) {
144         this.inPhase = inPhase;
145     }
146
147     public Phase getFaultPhase() {
148         return faultPhase;
149     }
150
151     public void setFaultPhase(Phase faultPhase) {
152         this.faultPhase = faultPhase;
153     }
154
155 }
156
Popular Tags