fr.paris.lutece.plugins.blobstore.modules.rest.rs
Class BlobStoreRest

java.lang.Object
  extended by fr.paris.lutece.plugins.blobstore.modules.rest.rs.BlobStoreRest

public class BlobStoreRest
extends Object

BlobStoreRest


Constructor Summary
BlobStoreRest()
           
 
Method Summary
 String doCreateBlobStore(String strBlobStore, InputStream blob, com.sun.jersey.core.header.FormDataContentDisposition blobDetail)
          Create a blob
 String doDeleteBlobStore(String strBlobKey, String strBlobStore)
          Delete a blob
 String getFileUrl(String strBlobStore, String strBlobKey)
          Get the file url
 String getWADL(javax.servlet.http.HttpServletRequest request)
          Get the wadl.xml content
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlobStoreRest

public BlobStoreRest()
Method Detail

getWADL

public String getWADL(@Context
                      javax.servlet.http.HttpServletRequest request)
Get the wadl.xml content

Parameters:
request - HttpServletRequest
Returns:
the content of wadl.xml

getFileUrl

public String getFileUrl(String strBlobStore,
                         String strBlobKey)
Get the file url

Parameters:
strBlobStore - the blobstore
strBlobKey - the blob key
Returns:
the file url

doDeleteBlobStore

public String doDeleteBlobStore(String strBlobKey,
                                String strBlobStore)
Delete a blob

Parameters:
strBlobKey - the blob key
strBlobStore - the blobstore
Returns:
the blob key

doCreateBlobStore

public String doCreateBlobStore(String strBlobStore,
                                InputStream blob,
                                com.sun.jersey.core.header.FormDataContentDisposition blobDetail)
Create a blob

Parameters:
strBlobStore - the the blobstore service
blob - the blob to create
blobDetail - the blob detail
Returns:
the id of the newly created blob


Copyright © 2014 Mairie de Paris. All Rights Reserved.