spring-hateoas-ext/src/main/java/de/escalon/hypermedia/spring/uber/UberUtils.java
public static UberNode toUberLink(String href, ActionDescriptor actionDescriptor, List<String> rels) {
        Assert.notNull(actionDescriptor, "actionDescriptor must not be null");
        UberNode uberLink = new UberNode();
        uberLink.setRel(rels);
        PartialUriTemplateComponents partialUriTemplateComponents = new PartialUriTemplate(href).expand(Collections
                .<String, Object>emptyMap());
        uberLink.setUrl(partialUriTemplateComponents.toString());
        uberLink.setTemplated(partialUriTemplateComponents.hasVariables() ? Boolean.TRUE : null);
        uberLink.setModel(getModelProperty(href, actionDescriptor));
        if (actionDescriptor != null) {
            RequestMethod requestMethod = RequestMethod.valueOf(actionDescriptor.getHttpMethod());
            uberLink.setAction(UberAction.forRequestMethod(requestMethod));
        }
        return uberLink;
    }
public static UberNode toUberLink(String href, ActionDescriptor actionDescriptor, List<String> rels) {
        Assert.notNull(actionDescriptor, "actionDescriptor must not be null");
        UberNode uberLink = new UberNode();
        uberLink.setRel(rels);
        PartialUriTemplateComponents partialUriTemplateComponents = new PartialUriTemplate(href).expand(Collections
                .<String, Object>emptyMap());
        uberLink.setUrl(partialUriTemplateComponents.toString());
        uberLink.setTemplated(partialUriTemplateComponents.hasVariables() ? Boolean.TRUE : null);
        uberLink.setModel(getModelProperty(href, actionDescriptor));
        if (actionDescriptor != null) {
            RequestMethod requestMethod = RequestMethod.valueOf(actionDescriptor.getHttpMethod());
            uberLink.setAction(UberAction.forRequestMethod(requestMethod));
        }
        return uberLink;
    }
public static UberNode toUberLink ( String href , ActionDescriptor actionDescriptor , List < String > rels ) { Assert . notNull ( actionDescriptor , "actionDescriptor must not be null" ) ; UberNode uberLink = new UberNode ( ) ; uberLink . setRel ( rels ) ; PartialUriTemplateComponents partialUriTemplateComponents = new PartialUriTemplate ( href ) . expand ( Collections . < String , Object > emptyMap ( ) ) ; uberLink . setUrl ( partialUriTemplateComponents . toString ( ) ) ; uberLink . setTemplated ( partialUriTemplateComponents . hasVariables ( ) ? Boolean . TRUE : null ) ; uberLink . setModel ( getModelProperty ( href , actionDescriptor ) ) ; if ( actionDescriptor != null ) { RequestMethod requestMethod = RequestMethod . valueOf ( actionDescriptor . getHttpMethod ( ) ) ; uberLink . setAction ( UberAction . forRequestMethod ( requestMethod ) ) ; } return uberLink ; }
Converts single link to uber node.

@param href
to use
@param actionDescriptor
to use for action and model, never null
@param rels
of the link
@return uber link
Converts single link to uber node .