Refine search
@Override public Properties getDefaultProperties() { Properties properties = BaseHttpApiMetadata.defaultProperties(); properties.setProperty(PROPERTY_AUTO_DETECT_CONTENT_TYPE, "false"); return properties; }
public static Properties defaultProperties() { Properties properties = BaseHttpApiMetadata.defaultProperties(); properties.put("oauth.endpoint", "https://accounts.google.com/o/oauth2/token"); properties.put(AUDIENCE, "https://accounts.google.com/o/oauth2/token"); properties.put(SIGNATURE_OR_MAC_ALGORITHM, "RS256"); properties.put(PROPERTY_SESSION_INTERVAL, 3600); properties.setProperty(TEMPLATE, "osFamily=GCEL,osVersionMatches=1[012].[01][04],locationId=us-central1-a," + "loginUser=jclouds"); properties.put(OPERATION_COMPLETE_INTERVAL, 500); properties.put(OPERATION_COMPLETE_TIMEOUT, 600000); return properties; }
public static Properties defaultProperties() { Properties properties = BaseHttpApiMetadata.defaultProperties(); properties.put(SIGNATURE_OR_MAC_ALGORITHM, "RS256"); properties.put(PROPERTY_SESSION_INTERVAL, 3600); return properties; }
private void init() { api(api) .name(api.getSimpleName()) .context(contextToken(typeToken(api))) .defaultProperties(BaseHttpApiMetadata.defaultProperties()); }
public static Properties defaultProperties() { Properties properties = BaseHttpApiMetadata.defaultProperties(); return properties; }
@Override protected ToStringHelper string() { return super.string().add("api", getApi()); } }
@SuppressWarnings("unchecked") @Override protected void configure() { TypeToken<?> concreteType = BaseHttpApiMetadata.contextToken(typeToken(httpApiMetadata.getApi())); // bind explicit type bind(TypeLiteral.get(concreteType.getType())).to( TypeLiteral.class.cast(TypeLiteral.get(Types.newParameterizedType(ApiContextImpl.class, httpApiMetadata.getApi())))); // bind potentially wildcard type if (!concreteType.equals(httpApiMetadata.getContext())) { bind(TypeLiteral.get(httpApiMetadata.getContext().getType())).to( TypeLiteral.class.cast(TypeLiteral.get(Types.newParameterizedType(ApiContextImpl.class, httpApiMetadata.getApi())))); } // bind w/o types bind(TypeLiteral.get(ApiContext.class)).to( TypeLiteral.class.cast(TypeLiteral.get(Types.newParameterizedType(ApiContextImpl.class, httpApiMetadata.getApi())))); } }
public static Properties defaultProperties() { Properties properties = BaseHttpApiMetadata.defaultProperties(); properties.put("oauth.endpoint", "https://accounts.google.com/o/oauth2/token"); properties.put(AUDIENCE, "https://accounts.google.com/o/oauth2/token"); properties.put(SIGNATURE_OR_MAC_ALGORITHM, "RS256"); properties.put(PROPERTY_SESSION_INTERVAL, 3600); properties.setProperty(TEMPLATE, "osFamily=DEBIAN,osVersionMatches=7\\..*,locationId=us-central1-a,loginUser=jclouds"); properties.put(OPERATION_COMPLETE_INTERVAL, 500); properties.put(OPERATION_COMPLETE_TIMEOUT, 600000); return properties; }
public static Properties defaultProperties() { Properties properties = BaseHttpApiMetadata.defaultProperties(); properties.put(SIGNATURE_OR_MAC_ALGORITHM, "RS256"); properties.put(PROPERTY_SESSION_INTERVAL, 3600); return properties; }
private void init() { api(api) .name(api.getSimpleName()) .context(contextToken(typeToken(api))) .defaultProperties(BaseHttpApiMetadata.defaultProperties()); }
@Override protected ToStringHelper string() { return super.string().add("api", getApi()); } }
@SuppressWarnings("unchecked") @Override protected void configure() { TypeToken<?> concreteType = BaseHttpApiMetadata.contextToken(typeToken(httpApiMetadata.getApi())); // bind explicit type bind(TypeLiteral.get(concreteType.getType())).to( TypeLiteral.class.cast(TypeLiteral.get(Types.newParameterizedType(ApiContextImpl.class, httpApiMetadata.getApi())))); // bind potentially wildcard type if (!concreteType.equals(httpApiMetadata.getContext())) { bind(TypeLiteral.get(httpApiMetadata.getContext().getType())).to( TypeLiteral.class.cast(TypeLiteral.get(Types.newParameterizedType(ApiContextImpl.class, httpApiMetadata.getApi())))); } // bind w/o types bind(TypeLiteral.get(ApiContext.class)).to( TypeLiteral.class.cast(TypeLiteral.get(Types.newParameterizedType(ApiContextImpl.class, httpApiMetadata.getApi())))); } }
public static Properties defaultProperties() { Properties properties = BaseHttpApiMetadata.defaultProperties(); // By default the provided credential is not a token properties.setProperty(CREDENTIAL_TYPE, "password"); return properties; }
public static Properties defaultProperties() { Properties properties = BaseHttpApiMetadata.defaultProperties(); properties.put("oauth.endpoint", "https://accounts.google.com/o/oauth2/token"); properties.put(AUDIENCE, "https://accounts.google.com/o/oauth2/token"); properties.put(JWS_ALG, "RS256"); properties.put(PROPERTY_SESSION_INTERVAL, 3600); properties.put(OPERATION_COMPLETE_INTERVAL, 2000); properties.put(OPERATION_COMPLETE_TIMEOUT, 600000); properties.setProperty(PROPERTY_IDEMPOTENT_METHODS, "DELETE,GET,HEAD,OPTIONS,POST,PUT"); return properties; }
private void init() { api(api) .name(api.getSimpleName()) .context(contextToken(typeToken(api))) .defaultProperties(BaseHttpApiMetadata.defaultProperties()); }
@Override protected ToStringHelper string() { return super.string().add("api", getApi()); } }
@SuppressWarnings("unchecked") @Override protected void configure() { TypeToken<?> concreteType = BaseHttpApiMetadata.contextToken(typeToken(httpApiMetadata.getApi())); // bind explicit type bind(TypeLiteral.get(concreteType.getType())).to( TypeLiteral.class.cast(TypeLiteral.get(Types.newParameterizedType(ApiContextImpl.class, httpApiMetadata.getApi())))); // bind potentially wildcard type if (!concreteType.equals(httpApiMetadata.getContext())) { bind(TypeLiteral.get(httpApiMetadata.getContext().getType())).to( TypeLiteral.class.cast(TypeLiteral.get(Types.newParameterizedType(ApiContextImpl.class, httpApiMetadata.getApi())))); } // bind w/o types bind(TypeLiteral.get(ApiContext.class)).to( TypeLiteral.class.cast(TypeLiteral.get(Types.newParameterizedType(ApiContextImpl.class, httpApiMetadata.getApi())))); } }
public static Properties defaultProperties() { Properties properties = BaseHttpApiMetadata.defaultProperties(); properties.setProperty(PROPERTY_USER_METADATA_PREFIX, "x-ms-meta-"); return properties; }
private void init() { api(api) .name(api.getSimpleName()) .context(contextToken(typeToken(api))) .defaultProperties(BaseHttpApiMetadata.defaultProperties()); }
@Override protected ToStringHelper string() { return super.string().add("api", getApi()); } }