org.jclouds.vcloud.director.v1_5.functions
Class URNToHref

java.lang.Object
  extended by org.jclouds.vcloud.director.v1_5.functions.URNToHref
All Implemented Interfaces:
com.google.common.base.Function<Object,URI>
Direct Known Subclasses:
CatalogItemURNToHref, CatalogURNToAdminHref, CatalogURNToHref, GroupURNToHref, MediaURNToHref, NetworkURNToAdminHref, NetworkURNToHref, OrgURNToAdminHref, OrgURNToHref, TasksListURNToHref, TaskURNToHref, UserURNToHref, VAppTemplateURNToHref, VAppURNToHref, VdcURNToAdminHref, VdcURNToHref, VmURNToHref

@Singleton
public abstract class URNToHref
extends Object
implements com.google.common.base.Function<Object,URI>

Resolves URN to its HREF via the entity Resolver

Author:
Adrian Cole

Constructor Summary
URNToHref(com.google.common.cache.LoadingCache<String,Entity> resolveEntityCache)
           
 
Method Summary
 URI apply(Object from)
           
protected abstract  String type()
          media type to search for.
 
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

URNToHref

@Inject
public URNToHref(com.google.common.cache.LoadingCache<String,Entity> resolveEntityCache)
Method Detail

type

protected abstract String type()
media type to search for.

See Also:
VCloudDirectorMediaType

apply

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


Copyright © 2009-2012 jclouds. All Rights Reserved.