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 java.lang.Object

BlobStoreRest


Constructor Summary
BlobStoreRest()
           
 
Method Summary
 java.lang.String doCreateBlobStore(java.lang.String strBlobStore, java.io.InputStream blob, com.sun.jersey.core.header.FormDataContentDisposition blobDetail)
          Create a blob
 java.lang.String doDeleteBlobStore(java.lang.String strBlobKey, java.lang.String strBlobStore)
          Delete a blob
 java.lang.String getFileUrl(java.lang.String strBlobStore, java.lang.String strBlobKey)
          Get the file url
 java.lang.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 java.lang.String getWADL(@Context
                                javax.servlet.http.HttpServletRequest request)
Get the wadl.xml content

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

getFileUrl

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

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

doDeleteBlobStore

public java.lang.String doDeleteBlobStore(java.lang.String strBlobKey,
                                          java.lang.String strBlobStore)
Delete a blob

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

doCreateBlobStore

public java.lang.String doCreateBlobStore(java.lang.String strBlobStore,
                                          java.io.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 © 2011 Mairie de Paris. All Rights Reserved.