class Constraints extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
Constraints.Distilled
A distillation of constraints to a form more directly usable by
this provider.
|
Modifier and Type | Field and Description |
---|---|
private static int |
FULL_SUPPORT
indicates that this provider supports implementing all aspects
of satisfying a given constraint
|
private static int |
NO_SUPPORT
indicates that this provider does not support implementing (or
does not understand how to implement) the transport layer
aspects of satisfying a given constraint
|
private static int |
PARTIAL_SUPPORT
indicates that this provider supports implementing the
transport layer aspects of satisfying a given constraint, but
at least partial implementation by higher layers is also needed
in order to fully satisfy the constraint
|
private static Map |
supportedClasses
maps constraint classes that are supported to Boolean
indicating whether or not such constraints must be at least
partially implemented by higher layers to be fully satisfied
|
private static Map |
supportedValues
maps constraint values that are supported to Boolean indicating
whether or not they must be at least partially implemented by
higher layers to be fully satisfied
|
Modifier | Constructor and Description |
---|---|
private |
Constraints() |
Modifier and Type | Method and Description |
---|---|
(package private) static InvocationConstraints |
check(InvocationConstraints constraints,
boolean relativeOK)
Checks that we support at least the transport layer aspects of
the given requirements (and throws an
UnsupportedConstraintException if not), and returns the
requirements that must be at least partially implemented by
higher layers and the supported preferences that must be at
least partially implemented by higher layers.
|
(package private) static Constraints.Distilled |
distill(InvocationConstraints constraints,
boolean relativeOK)
Distills the given constraints to a form more directly usable
by this provider.
|
private static int |
getSupport(InvocationConstraint c)
Returns this provider's general support for the given
constraint.
|
private static final int NO_SUPPORT
private static final int FULL_SUPPORT
private static final int PARTIAL_SUPPORT
private static final Map supportedValues
private static final Map supportedClasses
private static int getSupport(InvocationConstraint c)
static InvocationConstraints check(InvocationConstraints constraints, boolean relativeOK) throws UnsupportedConstraintException
UnsupportedConstraintException
static Constraints.Distilled distill(InvocationConstraints constraints, boolean relativeOK) throws UnsupportedConstraintException
UnsupportedConstraintException
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.