org.jclouds.atmos.functions
Class ParseNullableURIFromListOrLocationHeaderIf20x

java.lang.Object
  extended by org.jclouds.http.functions.ParseURIFromListOrLocationHeaderIf20x
      extended by org.jclouds.atmos.functions.ParseNullableURIFromListOrLocationHeaderIf20x
All Implemented Interfaces:
com.google.common.base.Function<org.jclouds.http.HttpResponse,URI>, org.jclouds.rest.InvocationContext<org.jclouds.http.functions.ParseURIFromListOrLocationHeaderIf20x>

public class ParseNullableURIFromListOrLocationHeaderIf20x
extends org.jclouds.http.functions.ParseURIFromListOrLocationHeaderIf20x

Parses a single URI from a list, returning null when blob length was zero. Atmos returns "HTTP/1.1 201 null" when putting zero-length blobs.


Field Summary
 
Fields inherited from class org.jclouds.http.functions.ParseURIFromListOrLocationHeaderIf20x
request
 
Constructor Summary
ParseNullableURIFromListOrLocationHeaderIf20x()
           
 
Method Summary
 URI apply(org.jclouds.http.HttpResponse from)
           
 
Methods inherited from class org.jclouds.http.functions.ParseURIFromListOrLocationHeaderIf20x
setContext
 
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

ParseNullableURIFromListOrLocationHeaderIf20x

public ParseNullableURIFromListOrLocationHeaderIf20x()
Method Detail

apply

public URI apply(org.jclouds.http.HttpResponse from)
Specified by:
apply in interface com.google.common.base.Function<org.jclouds.http.HttpResponse,URI>
Overrides:
apply in class org.jclouds.http.functions.ParseURIFromListOrLocationHeaderIf20x


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