spring-hateoas-ext/src/main/java/de/escalon/hypermedia/affordance/PartialUriTemplate.java
public PartialUriTemplateComponents stripOptionalVariables(List<ActionDescriptor> actionDescriptors) {
        return getUriTemplateComponents(Collections.<String, Object>emptyMap(), getRequiredArgNames(actionDescriptors));
    }
public PartialUriTemplateComponents stripOptionalVariables(List<ActionDescriptor> actionDescriptors) {
        return getUriTemplateComponents(Collections.<String, Object>emptyMap(), getRequiredArgNames(actionDescriptors));
    }
public PartialUriTemplateComponents stripOptionalVariables ( List < ActionDescriptor > actionDescriptors ) { return getUriTemplateComponents ( Collections . < String , Object > emptyMap ( ) , getRequiredArgNames ( actionDescriptors ) ) ; }
Strips all variables which are not required by any of the given action descriptors. If no action descriptors are
given, nothing will be stripped.

@param actionDescriptors
to decide which variables are optional, may be empty
@return partial uri template components without optional variables, if actionDescriptors was not empty
Strips all variables which are not required by any of the given action descriptors . If no action descriptors are given nothing will be stripped .