org.glassfish.jersey.server.internal.inject.AbstractContainerRequestValueSupplier to org.glassfish.jersey.server.internal.inject.AbstractRequestDerivedValueSupplier
No. of Instances - 22
No. of Commits - 2
No. of Projects - {'jersey'}
Hierarchy/Composition: SIBLING
Primitive Info: -
NameSpace: Internal -> Internal
Mapping:
- Update argument list (Class Instance Creation)
- WebTargetValueSupplier to WebTargetValueSupplier
- FormParamValueSupplier to FormParamValueSupplier
- EntityValueSupplier to EntityValueSupplier
- ListFormDataBodyPartValueSupplier to ListFormDataBodyPartValueSupplier
- ListFormDataContentDispositionSupplier to ListFormDataContentDispositionSupplier
- FormDataParamValueSupplier to FormDataParamValueSupplier
- FormDataBodyPartSupplier to FormDataBodyPartSupplier
- FormDataContentDispositionSupplier to FormDataContentDispositionSupplier
- FileSupplier to FileSupplier
- FormDataParamValueSupplier to FormDataParamValueSupplier
- PathParamPathSegmentValueSupplier to PathParamPathSegmentValueSupplier
- PathParamListPathSegmentValueSupplier to PathParamListPathSegmentValueSupplier
- PathParamValueSupplier to PathParamValueSupplier
- MatrixParamValueSupplier to MatrixParamValueSupplier
- BeanParamValueSupplier to BeanParamValueSupplier
- HeaderParamValueSupplier to HeaderParamValueSupplier
- QueryParamValueSupplier to QueryParamValueSupplier
- CookieTypeParamValueSupplier to CookieTypeParamValueSupplier
- CookieParamValueSupplier to CookieParamValueSupplier
- FormParamValueSupplier to FormParamValueSupplier
- ListFormDataBodyPartValueSupplier to ListFormDataBodyPartValueSupplier
- ListFormDataContentDispositionSupplier to ListFormDataContentDispositionSupplier
- FormDataParamValueSupplier to FormDataParamValueSupplier
- FormDataBodyPartSupplier to FormDataBodyPartSupplier
- FormDataContentDispositionSupplier to FormDataContentDispositionSupplier
- FileSupplier to FileSupplier
- FormDataParamValueSupplier to FormDataParamValueSupplier
- CookieTypeParamValueSupplier to CookieTypeParamValueSupplier
- CookieParamValueSupplier to CookieParamValueSupplier
- QueryParamValueSupplier to QueryParamValueSupplier
- PathParamPathSegmentValueSupplier to PathParamPathSegmentValueSupplier
- PathParamListPathSegmentValueSupplier to PathParamListPathSegmentValueSupplier
- PathParamValueSupplier to PathParamValueSupplier
- WebTargetValueSupplier to WebTargetValueSupplier
- MatrixParamValueSupplier to MatrixParamValueSupplier
- BeanParamValueSupplier to BeanParamValueSupplier
- HeaderParamValueSupplier to HeaderParamValueSupplier
- EntityValueSupplier to EntityValueSupplier
- Cascading Type Change (Similar)
- Producer<AbstractContainerRequestValueSupplier<?>> to Producer<AbstractRequestDerivedValueSupplier<?>>
- Producer<AbstractContainerRequestValueSupplier<?>> to Producer<AbstractRequestDerivedValueSupplier<?>>
- Update Anonymous class
- { @Override public AbstractContainerRequestValueSupplier<?> call(){ String targetUriTemplate=parameter.getSourceName(); if (targetUriTemplate == null || targetUriTemplate.length() == 0) { Errors.warning(this,LocalizationMessages.INJECTED_WEBTARGET_URI_INVALID(targetUriTemplate)); return null; } final Class<?> rawParameterType=parameter.getRawType(); if (rawParameterType == WebTarget.class) { final BindingModel binding=BindingModel.create(Arrays.<Annotation>asList(parameter.getAnnotations())); Value<ManagedClient> client=managedClients.get(binding); if (client == null) { client=Values.lazy(new Value<ManagedClient>(){ @Override public ManagedClient get(){ final String prefix=binding.getAnnotation().annotationType().getName() + "."; final String baseUriProperty=prefix + "baseUri"; final Object bu=serverConfig.getProperty(baseUriProperty); final String customBaseUri=(bu != null) ? bu.toString() : binding.baseUri(); final String configClassProperty=prefix + "configClass"; final ClientConfig cfg=resolveConfig(configClassProperty,binding); final String inheritProvidersProperty=prefix + "inheritServerProviders"; if (PropertiesHelper.isProperty(serverConfig.getProperty(inheritProvidersProperty)) || binding.inheritProviders()) { copyProviders(serverConfig,cfg); } final String propertyPrefix=prefix + "property."; Collection<String> clientProperties=Collections2.filter(serverConfig.getPropertyNames(),new Predicate<String>(){ @Override public boolean apply( String property){ return property.startsWith(propertyPrefix); } } ); for ( String property : clientProperties) { cfg.property(property.substring(propertyPrefix.length()),serverConfig.getProperty(property)); } return new ManagedClient(ClientBuilder.newClient(cfg),customBaseUri); } } ); final Value<ManagedClient> previous=managedClients.putIfAbsent(binding,client); if (previous != null) { client=previous; } } return new WebTargetValueSupplier(targetUriTemplate,client); } else { Errors.warning(this,LocalizationMessages.UNSUPPORTED_URI_INJECTION_TYPE(rawParameterType)); return null; } } } to { @Override public AbstractRequestDerivedValueSupplier<?> call(){ String targetUriTemplate=parameter.getSourceName(); if (targetUriTemplate == null || targetUriTemplate.length() == 0) { Errors.warning(this,LocalizationMessages.INJECTED_WEBTARGET_URI_INVALID(targetUriTemplate)); return null; } final Class<?> rawParameterType=parameter.getRawType(); if (rawParameterType == WebTarget.class) { final BindingModel binding=BindingModel.create(Arrays.<Annotation>asList(parameter.getAnnotations())); Value<ManagedClient> client=managedClients.get(binding); if (client == null) { client=Values.lazy(new Value<ManagedClient>(){ @Override public ManagedClient get(){ final String prefix=binding.getAnnotation().annotationType().getName() + "."; final String baseUriProperty=prefix + "baseUri"; final Object bu=serverConfig.getProperty(baseUriProperty); final String customBaseUri=(bu != null) ? bu.toString() : binding.baseUri(); final String configClassProperty=prefix + "configClass"; final ClientConfig cfg=resolveConfig(configClassProperty,binding); final String inheritProvidersProperty=prefix + "inheritServerProviders"; if (PropertiesHelper.isProperty(serverConfig.getProperty(inheritProvidersProperty)) || binding.inheritProviders()) { copyProviders(serverConfig,cfg); } final String propertyPrefix=prefix + "property."; Collection<String> clientProperties=Collections2.filter(serverConfig.getPropertyNames(),new Predicate<String>(){ @Override public boolean apply( String property){ return property.startsWith(propertyPrefix); } } ); for ( String property : clientProperties) { cfg.property(property.substring(propertyPrefix.length()),serverConfig.getProperty(property)); } return new ManagedClient(ClientBuilder.newClient(cfg),customBaseUri); } } ); final Value<ManagedClient> previous=managedClients.putIfAbsent(binding,client); if (previous != null) { client=previous; } } return new WebTargetValueSupplier(targetUriTemplate,client,requestProvider); } else { Errors.warning(this,LocalizationMessages.UNSUPPORTED_URI_INJECTION_TYPE(rawParameterType)); return null; } } }
- { @Override public AbstractContainerRequestValueSupplier<?> call(){ String targetUriTemplate=parameter.getSourceName(); if (targetUriTemplate == null || targetUriTemplate.length() == 0) { Errors.warning(this,LocalizationMessages.INJECTED_WEBTARGET_URI_INVALID(targetUriTemplate)); return null; } final Class<?> rawParameterType=parameter.getRawType(); if (rawParameterType == WebTarget.class) { final BindingModel binding=BindingModel.create(Arrays.<Annotation>asList(parameter.getAnnotations())); Value<ManagedClient> client=managedClients.get(binding); if (client == null) { client=Values.lazy(new Value<ManagedClient>(){ @Override public ManagedClient get(){ final String prefix=binding.getAnnotation().annotationType().getName() + "."; final String baseUriProperty=prefix + "baseUri"; final Object bu=serverConfig.getProperty(baseUriProperty); final String customBaseUri=(bu != null) ? bu.toString() : binding.baseUri(); final String configClassProperty=prefix + "configClass"; final ClientConfig cfg=resolveConfig(configClassProperty,binding); final String inheritProvidersProperty=prefix + "inheritServerProviders"; if (PropertiesHelper.isProperty(serverConfig.getProperty(inheritProvidersProperty)) || binding.inheritProviders()) { copyProviders(serverConfig,cfg); } final String propertyPrefix=prefix + "property."; Collection<String> clientProperties=serverConfig.getPropertyNames().stream().filter(property -> property.startsWith(propertyPrefix)).collect(Collectors.toSet()); for ( String property : clientProperties) { cfg.property(property.substring(propertyPrefix.length()),serverConfig.getProperty(property)); } return new ManagedClient(ClientBuilder.newClient(cfg),customBaseUri); } } ); final Value<ManagedClient> previous=managedClients.putIfAbsent(binding,client); if (previous != null) { client=previous; } } return new WebTargetValueSupplier(targetUriTemplate,client); } else { Errors.warning(this,LocalizationMessages.UNSUPPORTED_URI_INJECTION_TYPE(rawParameterType)); return null; } } } to { @Override public AbstractRequestDerivedValueSupplier<?> call(){ String targetUriTemplate=parameter.getSourceName(); if (targetUriTemplate == null || targetUriTemplate.length() == 0) { Errors.warning(this,LocalizationMessages.INJECTED_WEBTARGET_URI_INVALID(targetUriTemplate)); return null; } final Class<?> rawParameterType=parameter.getRawType(); if (rawParameterType == WebTarget.class) { final BindingModel binding=BindingModel.create(Arrays.<Annotation>asList(parameter.getAnnotations())); Value<ManagedClient> client=managedClients.get(binding); if (client == null) { client=Values.lazy(new Value<ManagedClient>(){ @Override public ManagedClient get(){ final String prefix=binding.getAnnotation().annotationType().getName() + "."; final String baseUriProperty=prefix + "baseUri"; final Object bu=serverConfig.getProperty(baseUriProperty); final String customBaseUri=(bu != null) ? bu.toString() : binding.baseUri(); final String configClassProperty=prefix + "configClass"; final ClientConfig cfg=resolveConfig(configClassProperty,binding); final String inheritProvidersProperty=prefix + "inheritServerProviders"; if (PropertiesHelper.isProperty(serverConfig.getProperty(inheritProvidersProperty)) || binding.inheritProviders()) { copyProviders(serverConfig,cfg); } final String propertyPrefix=prefix + "property."; Collection<String> clientProperties=serverConfig.getPropertyNames().stream().filter(property -> property.startsWith(propertyPrefix)).collect(Collectors.toSet()); for ( String property : clientProperties) { cfg.property(property.substring(propertyPrefix.length()),serverConfig.getProperty(property)); } return new ManagedClient(ClientBuilder.newClient(cfg),customBaseUri); } } ); final Value<ManagedClient> previous=managedClients.putIfAbsent(binding,client); if (previous != null) { client=previous; } } return new WebTargetValueSupplier(targetUriTemplate,client,requestProvider); } else { Errors.warning(this,LocalizationMessages.UNSUPPORTED_URI_INJECTION_TYPE(rawParameterType)); return null; } } }
- Other