org.jclouds.blobstore.functions
Class ThrowKeyNotFoundOn404

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

public class ThrowKeyNotFoundOn404
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 NoSuchKey message and throw a ContainerNotFoundException.

Author:
James Murty

Constructor Summary
ThrowKeyNotFoundOn404()
           
 
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

ThrowKeyNotFoundOn404

public ThrowKeyNotFoundOn404()
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.