Package org.apache.abdera.protocol.server

Examples of org.apache.abdera.protocol.server.WorkspaceManager


        RequestProcessor processor = this.requestProcessors.get(type);
        if (processor == null) {
            return ProviderHelper.notfound(request);
        }

        WorkspaceManager wm = getWorkspaceManager(request);
        CollectionAdapter adapter = wm.getCollectionAdapter(request);
        Transactional transaction = adapter instanceof Transactional ? (Transactional) adapter : null;
        ResponseContext response = null;
        try {
            transactionStart(transaction, request);
            response = processor.process(request, wm, adapter);
View Full Code Here


        DefaultProvider p = (DefaultProvider)applicationContext.getBean(Provider.class.getName());

        Resolver<Target> tresolver = p.getTargetResolver();
        assertTrue(tresolver instanceof RegexTargetResolver);

        WorkspaceManager wm = p.getWorkspaceManager();

        Collection<WorkspaceInfo> workspaces = wm.getWorkspaces(null);
        assertEquals(1, workspaces.size());

        WorkspaceInfo w = workspaces.iterator().next();
        assertNotNull(w);
        assertEquals("Foo Workspace", w.getTitle(null));
View Full Code Here

        RequestProcessor processor = this.requestProcessors.get(type);
        if (processor == null) {
            return ProviderHelper.notfound(request);
        }

        WorkspaceManager wm = getWorkspaceManager(request);
        CollectionAdapter adapter = wm.getCollectionAdapter(request);
        Transactional transaction = adapter instanceof Transactional ? (Transactional)adapter : null;
        ResponseContext response = null;
        try {
            transactionStart(transaction, request);
            response = processor.process(request, wm, adapter);
View Full Code Here

        RequestProcessor processor = this.requestProcessors.get(type);
        if (processor == null) {
            return ProviderHelper.notfound(request);
        }

        WorkspaceManager wm = getWorkspaceManager(request);
        CollectionAdapter adapter = wm.getCollectionAdapter(request);
        Transactional transaction = adapter instanceof Transactional ? (Transactional) adapter
                : null;
        ResponseContext response = null;
        try {
            transactionStart(transaction, request);
View Full Code Here

      TargetType type = target.getType();
      if (type == TargetType.TYPE_SERVICE &&
          method.equalsIgnoreCase("GET")) {
          return getServiceDocument(request);
      }
      WorkspaceManager wm = getWorkspaceManager(request);
     
      CollectionAdapter adapter =
        wm.getCollectionAdapter(request);
      if (adapter == null) {
        return ProviderHelper.notfound(
          request);
      }
     
View Full Code Here

        DefaultProvider p = (DefaultProvider) applicationContext.getBean(Provider.class.getName());
       
        Resolver<Target> tresolver = p.getTargetResolver();
        assertTrue(tresolver instanceof RegexTargetResolver);
       
        WorkspaceManager wm = p.getWorkspaceManager();
       
        Collection<WorkspaceInfo> workspaces = wm.getWorkspaces(null);
        assertEquals(1, workspaces.size());
       
        WorkspaceInfo w = workspaces.iterator().next();
        assertNotNull(w);
        assertEquals("Foo Workspace", w.getTitle(null));
View Full Code Here

TOP

Related Classes of org.apache.abdera.protocol.server.WorkspaceManager

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.