Package org.apache.wink.server.internal.registry

Examples of org.apache.wink.server.internal.registry.ResourceRegistry


        RequestProcessor requestProcessor = getRequestProcessor();
        if (requestProcessor == null) {
            throw new ServletException(Messages
                .getMessage("adminServletRequestProcessorInitBeforeAdmin")); //$NON-NLS-1$
        }
        ResourceRegistry registry = requestProcessor.getConfiguration().getResourceRegistry();

        String[] parameterValues = request.getParameterValues(DOCUMENT_TYPE);
        if (parameterValues == null || parameterValues.length == 0) {
            buildAdminHome(response);
            return;
View Full Code Here


            ofFactoryRegistry.addFactoryFactory(new JSR250LifecycleManager<Object>());
        }
        ApplicationValidator applicationValidator = new ApplicationValidator();
        providersRegistry = new ProvidersRegistry(ofFactoryRegistry, applicationValidator);
        resourceRegistry =
            new ResourceRegistry(ofFactoryRegistry, applicationValidator, properties);
    }
View Full Code Here

    public void setProduces(Set<MediaType> produces) {
        this.produces = produces;
    }

    public static List<ServiceDocumentCollectionData> buildServiceDocumentCollectionList(UriInfo uriInfo) {
        ResourceRegistry resourceRegistry =
            RuntimeContextTLS.getRuntimeContext().getAttribute(ResourceRegistry.class);
        List<ServiceDocumentCollectionData> collections =
            new ArrayList<ServiceDocumentCollectionData>();
        for (ResourceRecord record : resourceRegistry.getRecords()) {
            ClassMetadata metadata = record.getMetadata();

            // Check if the resource is a collection resource
            if (metadata.getWorkspaceName() != null) {
View Full Code Here

TOP

Related Classes of org.apache.wink.server.internal.registry.ResourceRegistry

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.