fr.paris.lutece.plugins.blobstoreclient.util
Class UrlUtils

java.lang.Object
  extended by fr.paris.lutece.plugins.blobstoreclient.util.UrlUtils

public final class UrlUtils
extends java.lang.Object

URLUtils


Method Summary
static java.lang.String buildCreateBlobUrl(java.lang.String strBaseUrl, java.lang.String strBlobStore)
          Build the url to upload a file.
static java.lang.String buildDeleteBlobUrl(java.lang.String strBaseUrl)
          Build the url to delete a file.
static java.lang.String buildFileUrl(java.lang.String strBaseUrl, java.lang.String strBlobStore, java.lang.String strBlobKey)
          Build the url to get a file url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

buildCreateBlobUrl

public static java.lang.String buildCreateBlobUrl(java.lang.String strBaseUrl,
                                                  java.lang.String strBlobStore)
Build the url to upload a file.
This will append the url defined in blobstoreclient.properties to the given base url

Parameters:
strBaseUrl - the base url
strBlobStore - the blobstore service name
Returns:
the url to upload a file

buildDeleteBlobUrl

public static java.lang.String buildDeleteBlobUrl(java.lang.String strBaseUrl)
Build the url to delete a file.
This will append the url defined in blobstoreclient.properties to the given base url

Parameters:
strBaseUrl - the base url
Returns:
the url to delete a file

buildFileUrl

public static java.lang.String buildFileUrl(java.lang.String strBaseUrl,
                                            java.lang.String strBlobStore,
                                            java.lang.String strBlobKey)
Build the url to get a file url.
This will append the url defined in blobstoreclient.properties to the given base url

Parameters:
strBaseUrl - the base url
strBlobStore - the blobstore service name
strBlobKey - the blob key
Returns:
the url to delete a file


Copyright © 2011 Mairie de Paris. All Rights Reserved.