Package com.sun.research.ws.wadl

Examples of com.sun.research.ws.wadl.Resources


*/
public class ExternalUriWadlGenerator extends WadlGeneratorImpl {

    @Override
    public Resources createResources() {
        Resources resources = super.createResources();
        resources.setBase(ExternalUriWadlGeneratorConfig.externalEndpointUri);
        return resources;
    }
View Full Code Here


        throw new UnsupportedOperationException("No delegate supported.");
    }

    @Override
    public Resources createResources() {
        return new Resources();
    }
View Full Code Here

        throw new UnsupportedOperationException("No delegate supported.");
    }

    @Override
    public Resources createResources() {
        return new Resources();
    }
View Full Code Here

     * @param resources the set of resources
     * @return the JAXB WADL application bean
     */
    public ApplicationDescription generate(List<org.glassfish.jersey.server.model.Resource> resources) {
        Application wadlApplication = _wadlGenerator.createApplication();
        Resources wadlResources = _wadlGenerator.createResources();

        // for each resource
        for (org.glassfish.jersey.server.model.Resource r : resources) {
            Resource wadlResource = generateResource(r, r.getPath());
            wadlResources.getResource().add(wadlResource);
        }
        wadlApplication.getResources().add(wadlResources);

        addVersion(wadlApplication);

View Full Code Here

    public Application generate(
            ApplicationDescription description,
            org.glassfish.jersey.server.model.Resource resource) {
        try {
            Application wadlApplication = _wadlGenerator.createApplication();
            Resources wadlResources = _wadlGenerator.createResources();
            Resource wadlResource = generateResource(resource, null);
            wadlResources.getResource().add(wadlResource);
            wadlApplication.getResources().add(wadlResources);

            addVersion(wadlApplication);

            // Attach the data to the parts of the model
View Full Code Here

    public void setWadlGeneratorDelegate( WadlGenerator delegate ) {
        throw new UnsupportedOperationException( "No delegate supported." );
    }

    public Resources createResources() {
        return new Resources();
    }
View Full Code Here

     * @param resources the set of resources
     * @return the JAXB WADL application bean
     */
    public Application generate(Set<AbstractResource> resources ) {
        Application wadlApplication = _wadlGenerator.createApplication();
        Resources wadlResources = _wadlGenerator.createResources();
        Set<Class<?>> visitedClasses = new HashSet<Class<?>>();
       
        // for each resource
        for (AbstractResource r: resources) {
            Resource wadlResource = generateResource(r, null, visitedClasses);
            wadlResources.getResource().add(wadlResource);
        }
        wadlApplication.setResources(wadlResources);
       
        addVersion(wadlApplication);
        return wadlApplication;
View Full Code Here

     * @param resource the resource
     * @return the JAXB WADL application bean
     */
    public Application generate(AbstractResource resource) {
        Application wadlApplication = _wadlGenerator.createApplication();
        Resources wadlResources = _wadlGenerator.createResources();
        Set<Class<?>> visitedClasses = new HashSet<Class<?>>();
        Resource wadlResource = generateResource(resource, null, visitedClasses);
        wadlResources.getResource().add(wadlResource);
        wadlApplication.setResources(wadlResources);
       
        addVersion(wadlApplication);
        return wadlApplication;
    }
View Full Code Here

     * @param path the value of the methods path annotations
     * @return the JAXB WADL application bean
     */
    public Application generate(AbstractResource resource, String path) {
        Application wadlApplication = _wadlGenerator.createApplication();
        Resources wadlResources = _wadlGenerator.createResources();
        Resource wadlResource = generateSubResource(resource, path);
        wadlResources.getResource().add(wadlResource);
        wadlApplication.setResources(wadlResources);
       
        addVersion(wadlApplication);
        return wadlApplication;
    }
View Full Code Here

TOP

Related Classes of com.sun.research.ws.wadl.Resources

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.