Package org.sonatype.nexus.componentviews

Examples of org.sonatype.nexus.componentviews.Router.addRoute()


    final ProxyingRawBinariesHandler proxyingWrapper = new ProxyingRawBinariesHandler(binaryStore, sourceName,
        sourceRegistry);
    final HostedRawBinariesHandler hosted = new HostedRawBinariesHandler(binaryStore);

    router.addRoute(binariesRequestMatcher, asList(proxyingWrapper, hosted));

    return new View(config, router, notFoundHandler);
  }
}
View Full Code Here


    checkNotNull(config);

    final AllRequestMatcher binariesRequestMatcher = new AllRequestMatcher();

    final Router router = new Router();
    router.addRoute(binariesRequestMatcher, asList((Handler) new HostedRawBinariesHandler(binaryStore)));

    return new View(config, router, notFoundHandler);
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.