org.jclouds.blobstore.functions
Class ThrowContainerNotFoundOn404

java.lang.Object
  extended by org.jclouds.blobstore.functions.ThrowContainerNotFoundOn404
All Implemented Interfaces:
com.google.common.base.Function<Exception,Object>

public class ThrowContainerNotFoundOn404
extends Object
implements com.google.common.base.Function<Exception,Object>

bucketParser is only enacted when the http status code is 2xx. We check for Amazon's NoSuchBucket message and throw a ContainerNotFoundException.

Author:
James Murty

Constructor Summary
ThrowContainerNotFoundOn404()
           
 
Method Summary
 Object apply(Exception from)
           
 
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.Function
equals
 

Constructor Detail

ThrowContainerNotFoundOn404

public ThrowContainerNotFoundOn404()
Method Detail

apply

public Object apply(Exception from)
Specified by:
apply in interface com.google.common.base.Function<Exception,Object>


Copyright © 2009-2011 jclouds. All Rights Reserved.