org.jclouds.azureblob.predicates.validators
Class BlockIdValidator

java.lang.Object
  extended by org.jclouds.predicates.Validator<String>
      extended by org.jclouds.azureblob.predicates.validators.BlockIdValidator
All Implemented Interfaces:
com.google.common.base.Predicate<String>

public class BlockIdValidator
extends org.jclouds.predicates.Validator<String>

Validates Block IDs used in Put Block: "A valid Base64 string value that identifies the block. Prior to encoding, the string must be less than or equal to 64 bytes in size. For a given blob, the length of the value specified for the blockid parameter must be the same size for each block. Note that the Base64 string must be URL-encoded."

See Also:
{http://msdn.microsoft.com/en-us/library/windowsazure/dd135726.aspx}

Constructor Summary
BlockIdValidator()
           
 
Method Summary
 void validate(String s)
           
 
Methods inherited from class org.jclouds.predicates.Validator
apply
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Predicate
equals
 

Constructor Detail

BlockIdValidator

public BlockIdValidator()
Method Detail

validate

public void validate(@Nullable
                     String s)
              throws IllegalArgumentException
Specified by:
validate in class org.jclouds.predicates.Validator<String>
Throws:
IllegalArgumentException


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.