You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Stojce Dimski (JIRA)" <ji...@apache.org> on 2008/02/15 16:20:08 UTC
[jira] Created: (HTTPCLIENT-748) make SchemeRegistry friendlier for
DI frameworks
make SchemeRegistry friendlier for DI frameworks
------------------------------------------------
Key: HTTPCLIENT-748
URL: https://issues.apache.org/jira/browse/HTTPCLIENT-748
Project: HttpComponents HttpClient
Issue Type: Improvement
Components: HttpConn
Reporter: Stojce Dimski
Priority: Minor
Scheme's in SchemeRegistry are registered via 'register' method, but there is no way to pass it a set of schemes so those can be registered in one step. This way it can be externally configured and 'spring/guice friendly'... something like this is sufficient...
public void setSchemes (final Set <Scheme> schemes) {
for (final Scheme scheme : schemes)
register(scheme);
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org
[jira] Updated: (HTTPCLIENT-748) make SchemeRegistry friendlier for
DI frameworks
Posted by "Stojce Dimski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCLIENT-748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stojce Dimski updated HTTPCLIENT-748:
-------------------------------------
Attachment: schemeRegistry.patch
for other two I will investigate
> make SchemeRegistry friendlier for DI frameworks
> ------------------------------------------------
>
> Key: HTTPCLIENT-748
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-748
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: HttpAuth, HttpConn, HttpCookie
> Reporter: Stojce Dimski
> Priority: Minor
> Fix For: 4.0 Alpha 4
>
> Attachments: schemeRegistry.patch
>
>
> Scheme's in SchemeRegistry are registered via 'register' method, but there is no way to pass it a set of schemes so those can be registered in one step. This way it can be externally configured and 'spring/guice friendly'... something like this is sufficient...
> public void setSchemes (final Set <Scheme> schemes) {
> for (final Scheme scheme : schemes)
> register(scheme);
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org
[jira] Resolved: (HTTPCLIENT-748) make SchemeRegistry friendlier
for DI frameworks
Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCLIENT-748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski resolved HTTPCLIENT-748.
------------------------------------------
Resolution: Fixed
Implemented in SVN trunk
Oleg
> make SchemeRegistry friendlier for DI frameworks
> ------------------------------------------------
>
> Key: HTTPCLIENT-748
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-748
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: HttpAuth, HttpConn, HttpCookie
> Reporter: Stojce Dimski
> Priority: Minor
> Fix For: 4.0 Alpha 4
>
> Attachments: schemeRegistry.patch
>
>
> Scheme's in SchemeRegistry are registered via 'register' method, but there is no way to pass it a set of schemes so those can be registered in one step. This way it can be externally configured and 'spring/guice friendly'... something like this is sufficient...
> public void setSchemes (final Set <Scheme> schemes) {
> for (final Scheme scheme : schemes)
> register(scheme);
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org
[jira] Updated: (HTTPCLIENT-748) make SchemeRegistry friendlier for
DI frameworks
Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCLIENT-748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski updated HTTPCLIENT-748:
-----------------------------------------
Component/s: HttpCookie
HttpAuth
Fix Version/s: 4.0 Alpha 4
Similar change should also be made to CookieSpecRegistry and AuthSchemeRegistry classes. I'll be happily to check in a patch ;-)
Oleg
> make SchemeRegistry friendlier for DI frameworks
> ------------------------------------------------
>
> Key: HTTPCLIENT-748
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-748
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: HttpAuth, HttpConn, HttpCookie
> Reporter: Stojce Dimski
> Priority: Minor
> Fix For: 4.0 Alpha 4
>
>
> Scheme's in SchemeRegistry are registered via 'register' method, but there is no way to pass it a set of schemes so those can be registered in one step. This way it can be externally configured and 'spring/guice friendly'... something like this is sufficient...
> public void setSchemes (final Set <Scheme> schemes) {
> for (final Scheme scheme : schemes)
> register(scheme);
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org