Package org.apache.wink.common.model.wadl

Examples of org.apache.wink.common.model.wadl.Application


            ResourceRegistry resourceRegistry = context.getAttribute(ResourceRegistry.class);
            Set<Class<?>> c = new HashSet<Class<?>>();
            Class<?> resourceClass = searchResult.getResource().getResourceClass();
            c.add(resourceClass);
            logger.trace("Found the resource classes {}", c);
            Application app = new WADLHandlerWADLGenerator().generate(context.getUriInfo().getBaseUri().toString(), c);
            if(context.getUriInfo().getMatchedResources().size() > 1) {
                // sub-resource locator so lets correct the path
                app.getResources().get(0).getResource().get(0).setPath(context.getUriInfo().getMatchedURIs().get(0));
            }

            Set<String> httpMethods = resourceRegistry.getOptions(searchResult.getResource());

            logger
View Full Code Here

TOP

Related Classes of org.apache.wink.common.model.wadl.Application

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.