public static Properties defaultProperties() { Properties properties = BaseRestApiMetadata.defaultProperties(); return properties; }
@Override protected ToStringHelper string() { return super.string().add("api", getApi()).add("asyncApi", getAsyncApi()); } }
protected Builder(Class<?> api, Class<?> asyncApi) { checkNotNull(api, "api"); checkNotNull(asyncApi, "asyncApi"); javaApi(api, asyncApi) .name(String.format("%s->%s", api.getSimpleName(), asyncApi.getSimpleName())) .context(contextToken(typeToken(api), typeToken(asyncApi))) .defaultProperties(BaseRestApiMetadata.defaultProperties()); }
@SuppressWarnings("unchecked") @Override protected void configure() { TypeToken<?> concreteType = BaseRestApiMetadata.contextToken(typeToken(restApiMetadata.getApi()), typeToken(restApiMetadata.getAsyncApi())); // bind explicit type bind(TypeLiteral.get(concreteType.getType())).to( TypeLiteral.class.cast(TypeLiteral.get(Types.newParameterizedType(RestContextImpl.class, restApiMetadata.getApi(), restApiMetadata.getAsyncApi())))); // bind potentially wildcard type if (!concreteType.equals(restApiMetadata.getContext())) { bind(TypeLiteral.get(restApiMetadata.getContext().getType())).to( TypeLiteral.class.cast(TypeLiteral.get(Types.newParameterizedType(RestContextImpl.class, restApiMetadata.getApi(), restApiMetadata.getAsyncApi())))); } // bind w/o types bind(TypeLiteral.get(RestContext.class)).to( TypeLiteral.class.cast(TypeLiteral.get(Types.newParameterizedType(RestContextImpl.class, restApiMetadata.getApi(), restApiMetadata.getAsyncApi())))); } }
protected Builder(Class<?> api, Class<?> asyncApi) { checkNotNull(api, "api"); checkNotNull(asyncApi, "asyncApi"); javaApi(api, asyncApi) .name(String.format("%s->%s", api.getSimpleName(), asyncApi.getSimpleName())) .context(contextToken(typeToken(api), typeToken(asyncApi))) .defaultProperties(BaseRestApiMetadata.defaultProperties()); }
@SuppressWarnings("unchecked") @Override protected void configure() { TypeToken<?> concreteType = BaseRestApiMetadata.contextToken(typeToken(restApiMetadata.getApi()), typeToken(restApiMetadata.getAsyncApi())); // bind explicit type bind(TypeLiteral.get(concreteType.getType())).to( TypeLiteral.class.cast(TypeLiteral.get(Types.newParameterizedType(RestContextImpl.class, restApiMetadata.getApi(), restApiMetadata.getAsyncApi())))); // bind potentially wildcard type if (!concreteType.equals(restApiMetadata.getContext())) { bind(TypeLiteral.get(restApiMetadata.getContext().getType())).to( TypeLiteral.class.cast(TypeLiteral.get(Types.newParameterizedType(RestContextImpl.class, restApiMetadata.getApi(), restApiMetadata.getAsyncApi())))); } // bind w/o types bind(TypeLiteral.get(RestContext.class)).to( TypeLiteral.class.cast(TypeLiteral.get(Types.newParameterizedType(RestContextImpl.class, restApiMetadata.getApi(), restApiMetadata.getAsyncApi())))); } }
public static Properties defaultProperties() { Properties properties = BaseRestApiMetadata.defaultProperties(); return properties; }
protected Builder(Class<?> api, Class<?> asyncApi) { checkNotNull(api, "api"); checkNotNull(asyncApi, "asyncApi"); javaApi(api, asyncApi) .name(String.format("%s->%s", api.getSimpleName(), asyncApi.getSimpleName())) .context(contextToken(typeToken(api), typeToken(asyncApi))) .defaultProperties(BaseRestApiMetadata.defaultProperties()); }
@Override protected ToStringHelper string() { return super.string().add("api", getApi()).add("asyncApi", getAsyncApi()); } }
@SuppressWarnings("unchecked") @Override protected void configure() { TypeToken<?> concreteType = BaseRestApiMetadata.contextToken(typeToken(restApiMetadata.getApi()), typeToken(restApiMetadata.getAsyncApi())); // bind explicit type bind(TypeLiteral.get(concreteType.getType())).to( TypeLiteral.class.cast(TypeLiteral.get(Types.newParameterizedType(RestContextImpl.class, restApiMetadata.getApi(), restApiMetadata.getAsyncApi())))); // bind potentially wildcard type if (!concreteType.equals(restApiMetadata.getContext())) { bind(TypeLiteral.get(restApiMetadata.getContext().getType())).to( TypeLiteral.class.cast(TypeLiteral.get(Types.newParameterizedType(RestContextImpl.class, restApiMetadata.getApi(), restApiMetadata.getAsyncApi())))); } // bind w/o types bind(TypeLiteral.get(RestContext.class)).to( TypeLiteral.class.cast(TypeLiteral.get(Types.newParameterizedType(RestContextImpl.class, restApiMetadata.getApi(), restApiMetadata.getAsyncApi())))); } }
public static Properties defaultProperties() { Properties properties = BaseRestApiMetadata.defaultProperties(); return properties; }
@Override protected ToStringHelper string() { return super.string().add("api", getApi()).add("asyncApi", getAsyncApi()); } }
public static Properties defaultProperties() { Properties properties = BaseRestApiMetadata.defaultProperties(); return properties; }
public static Properties defaultProperties() { return BaseRestApiMetadata.defaultProperties(); }
public static Properties defaultProperties() { Properties properties = BaseRestApiMetadata.defaultProperties(); properties.setProperty(PROPERTY_USER_METADATA_PREFIX, "x-ms-meta-"); return properties; }
public static Properties defaultProperties() { Properties properties = BaseRestApiMetadata.defaultProperties(); // enables peer verification using the CAs bundled with the JRE (or // value of javax.net.ssl.trustStore if set) properties.setProperty(Constants.PROPERTY_TRUST_ALL_CERTS, "false"); // properties.setProperty("jclouds.ssh.max-retries", "5"); // properties.setProperty("jclouds.ssh.retry-auth", "true"); return properties; }
public static Properties defaultProperties() { Properties properties = BaseRestApiMetadata.defaultProperties(); properties.setProperty(PROPERTY_USER_METADATA_PREFIX, "x-ms-meta-"); return properties; }
public static Properties defaultProperties() { Properties properties = BaseRestApiMetadata.defaultProperties(); properties.setProperty(SDCProperties.AUTOGENERATE_KEYS, "true"); return properties; }
public static Properties defaultProperties() { Properties properties = BaseRestApiMetadata.defaultProperties(); properties.setProperty(PROPERTY_USER_METADATA_PREFIX, "x-ms-meta-"); return properties; }
public static Properties defaultProperties() { Properties properties = BaseRestApiMetadata.defaultProperties(); properties.setProperty(PROPERTY_AUTH_TAG, "AWS"); properties.setProperty(PROPERTY_HEADER_TAG, "amz"); return properties; }