Juan Hernandez has uploaded a new change for review.

Change subject: core: Add BLOB servlet
......................................................................

core: Add BLOB servlet

This change adds a servlet that can serve files that are
previously registered. The servlet will be registered to the
following URL:

  http://ovirt.example.com/blob/...

Other parts of the code can register any file they need in the
following way:

  BlobRegistry registry = BlobRegistry.getInstance();
  File file = new File("/tmp/whatever.txt");
  URL url = registry.registerBlob(file);

This will generate the following URL:

  http://ovirt.example.com/blob/whatever.txt

When this URL is requested the content of the file will be served
by the BLOB servlet.

Change-Id: I4726aa4084ebb8f93caf0616aceab10957c16b90
Signed-off-by: Juan Hernandez <juan.hernan...@redhat.com>
---
M backend/manager/modules/root/src/main/webapp/WEB-INF/web.xml
A 
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/blob/BlobRegistry.java
A 
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/blob/BlobServer.java
A 
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/blob/BlobServlet.java
4 files changed, 259 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/84/6484/1
--
To view, visit http://gerrit.ovirt.org/6484
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4726aa4084ebb8f93caf0616aceab10957c16b90
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernan...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to