1 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 ; 23 24 27 public class TransportOutDescription 28 implements ParameterInclude { 29 32 protected final ParameterInclude paramInclude; 33 34 35 38 private Flow outFlow; 39 40 43 private Flow faultFlow; 44 45 private Phase outPhase; 46 private Phase faultPhase; 47 48 51 protected QName name; 52 53 54 protected TransportSender sender; 55 56 61 public TransportOutDescription(QName 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 74 public Parameter getParameter(String name) { 75 return paramInclude.getParameter(name); 76 } 77 78 83 public void addParameter(Parameter param) { 84 paramInclude.addParameter(param); 85 } 86 87 88 91 public QName getName() { 92 return name; 93 } 94 95 98 public void setName(QName name) { 99 this.name = name; 100 } 101 102 103 106 public TransportSender getSender() { 107 return sender; 108 } 109 110 111 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 |