Package org.sonatype.nexus.proxy

Examples of org.sonatype.nexus.proxy.ResourceStore


  public Object get(Context context, Request request, Response response, Variant variant)
      throws ResourceException
  {

    try {
      final ResourceStore store = getResourceStore(request);
      final ResourceStoreRequest req = getResourceStoreRequest(request);

      try {
        StorageItem item = store.retrieveItem(req);

        return renderItem(context, request, response, variant, store, item);
      }
      catch (ItemNotFoundException e) {
        if (isDescribe(request)) {
View Full Code Here


  @Override
  public void delete(Context context, Request request, Response response)
      throws ResourceException
  {
    try {
      final ResourceStore store = getResourceStore(request);
      final ResourceStoreRequest req = getResourceStoreRequest(request);

      store.deleteItem(req);

      getLogger().info(
          "Storage item(s) on path \"" + req.getRequestPath() + "\" (and below) were deleted from repository ["
              + request.getAttributes().get(AbstractRepositoryPlexusResource.REPOSITORY_ID_KEY) + "]");
    }
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.proxy.ResourceStore

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.