Tabnine Logo
BlobStoreProfile.getContainer
Code IndexAdd Tabnine to your IDE (free)

How to use
getContainer
method
in
com.elasticinbox.config.blob.BlobStoreProfile

Best Java code snippets using com.elasticinbox.config.blob.BlobStoreProfile.getContainer (Showing top 4 results out of 315)

origin: elasticinbox/elasticinbox

    .append(File.separator).append(profile.getContainer())
    .append(File.separator).append(path).toString();
String container = profile.getContainer();
BlobStoreContext context = getBlobStoreContext(profileName);
context.getBlobStore().removeBlob(container, path);
origin: elasticinbox/elasticinbox

/**
 * Read Blob contents
 * 
 * @param uri
 * @return
 */
public static InputStream read(URI uri)
{
  // check if blob was stored for the message
  Assert.notNull(uri, "URI cannot be null");
  logger.debug("Reading blob {}", uri);
  String profileName = uri.getHost();
  String container = Configurator.getBlobStoreProfile(profileName).getContainer();
  BlobStoreContext context = getBlobStoreContext(profileName);
  String path = BlobUtils.relativize(uri.getPath());
  InputStream in = context.getBlobStore()
      .getBlob(container, path)
      .getPayload().getInput();
  return in;
}
origin: elasticinbox/elasticinbox

context.getBlobStore().createContainerInLocation(null, profile.getContainer());
origin: elasticinbox/elasticinbox

/**
 * Store Blob
 * 
 * @param blobName
 *            Blob filename including relative path
 * @param profileName
 *            Blob store profile name
 * @param in
 *            Payload
 * @param size
 *            Payload size in bytes
 * @return
 * @throws IOException 
 */
public static void write(final String blobName, final String profileName, InputStream in, final Long size)
    throws IOException, GeneralSecurityException
{
  Assert.notNull(in, "No data to store");
  Assert.notNull(size, "Blob size must be specified");
  final String container = Configurator.getBlobStoreProfile(profileName).getContainer();
  BlobStoreContext context = getBlobStoreContext(profileName);
  logger.debug("Storing blob {} on {}", blobName, profileName);
  BlobStore blobStore = context.getBlobStore();
  BlobBuilder blobBuilder = blobStore.blobBuilder(blobName).payload(in).contentLength(size);
  // store blob
  blobStore.putBlob(container, blobBuilder.build());
}
com.elasticinbox.config.blobBlobStoreProfilegetContainer

Popular methods of BlobStoreProfile

  • getApiversion
  • getCredential
  • getEndpoint
  • getIdentity
  • getProvider

Popular in Java

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setContentView (Activity)
  • runOnUiThread (Activity)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now