You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Arturo Bernal (Jira)" <ji...@apache.org> on 2021/11/24 11:58:00 UTC

[jira] [Updated] (HTTPCLIENT-2189) Use Time APIs for date for the remain classes in the HttpClient API.

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-2189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arturo Bernal updated HTTPCLIENT-2189:
--------------------------------------
    Description: 
 

 

Please note that I gonna need to add a new patter to allow deserializer object.

 
{code:java}
Pattern.compile("^(?:\\[+L)?java\\.time\\..*$"),{code}
 

the result should be something like

 
{code:java}
private static final List<Pattern> ALLOWED_CLASS_PATTERNS = Collections.unmodifiableList(Arrays.asList(
        Pattern.compile("^(\\[L)?org\\.apache\\.hc\\.(.*)"),
        Pattern.compile("^(?:\\[+L)?java\\.util\\..*$"), // java 8 time
        Pattern.compile("^(?:\\[+L)?java\\.lang\\..*$"),
        Pattern.compile("^(?:\\[+L)?java\\.time\\..*$"),
        Pattern.compile("^\\[+Z$"), // boolean
        Pattern.compile("^\\[+B$"), // byte
        Pattern.compile("^\\[+C$"), // char
        Pattern.compile("^\\[+D$"), // double
        Pattern.compile("^\\[+F$"), // float
        Pattern.compile("^\\[+I$"), // int
        Pattern.compile("^\\[+J$"), // long
        Pattern.compile("^\\[+S$") // short
));{code}
 

> Use Time APIs for date for the remain classes in the HttpClient API.
> --------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-2189
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2189
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>            Reporter: Arturo Bernal
>            Priority: Minor
>
>  
>  
> Please note that I gonna need to add a new patter to allow deserializer object.
>  
> {code:java}
> Pattern.compile("^(?:\\[+L)?java\\.time\\..*$"),{code}
>  
> the result should be something like
>  
> {code:java}
> private static final List<Pattern> ALLOWED_CLASS_PATTERNS = Collections.unmodifiableList(Arrays.asList(
>         Pattern.compile("^(\\[L)?org\\.apache\\.hc\\.(.*)"),
>         Pattern.compile("^(?:\\[+L)?java\\.util\\..*$"), // java 8 time
>         Pattern.compile("^(?:\\[+L)?java\\.lang\\..*$"),
>         Pattern.compile("^(?:\\[+L)?java\\.time\\..*$"),
>         Pattern.compile("^\\[+Z$"), // boolean
>         Pattern.compile("^\\[+B$"), // byte
>         Pattern.compile("^\\[+C$"), // char
>         Pattern.compile("^\\[+D$"), // double
>         Pattern.compile("^\\[+F$"), // float
>         Pattern.compile("^\\[+I$"), // int
>         Pattern.compile("^\\[+J$"), // long
>         Pattern.compile("^\\[+S$") // short
> ));{code}
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org