|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.util.Utils
@Deprecated public class Utils
General utilities used in jclouds code.
| Constructor Summary | |
|---|---|
Utils()
Deprecated. |
|
| Method Summary | ||
|---|---|---|
static void |
checkNotEmpty(String nullableString)
Deprecated. |
|
static void |
checkNotEmpty(String nullableString,
String message)
Deprecated. |
|
static byte[] |
encodeString(String str)
Deprecated. |
|
static byte[] |
encodeString(String str,
String charsetName)
Deprecated. |
|
static boolean |
eventuallyTrue(com.google.common.base.Supplier<Boolean> assertion,
long inconsistencyMillis)
Deprecated. |
|
static
|
getFirstThrowableOfType(com.google.inject.ProvisionException e,
Class<T> clazz)
Deprecated. |
|
static
|
getFirstThrowableOfType(Throwable from,
Class<T> clazz)
Deprecated. |
|
static Iterable<String> |
getSupportedProviders()
Deprecated. |
|
static Iterable<String> |
getSupportedProvidersOfType(Class<? extends RestContextBuilder> type)
Deprecated. |
|
static Iterable<String> |
getSupportedProvidersOfTypeInProperties(Class<? extends RestContextBuilder<?,?>> type,
Properties properties)
Deprecated. |
|
static
|
initContextBuilder(Class<RestContextBuilder<S,A>> contextBuilderClass,
Class<S> sync,
Class<A> async,
Properties properties)
Deprecated. |
|
static boolean |
isPrivateKeyCredential(Credentials credentials)
Deprecated. |
|
static Iterable<com.google.inject.Module> |
modulesForProviderInProperties(String providerName,
Properties props)
Deprecated. |
|
static Iterable<com.google.inject.Module> |
modulesFromCommaDelimitedString(String moduleClasses)
Deprecated. |
|
static Iterable<com.google.inject.Module> |
modulesFromProperty(Properties props,
String property)
Deprecated. |
|
static
|
multiMax(Comparator<T> ordering,
Iterable<E> iterable)
Deprecated. |
|
static com.google.common.io.OutputSupplier<OutputStream> |
newOutputStreamSupplier(OutputStream output)
Deprecated. |
|
static Credentials |
overrideCredentialsIfSupplied(Credentials defaultCredentials,
Credentials overridingCredentials)
Deprecated. |
|
static
|
propagateAuthorizationOrOriginalException(Exception e)
Deprecated. |
|
static
|
propagateOrNull(Exception from)
Deprecated. |
|
static String |
replaceAll(String input,
char ifMatch,
Pattern pattern,
String replacement)
Deprecated. |
|
static String |
replaceAll(String input,
char match,
String replacement)
Deprecated. |
|
static String |
replaceAll(String returnVal,
Pattern pattern,
String replace)
Deprecated. |
|
static String |
replaceTokens(String value,
Iterable<Map.Entry<String,String>> tokenValues)
Deprecated. |
|
static String |
replaceTokens(String input,
Map<String,String> replacements)
Deprecated. |
|
static
|
resolveContextBuilderClass(String provider,
Properties properties)
Deprecated. |
|
static Class<PropertiesBuilder> |
resolvePropertiesBuilderClass(String providerName,
Properties props)
Deprecated. |
|
static InputStream |
toInputStream(String in)
Deprecated. |
|
static String |
toStringAndClose(InputStream input)
Deprecated. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Utils()
| Method Detail |
|---|
@Deprecated public static <T> T propagateAuthorizationOrOriginalException(Exception e)
Throwables2.propagateAuthorizationOrOriginalException
@Deprecated
public static <T,E extends T> List<E> multiMax(Comparator<T> ordering,
Iterable<E> iterable)
Lists2.multiMax(java.util.Comparator, java.lang.Iterable) @Deprecated public static <T> T propagateOrNull(Exception from)
Throwables2.propagateOrNull(java.lang.Exception)
@Deprecated
public static <T extends Throwable> T getFirstThrowableOfType(Throwable from,
Class<T> clazz)
Throwables2.getFirstThrowableOfType(Throwable, Class)
@Deprecated
public static <T extends Throwable> T getFirstThrowableOfType(com.google.inject.ProvisionException e,
Class<T> clazz)
Throwables2.getFirstThrowableOfType(ProvisionException, Class)
@Deprecated
public static String replaceTokens(String value,
Iterable<Map.Entry<String,String>> tokenValues)
Strings2.replaceTokens(java.lang.String, java.lang.Iterable>)
@Deprecated
public static String replaceAll(String returnVal,
Pattern pattern,
String replace)
Strings2.replaceAll(String,Pattern, String)
@Deprecated
public static String replaceAll(String input,
char ifMatch,
Pattern pattern,
String replacement)
Strings2.replaceAll(String,char,Pattern, String)
@Deprecated
public static String replaceAll(String input,
char match,
String replacement)
Strings2.replaceAll(String,char, String)@Deprecated public static com.google.common.io.OutputSupplier<OutputStream> newOutputStreamSupplier(OutputStream output)
Suppliers2.newOutputStreamSupplier(java.io.OutputStream)
@Deprecated
public static boolean eventuallyTrue(com.google.common.base.Supplier<Boolean> assertion,
long inconsistencyMillis)
throws InterruptedException
InterruptedExceptionAssertions.eventuallyTrue(com.google.common.base.Supplier, long)
@Deprecated
public static String toStringAndClose(InputStream input)
throws IOException
IOExceptionStrings2.toStringAndClose(java.io.InputStream)@Deprecated public static InputStream toInputStream(String in)
Strings2.toInputStream(java.lang.String)
@Deprecated
public static byte[] encodeString(String str,
String charsetName)
Strings2.encodeString(String, String)@Deprecated public static byte[] encodeString(String str)
Strings2.encodeString(String)
@Deprecated
public static String replaceTokens(String input,
Map<String,String> replacements)
Strings2.replaceTokens(String,Map)@Deprecated public static void checkNotEmpty(String nullableString)
Preconditions2.checkNotEmpty(String)
@Deprecated
public static void checkNotEmpty(String nullableString,
String message)
Preconditions2.checkNotEmpty(String,String)@Deprecated public static Iterable<String> getSupportedProviders()
Providers.getSupportedProviders()@Deprecated public static Iterable<String> getSupportedProvidersOfType(Class<? extends RestContextBuilder> type)
Providers.getSupportedProvidersOfType(java.lang.Class extends org.jclouds.rest.RestContextBuilder>)
@Deprecated
public static Iterable<String> getSupportedProvidersOfTypeInProperties(Class<? extends RestContextBuilder<?,?>> type,
Properties properties)
Providers.getSupportedProvidersOfTypeInProperties(java.lang.Class extends org.jclouds.rest.RestContextBuilder>, java.util.Properties)
@Deprecated
public static <S,A> Class<RestContextBuilder<S,A>> resolveContextBuilderClass(String provider,
Properties properties)
throws ClassNotFoundException,
IllegalArgumentException,
SecurityException,
InstantiationException,
IllegalAccessException,
InvocationTargetException,
NoSuchMethodException
ClassNotFoundException
IllegalArgumentException
SecurityException
InstantiationException
IllegalAccessException
InvocationTargetException
NoSuchMethodExceptionProviders.resolveContextBuilderClass(java.lang.String, java.util.Properties)
@Deprecated
public static <S,A> RestContextBuilder<S,A> initContextBuilder(Class<RestContextBuilder<S,A>> contextBuilderClass,
@Nullable
Class<S> sync,
@Nullable
Class<A> async,
Properties properties)
throws ClassNotFoundException,
IllegalArgumentException,
SecurityException,
InstantiationException,
IllegalAccessException,
InvocationTargetException,
NoSuchMethodException
ClassNotFoundException
IllegalArgumentException
SecurityException
InstantiationException
IllegalAccessException
InvocationTargetException
NoSuchMethodExceptionProviders.initContextBuilder(java.lang.Class>, java.lang.Class, java.lang.Class, java.util.Properties)
@Deprecated
public static Class<PropertiesBuilder> resolvePropertiesBuilderClass(String providerName,
Properties props)
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException,
InvocationTargetException,
NoSuchMethodException
ClassNotFoundException
InstantiationException
IllegalAccessException
InvocationTargetException
NoSuchMethodExceptionProviders.resolvePropertiesBuilderClass(java.lang.String, java.util.Properties)
@Deprecated
public static Iterable<com.google.inject.Module> modulesForProviderInProperties(String providerName,
Properties props)
Modules#modulesForProviderInProperties
@Deprecated
public static Iterable<com.google.inject.Module> modulesFromProperty(Properties props,
String property)
Modules#modulesFromProperty@Deprecated public static Iterable<com.google.inject.Module> modulesFromCommaDelimitedString(String moduleClasses)
Modules#modulesFromCommaDelimitedString@Deprecated public static boolean isPrivateKeyCredential(Credentials credentials)
CredentialUtils.isPrivateKeyCredential(org.jclouds.domain.Credentials)
@Deprecated
public static Credentials overrideCredentialsIfSupplied(Credentials defaultCredentials,
@Nullable
Credentials overridingCredentials)
CredentialUtils.overrideCredentialsIfSupplied(org.jclouds.domain.Credentials, org.jclouds.domain.Credentials)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||