KickJava   Java API By Example, From Geeks To Geeks.

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


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.TransportSender;
21
22 import javax.xml.namespace.QName JavaDoc;
23
24 /**
25  * Represents a transport deployed in AXis2
26  */

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

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

38     private Flow outFlow;
39
40     /**
41      * Field flowInclude
42      */

43     private Flow faultFlow;
44
45    private Phase outPhase;
46    private Phase faultPhase;
47
48     /**
49      * Field name
50      */

51     protected QName JavaDoc name;
52     
53     
54     protected TransportSender sender;
55     
56     /**
57      * Constructor AxisTransport
58      *
59      * @param name
60      */

61     public TransportOutDescription(QName JavaDoc name) {
62         paramInclude = new ParameterIncludeImpl();
63         this.name = name;
64         outPhase = new Phase(PhaseMetadata.TRANSPORT_PHASE);
65         faultPhase = new Phase(PhaseMetadata.TRANSPORT_PHASE);
66     }
67
68     /**
69      * Method getParameter
70      *
71      * @param name
72      * @return
73      */

74     public Parameter getParameter(String JavaDoc name) {
75         return paramInclude.getParameter(name);
76     }
77
78     /**
79      * Method addParameter
80      *
81      * @param param
82      */

83     public void addParameter(Parameter param) {
84         paramInclude.addParameter(param);
85     }
86
87
88     /**
89      * @return
90      */

91     public QName JavaDoc getName() {
92         return name;
93     }
94
95     /**
96      * @param name
97      */

98     public void setName(QName JavaDoc name) {
99         this.name = name;
100     }
101
102
103     /**
104      * @return
105      */

106     public TransportSender getSender() {
107         return sender;
108     }
109
110
111     /**
112      * @param sender
113      */

114     public void setSender(TransportSender sender) {
115         this.sender = sender;
116     }
117
118     public Flow getOutFlow() {
119         return outFlow;
120     }
121
122     public void setOutFlow(Flow outFlow) {
123         this.outFlow = outFlow;
124     }
125
126     public Flow getFaultFlow() {
127         return faultFlow;
128     }
129
130     public void setFaultFlow(Flow faultFlow) {
131         this.faultFlow = faultFlow;
132     }
133
134     public Phase getOutPhase() {
135         return outPhase;
136     }
137
138     public void setOutPhase(Phase outPhase) {
139         this.outPhase = outPhase;
140     }
141
142     public Phase getFaultPhase() {
143         return faultPhase;
144     }
145
146     public void setFaultPhase(Phase faultPhase) {
147         this.faultPhase = faultPhase;
148     }
149
150 }
151
Popular Tags