You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Johannes Koch (JIRA)" <ji...@apache.org> on 2010/02/23 09:39:27 UTC

[jira] Commented: (HTTPCLIENT-916) RFE: Make Credentials Serializable

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837140#action_12837140 ] 

Johannes Koch commented on HTTPCLIENT-916:
------------------------------------------

AFAIK, classes implementing Serializable must have a non-argument constructor and non-final member variables. This would have to be changed. However, I support this request. Or add a way to create serializable versions of Credentials (and Headers?).

> RFE: Make Credentials Serializable
> ----------------------------------
>
>                 Key: HTTPCLIENT-916
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-916
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpClient
>    Affects Versions: 4.0.1
>            Reporter: Daniel Gredler
>            Priority: Minor
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> I've been working on upgrading the HtmlUnit library to use HttpClient 4, and I've realized that we could eliminate some hackish internal code if Credentials instances were Serializable. I don't really see a downside, and this would be a huge convenience for us.
> The change would involve making the org.apache.http.auth.Credentials interface extend Serializable, and having org.apache.http.auth.BasicUserPrincipal and org.apache.http.auth.NTUserPrincipal implement Serializable (plus serialVersionUIDs where appropriate, I guess).

-- 
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