1 package org.objectweb.celtix.bus.bindings; 2 3 import javax.jws.WebParam; 4 import javax.jws.WebResult; 5 import javax.jws.soap.SOAPBinding.ParameterStyle; 6 import javax.jws.soap.SOAPBinding.Style; 7 import javax.jws.soap.SOAPBinding.Use; 8 import javax.xml.namespace.QName ; 9 10 import org.objectweb.celtix.bindings.DataBindingCallback; 11 import org.objectweb.celtix.bindings.DataBindingCallback.Mode; 12 import org.objectweb.celtix.bindings.DataReader; 13 import org.objectweb.celtix.bindings.DataWriter; 14 15 public abstract class AbstractWSDLOperationDataBindingCallback implements DataBindingCallback { 16 protected WSDLOperationInfo operation; 17 18 public AbstractWSDLOperationDataBindingCallback(WSDLOperationInfo op) { 19 operation = op; 20 } 21 22 public WSDLOperationInfo getOperationInfo() { 23 return operation; 24 } 25 26 27 public abstract Mode getMode(); 28 public abstract Class <?>[] getSupportedFormats(); 29 public abstract <T> DataWriter<T> createWriter(Class <T> cls); 30 public abstract <T> DataReader<T> createReader(Class <T> cls); 31 32 public boolean isOneWay() { 33 return operation.isOneWay(); 34 } 35 36 public Style getSOAPStyle() { 37 return operation.getSOAPStyle(); 38 } 39 40 public Use getSOAPUse() { 41 return operation.getSOAPUse(); 42 } 43 44 public ParameterStyle getSOAPParameterStyle() { 45 return operation.getSOAPParameterStyle(); 46 } 47 48 public String getOperationName() { 49 return operation.getOperationName(); 50 } 51 52 public String getTargetNamespace() { 53 return operation.getTargetNamespace(); 54 } 55 56 public String getSOAPAction() { 57 return operation.getSOAPAction(); 58 } 59 60 public WebResult getWebResult() { 61 return operation.getWebResult(); 62 } 63 64 public QName getWebResultQName() { 65 return operation.getWebResultQName(); 66 } 67 68 public WebParam getWebParam(int index) { 69 return operation.getWebParam(index); 70 } 71 72 public int getParamsLength() { 73 return operation.getParamsLength(); 74 } 75 76 public QName getRequestWrapperQName() { 77 return operation.getRequestWrapperQName(); 78 } 79 80 public QName getResponseWrapperQName() { 81 return operation.getResponseWrapperQName(); 82 } 83 84 } 85 | Popular Tags |