Package com.sun.jersey.api.uri

Examples of com.sun.jersey.api.uri.UriTemplate.match()


   
    if (!tagUris.isEmpty()) {
      final UriTemplate template = new UriTemplate("/tags/{name}");
      for (String uriParam : tagUris) {
        final Map<String, String> values = Maps.newHashMap();
        if (template.match(uriParam, values)) {
          final String name = values.get("name");
          if (name != null) {
            tags.add(new Tag(name));
          }
        }
View Full Code Here


                            ontClass.hasProperty(property) && ontClass.getPropertyValue(property).isLiteral())
                    {
                        UriTemplate uriTemplate = new UriTemplate(ontClass.getPropertyValue(property).asLiteral().getString());
                        HashMap<String, String> map = new HashMap<>();

                        if (uriTemplate.match(path, map))
                        {
                            if (log.isDebugEnabled()) log.debug("Path {} matched UriTemplate {}", path, uriTemplate);
                            if (log.isDebugEnabled()) log.debug("Path {} matched OntClass {}", path, ontClass);
                            matchedClasses.put(uriTemplate, ontClass);
                        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.