Package org.sonatype.nexus.proxy.walker

Examples of org.sonatype.nexus.proxy.walker.AbstractFileWalkerProcessor


    final ResourceStoreRequest root = new ResourceStoreRequest(RepositoryItemUid.PATH_ROOT, true);

    expireNotFoundCaches(root);

    final AbstractFileWalkerProcessor sw = new AbstractFileWalkerProcessor()
    {
      @Override
      protected void processFileItem(WalkerContext context, StorageFileItem item)
          throws Exception
      {
View Full Code Here


        RepoMD repoMD = new RepoMD(((StorageFileItem) item).getInputStream());
        final Collection<String> locations = repoMD.getLocations();
        ResourceStoreRequest request = new ResourceStoreRequest("/" + Yum.PATH_OF_REPODATA);
        request.getRequestContext().put(AccessManager.REQUEST_AUTHORIZED, Boolean.TRUE);
        DefaultWalkerContext context = new DefaultWalkerContext(repository, request);
        context.getProcessors().add(new AbstractFileWalkerProcessor()
        {
          @Override
          protected void processFileItem(final WalkerContext context, final StorageFileItem item) throws Exception {
            if (!item.getPath().equals("/" + Yum.PATH_OF_REPOMD_XML)
                && !locations.contains(item.getPath().substring(1))) {
View Full Code Here

    testRepo.setLocalStorage(new DefaultFSLocalRepositoryStorage(lookup(Wastebasket.class),
        lookup(LinkPersister.class), lookup(MimeSupport.class), new TestingDefaultFSPeer(minedParents)));

    // Create context and processors for the walk
    final DefaultWalkerContext context = new DefaultWalkerContext(testRepo, new ResourceStoreRequest("/"));
    context.getProcessors().add(new AbstractFileWalkerProcessor()
    {
      @Override
      protected void processFileItem(WalkerContext context, StorageFileItem fItem)
          throws Exception
      {
View Full Code Here

      throws StorageException
  {
    final ObrResourceWriter writer = source.getWriter(uid);

    try {
      final AbstractFileWalkerProcessor obrProcessor = new AbstractFileWalkerProcessor()
      {
        @Override
        protected void processFileItem(final WalkerContext context, final StorageFileItem item)
            throws IOException
        {
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.proxy.walker.AbstractFileWalkerProcessor

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.