org.jclouds.rest.internal
Class BaseRestApiMetadata

java.lang.Object
  extended by org.jclouds.apis.internal.BaseApiMetadata
      extended by org.jclouds.rest.internal.BaseRestApiMetadata
All Implemented Interfaces:
ApiMetadata, RestApiMetadata
Direct Known Subclasses:
AnonymousRestApiMetadata

Deprecated. please use BaseHttpApiMetadata as async interface will be removed in jclouds 1.7.

@Beta
@Deprecated
public abstract class BaseRestApiMetadata
extends BaseApiMetadata
implements RestApiMetadata

Useful in creating rest apis.


Nested Class Summary
static class BaseRestApiMetadata.Builder<T extends BaseRestApiMetadata.Builder<T>>
          Deprecated.  
 
Field Summary
protected  Class<?> api
          Deprecated.  
protected  Class<?> asyncApi
          Deprecated.  
 
Constructor Summary
protected BaseRestApiMetadata(BaseRestApiMetadata.Builder<?> builder)
          Deprecated.  
 
Method Summary
static
<S,A> com.google.common.reflect.TypeToken<RestContext<S,A>>
contextToken(com.google.common.reflect.TypeToken<S> apiToken, com.google.common.reflect.TypeToken<A> asyncApiToken)
          Deprecated.  
static Properties defaultProperties()
          Deprecated.  
 Class<?> getApi()
          Deprecated. 
 Class<?> getAsyncApi()
          Deprecated. 
protected  com.google.common.base.Objects.ToStringHelper string()
          Deprecated.  
 
Methods inherited from class org.jclouds.apis.internal.BaseApiMetadata
equals, getBuildVersion, getContext, getCredentialName, getDefaultCredential, getDefaultEndpoint, getDefaultIdentity, getDefaultModules, getDefaultProperties, getDocumentation, getEndpointName, getId, getIdentityName, getName, getVersion, getViews, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jclouds.apis.ApiMetadata
getBuildVersion, getContext, getCredentialName, getDefaultCredential, getDefaultEndpoint, getDefaultIdentity, getDefaultModules, getDefaultProperties, getDocumentation, getEndpointName, getId, getIdentityName, getName, getVersion, getViews, toBuilder
 

Field Detail

api

protected final Class<?> api
Deprecated. 

asyncApi

protected final Class<?> asyncApi
Deprecated. 
Constructor Detail

BaseRestApiMetadata

protected BaseRestApiMetadata(BaseRestApiMetadata.Builder<?> builder)
Deprecated. 
Method Detail

defaultProperties

public static Properties defaultProperties()
Deprecated. 

contextToken

public static <S,A> com.google.common.reflect.TypeToken<RestContext<S,A>> contextToken(com.google.common.reflect.TypeToken<S> apiToken,
                                                                                       com.google.common.reflect.TypeToken<A> asyncApiToken)
Deprecated. 

getApi

public Class<?> getApi()
Deprecated. 

Specified by:
getApi in interface RestApiMetadata
Returns:
the type of the api which blocks on all requests

getAsyncApi

public Class<?> getAsyncApi()
Deprecated. 

Specified by:
getAsyncApi in interface RestApiMetadata
Returns:
the type of the api, which is the same as RestApiMetadata.getApi(), except all methods return ListenableFuture

string

protected com.google.common.base.Objects.ToStringHelper string()
Deprecated. 
Overrides:
string in class BaseApiMetadata


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