congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
BaseBlobSignerLiveTest.getSignedUrlTimeout
Code IndexAdd Tabnine to your IDE (free)

How to use
getSignedUrlTimeout
method
in
org.jclouds.blobstore.integration.internal.BaseBlobSignerLiveTest

Best Java code snippets using org.jclouds.blobstore.integration.internal.BaseBlobSignerLiveTest.getSignedUrlTimeout (Showing top 4 results out of 315)

origin: apache/jclouds

@Test
public void testSignGetUrlWithTimeExpired() throws InterruptedException, IOException {
  testSignGetUrlWithTime(-getSignedUrlTimeout());
}
origin: apache/jclouds

@Test
public void testSignPutUrlWithTimeExpired() throws Exception {
  testSignPutUrlWithTime(-getSignedUrlTimeout());
}
origin: apache/jclouds

@Test
public void testSignPutUrlWithTime() throws Exception {
 String name = "hello";
 String text = "fooooooooooooooooooooooo";
 Blob blob = view.getBlobStore().blobBuilder(name).payload(text).contentType("text/plain").build();
 String container = getContainerName();
 try {
   HttpRequest request = view.getSigner().signPutBlob(container, blob, getSignedUrlTimeout());
   assertEquals(request.getFilters().size(), 0);
   // Strip Expect: 100-continue to make actual responses visible, since
   // Java 7+ will throw a ProtocolException instead of setting the response code:
   // http://www.docjar.com/html/api/sun/net/www/protocol/http/HttpURLConnection.java.html#1021
   request = request.toBuilder().removeHeader(EXPECT).build();
   Strings2.toStringAndClose(view.utils().http().invoke(request).getPayload().openStream());
 } finally {
   returnContainer(container);
 }
}
origin: apache/jclouds

@Test
public void testSignGetUrlWithTime() throws InterruptedException, IOException {
 String name = "hello";
 String text = "fooooooooooooooooooooooo";
 Blob blob = view.getBlobStore().blobBuilder(name).payload(text).contentType("text/plain").build();
 String container = getContainerName();
 try {
   view.getBlobStore().putBlob(container, blob);
   assertConsistencyAwareContainerSize(container, 1);
   HttpRequest request = view.getSigner().signGetBlob(container, name, getSignedUrlTimeout());
   assertEquals(request.getFilters().size(), 0);
   assertEquals(Strings2.toStringAndClose(view.utils().http().invoke(request).getPayload().openStream()), text);
 } finally {
   returnContainer(container);
 }
}
org.jclouds.blobstore.integration.internalBaseBlobSignerLiveTestgetSignedUrlTimeout

Popular methods of BaseBlobSignerLiveTest

  • testSignPutUrlWithTime
  • testSignGetUrlWithTime
  • assertConsistencyAwareContainerSize
  • getContainerName
  • returnContainer
  • setupProperties
  • testSignPutUrlWithTimeExpired
  • testSignGetUrl
  • testSignGetUrlOptions
  • testSignGetUrlWithTimeExpired
  • testSignPutUrl
  • testSignPutUrl

Popular in Java

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • setRequestProperty (URLConnection)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top 12 Jupyter Notebook Extensions
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