Package com.sun.jersey.api.uri

Examples of com.sun.jersey.api.uri.UriTemplateParser$CharacterIterator


        // add fragment identifier for non-information resources
        if (!resource.hasProperty(RDF.type, FOAF.Document)) builder.fragment("this"); // FOAF.isPrimaryTopicOf?

        try
        {
            return build(resource, new UriTemplateParser(itemTemplate), builder);
        }
        catch (IllegalArgumentException ex)
        {
            if (log.isDebugEnabled()) log.debug("Building URI from resource {} failed", resource);
            throw new IllegalArgumentException("POSTed Resources '" + resource + "' is missing properties required by its URI template '" + itemTemplate + "'");
View Full Code Here


                template, String.class);
        template = expr.getValue(context).toString();

        // now process any embedded URI template parameters
        UriBuilder ub=applyLinkStyle(template, link.getLinkStyle(), uriInfo);
        UriTemplateParser parser = new UriTemplateParser(template);
        List<String> parameterNames = parser.getNames();
        Map<String, Object> valueMap = getParameterValues(parameterNames, link, context);
        URI uri = ub.buildFromMap(valueMap);
        return uri;
    }
View Full Code Here

TOP

Related Classes of com.sun.jersey.api.uri.UriTemplateParser$CharacterIterator

Copyright © 2018 www.massapicom. 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.