You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juneau.apache.org by "Peter Haumer (JIRA)" <ji...@apache.org> on 2018/07/26 00:16:00 UTC

[jira] [Commented] (JUNEAU-83) Cannot subclass RestClient and RestClientBuilder

    [ https://issues.apache.org/jira/browse/JUNEAU-83?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16556441#comment-16556441 ] 

Peter Haumer commented on JUNEAU-83:
------------------------------------

The RestClient constructor should public so that it can be called by the subclassed builder.

> Cannot subclass RestClient and RestClientBuilder
> ------------------------------------------------
>
>                 Key: JUNEAU-83
>                 URL: https://issues.apache.org/jira/browse/JUNEAU-83
>             Project: Juneau
>          Issue Type: Bug
>          Components: Code
>    Affects Versions: 7.1.0
>            Reporter: Peter Haumer
>            Priority: Major
>
> The Javadoc for the RestClient shows various examples and mentions that users can subclass the RestClientBuilder to extend it. It shows how to do that for doing FORM-based auth and connecting to a Jazz server.  However, currently RestClient and RestClientBuilder's constructors are limited to package visibility. If you would change them to protected visibility they could be subclassed again and the examples provided in the doc will work again. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)