[java-opensaml COMMIT] /trunk/opensaml-saml-api/src/main/java/org/opensaml/saml/common/binding/BindingDescriptor.java
noreply at shibboleth.net
noreply at shibboleth.net
Thu Mar 20 14:53:41 EDT 2014
Author: scantor
Date: Thu Mar 20 14:53:41 2014
New Revision: 3719
URL: http://svn.shibboleth.net/view/java-opensaml?rev=3719&view=rev
Log:
Distinguish synch and asynch bindings.
Modified:
trunk/opensaml-saml-api/src/main/java/org/opensaml/saml/common/binding/BindingDescriptor.java
Modified: trunk/opensaml-saml-api/src/main/java/org/opensaml/saml/common/binding/BindingDescriptor.java
URL: http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-saml-api/src/main/java/org/opensaml/saml/common/binding/BindingDescriptor.java?rev=3719&r1=3718&r2=3719&view=diff
==============================================================================
--- trunk/opensaml-saml-api/src/main/java/org/opensaml/saml/common/binding/BindingDescriptor.java (original)
+++ trunk/opensaml-saml-api/src/main/java/org/opensaml/saml/common/binding/BindingDescriptor.java Thu Mar 20 14:53:41 2014
@@ -59,8 +59,12 @@
/** Predicate that must be true for this flow to be usable for a given request. */
@Nonnull private Predicate<ProfileRequestContext> activationCondition;
+ /** Identifies a binding that is direct request/response between two parties (i.e., SOAP). */
+ private boolean synchronous;
+
/** Constructor. */
public BindingDescriptor() {
+ synchronous = false;
activationCondition = Predicates.alwaysTrue();
}
@@ -72,6 +76,24 @@
*/
public void setActivationCondition(@Nonnull final Predicate<ProfileRequestContext> condition) {
activationCondition = Constraint.isNotNull(condition, "Activation condition predicate cannot be null");
+ }
+
+ /**
+ * Get whether the binding is synchronous (direct request/response, typically SOAP).
+ *
+ * @return true iff the binding is synchronous
+ */
+ public boolean isSynchronous() {
+ return synchronous;
+ }
+
+ /**
+ * Set whether the binding is synchronous (direct request/response, typically SOAP).
+ *
+ * @param flag flag to set
+ */
+ public void setSynchronous(final boolean flag) {
+ synchronous = flag;
}
/** {@inheritDoc} */
@@ -107,7 +129,9 @@
/** {@inheritDoc} */
@Override
public String toString() {
- return Objects.toStringHelper(this).add("bindingId", getId()).toString();
+ return Objects.toStringHelper(this).add("bindingId", getId())
+ .add("synchronous", synchronous)
+ .toString();
}
}
More information about the commits
mailing list