diff options
Diffstat (limited to 'branches/sca-java-1.x/modules/binding-http-oasis/src/main/java/org/apache/tuscany/sca/binding/http/impl/HTTPBindingImpl.java')
-rw-r--r-- | branches/sca-java-1.x/modules/binding-http-oasis/src/main/java/org/apache/tuscany/sca/binding/http/impl/HTTPBindingImpl.java | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/branches/sca-java-1.x/modules/binding-http-oasis/src/main/java/org/apache/tuscany/sca/binding/http/impl/HTTPBindingImpl.java b/branches/sca-java-1.x/modules/binding-http-oasis/src/main/java/org/apache/tuscany/sca/binding/http/impl/HTTPBindingImpl.java index 6d4bf92adc..242f3c6d48 100644 --- a/branches/sca-java-1.x/modules/binding-http-oasis/src/main/java/org/apache/tuscany/sca/binding/http/impl/HTTPBindingImpl.java +++ b/branches/sca-java-1.x/modules/binding-http-oasis/src/main/java/org/apache/tuscany/sca/binding/http/impl/HTTPBindingImpl.java @@ -22,6 +22,8 @@ package org.apache.tuscany.sca.binding.http.impl; import java.util.ArrayList; import java.util.List; +import org.apache.tuscany.sca.assembly.OperationSelector; +import org.apache.tuscany.sca.assembly.WireFormat; import org.apache.tuscany.sca.binding.http.HTTPBinding; import org.apache.tuscany.sca.policy.Intent; import org.apache.tuscany.sca.policy.IntentAttachPointType; @@ -39,12 +41,14 @@ class HTTPBindingImpl implements HTTPBinding, PolicySetAttachPoint { private String name; private String uri; + private WireFormat wireFormat; + private OperationSelector operationSelector; + private List<Intent> requiredIntents = new ArrayList<Intent>(); private List<PolicySet> policySets = new ArrayList<PolicySet>(); private IntentAttachPointType intentAttachPointType; private List<PolicySet> applicablePolicySets = new ArrayList<PolicySet>(); - public String getName() { return name; } @@ -60,8 +64,7 @@ class HTTPBindingImpl implements HTTPBinding, PolicySetAttachPoint { public void setURI(String uri) { this.uri = uri; } - - + public boolean isUnresolved() { return false; } @@ -70,6 +73,32 @@ class HTTPBindingImpl implements HTTPBinding, PolicySetAttachPoint { // The sample binding is always resolved } + // Wireformat and Operation selection + + public WireFormat getRequestWireFormat() { + return wireFormat; + } + + public void setRequestWireFormat(WireFormat wireFormat) { + this.wireFormat = wireFormat; + } + + public WireFormat getResponseWireFormat() { + return wireFormat; + } + + public void setResponseWireFormat(WireFormat wireFormat) { + this.wireFormat = wireFormat; + } + + public OperationSelector getOperationSelector() { + return operationSelector; + } + + public void setOperationSelector(OperationSelector operationSelector) { + this.operationSelector = operationSelector; + } + //Policy related getters/setters public List<PolicySet> getPolicySets() { |