1 3 11 package com.sun.enterprise.jbi.serviceengine.util.soap; 12 13 20 public class Operation 21 { 22 25 private String mOperationName; 26 27 30 private String mPattern; 31 32 35 private String mSoapAction; 36 37 41 private String mOperationStyle; 42 43 47 private String mInterfaceStyle; 48 49 52 private String mInputNamespace; 53 54 57 private String mOutputNamespace; 58 59 65 public Operation(String operationName, String pattern) 66 { 67 mPattern = pattern; 68 mOperationName = operationName; 69 mOperationStyle = null; 70 mSoapAction = "\"\""; 71 } 72 73 78 public String getName() 79 { 80 return mOperationName; 81 } 82 83 88 public String getPattern() 89 { 90 return mPattern; 91 } 92 93 98 public void setSoapAction(String soapAction) 99 { 100 if ( ( soapAction != null) && ( !soapAction.equals("")) ) 101 { 102 mSoapAction = soapAction; 103 } 104 } 105 106 111 public String getSoapAction() 112 { 113 return mSoapAction; 114 } 115 116 121 public void setStyle(String operationStyle) 122 { 123 mOperationStyle = operationStyle; 124 } 125 126 131 public String getStyle() 132 { 133 if (mOperationStyle != null) 134 { 135 return mOperationStyle; 136 } 137 else 138 { 139 return mInterfaceStyle; 140 } 141 } 142 143 148 public boolean isInputEncoded() 149 { 150 return false; 151 } 152 153 158 public void setInputNamespace(String namespace) 159 { 160 mInputNamespace = namespace; 161 } 162 163 168 public String getInputNamespace() 169 { 170 return mInputNamespace; 171 } 172 173 178 public boolean isOutputEncoded() 179 { 180 return false; 181 } 182 183 188 public void setOutputNamespace(String namespace) 189 { 190 mOutputNamespace = namespace; 191 } 192 193 198 public String getOutputNamespace() 199 { 200 return mOutputNamespace; 201 } 202 203 208 public void setInterfaceStyle(String style) 209 { 210 mInterfaceStyle = style; 211 } 212 213 218 public String toString() 219 { 220 StringBuffer buffer = new StringBuffer (); 221 buffer.append("{ name = " + mOperationName); 222 buffer.append(", pattern = " + mPattern); 223 buffer.append(", style = " + getStyle()); 224 buffer.append(", soap action = " + mSoapAction); 225 buffer.append(", input namespace = " + mInputNamespace); 226 buffer.append(", output namespace = " + mOutputNamespace); 227 buffer.append("}"); 228 return buffer.toString(); 229 } 230 } 231 | Popular Tags |