<div dir="ltr"><div><br></div>Exactly, is what I used to replace RESTEasy proxy feature,  but I&#39;m agree with Bill that there should be a standard way of creating proxies. <div><br></div><div>Also the Multipart stuff use RESTEasy-specific object:</div><div><br></div><div><span style="font-family:Menlo;color:rgb(0,0,128);font-weight:bold">import </span><span style="color:rgb(0,0,0);font-family:Menlo">org.jboss.resteasy.plugins.providers.</span><span style="color:rgb(0,0,0);font-family:Menlo;background-color:rgb(228,228,255)">multipart</span><span style="color:rgb(0,0,0);font-family:Menlo">.MultipartFormDataOutput;</span> </div><div><br></div><div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-08-09 15:48 GMT+02:00 Marek Posolda <span dir="ltr">&lt;<a href="mailto:mposolda@redhat.com" target="_blank">mposolda@redhat.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>It seems that at least CXF has
      something very similar too -
<a href="https://github.com/luigidemasi/keycloak-cxf-admin-client/blob/master/src/main/java/org/keycloak/admin/client/Keycloak.java#L96-L103" target="_blank">https://github.com/<wbr>luigidemasi/keycloak-cxf-<wbr>admin-client/blob/master/src/<wbr>main/java/org/keycloak/admin/<wbr>client/Keycloak.java#L96-L103</a><span class="HOEnZb"><font color="#888888"><br>
      <br>
      Marek</font></span><div><div class="h5"><br>
      <br>
      On 09/08/16 15:22, Bill Burke wrote:<br>
    </div></div></div><div><div class="h5">
    <blockquote type="cite">
      
      <p>I wish the JAX-RS JSR would just standardize the proxy stuff
        that is in Resteasy.  They were being stubborn and refused to
        accept my submission for it even though it is a much used
        feature.  Then we wouldn&#39;t have to have separate clients for CXF
        and Resteasy.  Somebody could probably pull it out of Resteasy
        and make it generic so it could run on any JAX-RS platform.<br>
      </p>
      <br>
      <div>On 8/9/16 8:57 AM, Marek Posolda
        wrote:<br>
      </div>
      <blockquote type="cite">
        
        <div>Cool, Thanks for sharing this!<br>
          <br>
          This might be useful to be available in Keycloak OOTB, so
          admin-client can pick either resteasy or CXF (or any other
          available impl) according to what is available. If you want to
          create JIRA and send PR it will be good <span><span> :-) </span></span><br>
          <br>
          Marek<br>
          <br>
          <br>
          On 04/08/16 18:36, Luigi De Masi wrote:<br>
        </div>
        <blockquote type="cite">
          <div dir="ltr">
            <div>Hi, </div>
            <div><br>
            </div>
            <div>I&#39;m working on a Spring boot + Fuse integration Service
              project that use cxf to expose restful web services and KC
              admin client to manage users in a realm.</div>
            <div><br>
            </div>
            <div>I had some issues (that I was expecting...) running CXF
              servers  and RESTEasy  KC admin client together so I
              decided to remove all RESTEasy/jboss dependency from KC
              client and adapt the code to use CXF as JAX-RS
               implementation.</div>
            <div>It works quite well with very few changes, so I decided
              to share it on my github </div>
            <div>in case someone else is in the same situation as me or
              prefer CXF over RESTEasy.</div>
            <div><br>
            </div>
            <div><a href="https://github.com/luigidemasi/keycloak-cxf-admin-client" rel="nofollow" target="_blank"><span>https</span><span>://</span><span>github</span><span>.</span><span>com</span><span>/</span><span>luigidemasi</span><span><wbr>/</span><span>keycloak</span><span>-</span><span>cxf</span><span>-</span><span>admin</span><span>-</span><span>client</span></a><br>
            </div>
            <div><br>
            </div>
            <div>I&#39;m also thinking about adding OSGI support to have the
              possibility to deploy it in karaf and maybe a camel
              component as well.</div>
            <div><br>
            </div>
            <div>Regards.</div>
            <div><br>
            </div>
            -- <br>
            <div data-smartmail="gmail_signature">
              <div dir="ltr">
                <div>
                  <div dir="ltr">
                    <div dir="ltr">
                      <div dir="ltr">
                        <div dir="ltr">
                          <div dir="ltr">
                            <div>Luigi

                              De Masi</div>
                            <div><i>&quot;Talk

                                is cheap. Show me the code.&quot;</i><br>
                            </div>
                            <div><font face="times new roman, serif"><i> 
                                                           -- Linus
                                  Torvalds</i></font></div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <br>
          <div style="font-size:small;color:rgb(34,34,34);font-stretch:normal;background-color:rgb(255,255,255)"><font size="2">
              <div>
                <div>
                  <div>
                    <div>
                      <div>
                        <div>
                          <div>
                            <div>
                              <div>
                                <div>
                                  <div>
                                    <div>
                                      <div>
                                        <div>
                                          <div>
                                            <div>
                                              <hr></div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </font>
            <table border="0" cellpadding="0" cellspacing="0">
              <tbody>
                <tr>
                  <td style="font-family:arial,sans-serif;margin:0px;padding:0px 7px 0px 0px;border-top-width:0px;border-right-width:3px;border-right-style:solid;border-right-color:rgb(189,69,24)" valign="top"><img src="http://email.extrasrl.it/hubfs/Logos/Extra_Logo-287379-edited.png"></td>
                  <td style="font-family:arial,sans-serif;margin:0px;padding:0px 0px 0px 12px">
                    <table style="border:0px;margin:0px;padding:0px;background:none" border="0" cellpadding="0" cellspacing="0">
                      <tbody>
                        <tr>
                          <td colspan="2" style="font-family:Arial,Helvetica,sans-serif;margin:0px;padding-bottom:5px;color:rgb(189,69,24);font-size:18px">Extra

                            srl</td>
                        </tr>
                        <tr>
                          <td style="font-family:Arial,Helvetica,sans-serif;margin:0px;vertical-align:top;width:20px;color:rgb(247,31,31);font-size:14px" valign="top" width="20">p:</td>
                          <td style="font-family:Arial,Helvetica,sans-serif;margin:0px;vertical-align:top;color:rgb(29,161,219);font-size:14px" valign="top"><a style="color:rgb(29,161,219);text-decoration:none">+39

                              0587975800</a></td>
                        </tr>
                        <tr>
                          <td style="font-family:Arial,Helvetica,sans-serif;margin:0px;vertical-align:top;width:20px;color:rgb(247,31,31);font-size:14px" valign="top" width="20">a:</td>
                          <td style="font-family:Arial,Helvetica,sans-serif;margin:0px;vertical-align:top;color:rgb(51,51,51);font-size:14px" valign="top"><a href="https://goo.gl/maps/ngs7hecn9By" style="color:rgb(29,161,219);text-decoration:none" target="_blank">Via Salvo D&#39;Acquisto 40/P
                              - 56025 - Pontedera - Italy</a></td>
                        </tr>
                        <tr>
                          <td style="font-family:Arial,Helvetica,sans-serif;margin:0px;vertical-align:top;width:20px;color:rgb(247,31,31);font-size:14px" valign="top" width="20">w:</td>
                          <td style="font-family:Arial,Helvetica,sans-serif;margin:0px;vertical-align:top;color:rgb(51,51,51);font-size:14px" valign="top"><a href="http://www.extrasrl.it/" style="color:rgb(29,161,219);text-decoration:none" target="_blank">www.extrasrl.it</a>  <span style="color:rgb(247,31,31)">e: </span><a href="mailto:info@extrasys.it" style="color:rgb(29,161,219);text-decoration:none" target="_blank">info@extra<wbr>sys.it</a></td>
                        </tr>
                        <tr>
                          <td colspan="2" style="margin:0px;padding-top:5px"><a href="https://www.facebook.com/Extra-149813195076455/?fref=ts" style="color:rgb(17,85,204);border:0px;text-decoration:none" target="_blank"><img src="http://cdn2.hubspot.net/hubfs/184235/dev_images/signature_app/facebook_sig.png" style="border:none;width:25px;min-height:25px;max-width:25px!important;max-height:25px!important" height="25" width="25"> </a>  <a href="https://twitter.com/extrasrl" style="color:rgb(17,85,204);border:0px;text-decoration:none" target="_blank"><img src="http://cdn2.hubspot.net/hubfs/184235/dev_images/signature_app/twitter_sig.png" style="border:none;width:25px;min-height:25px;max-width:25px!important;max-height:25px!important" height="25" width="25"> </a>  <a href="https://www.linkedin.com/company/extra-srl" style="color:rgb(17,85,204);border:0px;text-decoration:none" target="_blank"><img src="http://cdn2.hubspot.net/hubfs/184235/dev_images/signature_app/linkedin_sig.png" style="border:none;width:25px;min-height:25px;max-width:25px!important;max-height:25px!important" height="25" width="25"> </a>  <a href="https://flipboard.com/@extrasrl/soluzioni-per-il-business-0rk6urr6y" style="color:rgb(17,85,204);border:0px;text-decoration:none" target="_blank"><img src="http://cdn2.hubspot.net/hubfs/1976691/Logos/Flipboard-icon-5-best-apps-for-college-students-tlu.jpg" style="border:none;width:25px;min-height:25px;max-width:25px!important;max-height:25px!important" height="25" width="25"> </a>  <a href="https://www.youtube.com/channel/UCZa_aTznqeh5zoIPKPk1dNg" style="color:rgb(17,85,204);border:0px;text-decoration:none" target="_blank"><img src="http://cdn2.hubspot.net/hubfs/1976691/Logos/youtube-icon-block-png-17.png" style="border:none;width:25px;min-height:25px;max-width:25px!important;max-height:25px!important" height="25" width="25"></a><br>
                          </td>
                        </tr>
                      </tbody>
                    </table>
                  </td>
                </tr>
              </tbody>
            </table>
            <span style="font-size:6pt;font-family:Arial,sans-serif;color:gray" lang="IT">Le informazioni trasmesse sono riservate alla
              persona o ente alla quali sono indirizzate e possono
              contenere informazioni riservate e/o materiale di valore.
              Qualsiasi revisione, ritrasmissione, diffusione o altro
              uso, o l&#39;adozione di azioni basate su tali informazioni da
              parte di soggetti diversi dal destinatario è proibita. Se
              avete ricevuto per errore questo messaggio, siete pregati
              di informare il mittente e cancellare il materiale
              contenuto da ogni computer.</span><span style="font-size:6pt;font-family:Arial,sans-serif" lang="IT"></span></div>
          <div style="color:rgb(34,34,34);font-stretch:normal;background-color:rgb(255,255,255)">
            <p style="margin:0px 0px 0.0001pt;font-family:arial,sans-serif;font-size:12.8px;text-align:justify"><span lang="IT"> </span></p>
            <p style="margin:0px 0px 0.0001pt;font-family:arial,sans-serif;font-size:12.8px;text-align:justify;background-image:initial;background-repeat:initial"><span style="font-size:6pt;font-family:Arial,sans-serif;color:gray">The
                information transmitted is intended for the person or
                entity to which it is addressed and may contain
                confidential and/or privileged material. Any review,
                retransmission, dissemination or other use of, or taking
                of any action in reliance upon, this information by
                persons or entities other than the intended recipient is
                prohibited. If you received this in error, please
                contact the sender and delete the material from any
                computer.</span></p>
          </div>
          <div style="color:rgb(34,34,34);font-stretch:normal;background-color:rgb(255,255,255)"><font style="font-size:small" face="Arial"><span style="color:rgb(128,128,128)"><font size="2"><img style="border-width:0pt;border-style:none;border-color:-moz-use-text-color" src="http://www.extrasrl.it/wp-content/uploads/2013/10/ThinkPrint.jpg" height="41" width="68"></font></span></font></div>
          <br>
          <fieldset></fieldset>
          <br>
          <pre>______________________________<wbr>_________________
keycloak-user mailing list
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/keycloak-user</a></pre>
        </blockquote>
        <br>
        <br>
        <fieldset></fieldset>
        <br>
        <pre>______________________________<wbr>_________________
keycloak-user mailing list
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/keycloak-user</a></pre>
      </blockquote>
      <br>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>______________________________<wbr>_________________
keycloak-user mailing list
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/keycloak-user</a></pre>
    </blockquote>
    <br>
  </div></div></div>

<br>______________________________<wbr>_________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/keycloak-user</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,&#39;new york&#39;,times,serif;font-weight:bold">Luigi De Masi</div><div style="font-family:tahoma,&#39;new york&#39;,times,serif"><i style="font-family:&quot;times new roman&quot;,serif;font-size:12.8px">&quot;Talk is cheap. Show me the code.&quot;</i><br></div><div><font face="times new roman, serif"><i>                           -- Linus Torvalds</i></font></div><hr style="font-family:tahoma,&#39;new york&#39;,times,serif"><div style="font-family:tahoma,&#39;new york&#39;,times,serif"><br></div></div></div></div></div></div></div></div></div>
</div></div>

<br>
<div style="font-size:small;color:rgb(34,34,34);font-stretch:normal;background-color:rgb(255,255,255)"><font size="2">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<hr></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></font><table style="color:rgb(0,0,0);font-size:12.8px;font-family:&quot;Times New Roman&quot;;border:0px;margin:0px;padding:0px;background:none" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family:arial,sans-serif;margin:0px;padding:0px 7px 0px 0px;border-top-width:0px;border-right-width:3px;border-right-style:solid;border-right-color:rgb(189,69,24)" valign="top"><img src="https://ci6.googleusercontent.com/proxy/OexdHtSluslMltlgJtjhuQfMv_pN2XvNq15qRxNvzWbiVkH-cwUnHAi6cuI50Fp9aM8IT4asflXee0EI4wiBoGtvwmlDMRQRBPAI-MpJ7EH0G6itq9YN=s0-d-e1-ft#http://email.extrasrl.it/hubfs/Logos/Extra_Logo-287379-edited.png"></td><td style="font-family:arial,sans-serif;margin:0px;padding:0px 0px 0px 12px"><table style="border:0px;margin:0px;padding:0px;background:none" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td colspan="2" style="font-family:Arial,Helvetica,sans-serif;margin:0px;padding-bottom:5px;color:rgb(189,69,24);font-size:18px">Extra srl</td></tr><tr><td style="font-family:Arial,Helvetica,sans-serif;margin:0px;vertical-align:top;width:20px;color:rgb(247,31,31);font-size:14px" valign="top" width="20">p:</td><td style="font-family:Arial,Helvetica,sans-serif;margin:0px;vertical-align:top;color:rgb(29,161,219);font-size:14px" valign="top"><a style="color:rgb(29,161,219);text-decoration:none">+39 0587975800</a></td></tr><tr><td style="font-family:Arial,Helvetica,sans-serif;margin:0px;vertical-align:top;width:20px;color:rgb(247,31,31);font-size:14px" valign="top" width="20">a:</td><td style="font-family:Arial,Helvetica,sans-serif;margin:0px;vertical-align:top;color:rgb(51,51,51);font-size:14px" valign="top"><a href="https://goo.gl/maps/ngs7hecn9By" style="color:rgb(29,161,219);text-decoration:none" target="_blank">Via Salvo D&#39;Acquisto 40/P - 56025 - Pontedera - Italy</a></td></tr><tr><td style="font-family:Arial,Helvetica,sans-serif;margin:0px;vertical-align:top;width:20px;color:rgb(247,31,31);font-size:14px" valign="top" width="20">w:</td><td style="font-family:Arial,Helvetica,sans-serif;margin:0px;vertical-align:top;color:rgb(51,51,51);font-size:14px" valign="top"><a href="http://www.extrasrl.it/" style="color:rgb(29,161,219);text-decoration:none" target="_blank">www.extrasrl.it</a>  <span style="color:rgb(247,31,31)">e: </span><a href="mailto:info@extrasys.it" style="color:rgb(29,161,219);text-decoration:none" target="_blank">info@<wbr>extrasys.it</a></td></tr><tr><td colspan="2" style="margin:0px;padding-top:5px"><a href="https://www.facebook.com/Extra-149813195076455/?fref=ts" style="color:rgb(17,85,204);border:0px;text-decoration:none" target="_blank"><img src="https://ci4.googleusercontent.com/proxy/KSd1y52khHv9agmQvrCbryrM-2fW2_TTiv_ZyM7g8CvIOy1lLeiL98i21qwjj_AtIcK1gmFVa_3klKcL84Nn9soPAtkHRj9nuToKZ86G2yoOSEHDRVJtmcoMmxPmmaYL9i1otg=s0-d-e1-ft#http://cdn2.hubspot.net/hubfs/184235/dev_images/signature_app/facebook_sig.png" style="border:none;width:25px;min-height:25px;max-width:25px!important;max-height:25px!important" height="25" width="25"> </a>  <a href="https://twitter.com/extrasrl" style="color:rgb(17,85,204);border:0px;text-decoration:none" target="_blank"><img src="https://ci6.googleusercontent.com/proxy/Sh-8YmBCXXgMOdOoPgPtgPnKQjxnBXcEwel_xmwS_cHPKRztClUPBPiJEHPdtG3Hei5hccBS7ONl-N_UCmjOHpHCwBzTomOq7BWdwmxz1KhrziiqbYJgeX4FOXOOh5DEqF8y=s0-d-e1-ft#http://cdn2.hubspot.net/hubfs/184235/dev_images/signature_app/twitter_sig.png" style="border:none;width:25px;min-height:25px;max-width:25px!important;max-height:25px!important" height="25" width="25"> </a>  <a href="https://www.linkedin.com/company/extra-srl" style="color:rgb(17,85,204);border:0px;text-decoration:none" target="_blank"><img src="https://ci5.googleusercontent.com/proxy/hzQ50OystqOxlKMduZD32nQoNlmY4n_0V4lxPUWy5nU5cr1gbQR-03vxhbJL7qRILyM-QnaRbLIvZIoxOof999Ep266X82hDAOK2K4jC9rBUhUVgcslhZQ1jOUHJwKu2s6_4sA=s0-d-e1-ft#http://cdn2.hubspot.net/hubfs/184235/dev_images/signature_app/linkedin_sig.png" style="border:none;width:25px;min-height:25px;max-width:25px!important;max-height:25px!important" height="25" width="25"> </a>  <a href="https://flipboard.com/@extrasrl/soluzioni-per-il-business-0rk6urr6y" style="color:rgb(17,85,204);border:0px;text-decoration:none" target="_blank"><img src="https://ci6.googleusercontent.com/proxy/ggirPE4PTkolJ0O_e-OV3ZXeTcKY0u0QpgQrPXTbpLNMrxFdmZTQg6pFGxGp-HOtx2opNj1Bx56E3OXVldMCKdfB2LVWAzudIkfC_vDw0KP6KpZxZ3fWgT5M81P9uBgnv8wOBgLAPuQWElz5_KpnV6iQrwWBbOJiEg=s0-d-e1-ft#http://cdn2.hubspot.net/hubfs/1976691/Logos/Flipboard-icon-5-best-apps-for-college-students-tlu.jpg" style="border:none;width:25px;min-height:25px;max-width:25px!important;max-height:25px!important" height="25" width="25"> </a>  <a href="https://www.youtube.com/channel/UCZa_aTznqeh5zoIPKPk1dNg" style="color:rgb(17,85,204);border:0px;text-decoration:none" target="_blank"><img src="https://ci6.googleusercontent.com/proxy/mJBFS-WimmCljJsnRpxJiV929FhrGctD7SOVh0Vc1scfwI7nLGbL0kBMHC-oKf4xWUj5zaIjKhxtkTZbTl6k6qTwnFI0HI3hNxxMIImfVSG7-gPB96eVIyKfuAu15lI=s0-d-e1-ft#http://cdn2.hubspot.net/hubfs/1976691/Logos/youtube-icon-block-png-17.png" style="border:none;width:25px;min-height:25px;max-width:25px!important;max-height:25px!important" height="25" width="25"></a><br></td></tr></tbody></table></td></tr></tbody></table><span style="font-size:6pt;font-family:Arial,sans-serif;color:gray" lang="IT">Le informazioni trasmesse sono riservate alla persona o ente alla quali sono indirizzate e possono contenere informazioni riservate e/o materiale di valore. Qualsiasi revisione, ritrasmissione, diffusione o altro uso, o l&#39;adozione di azioni basate su tali informazioni da parte di soggetti diversi dal destinatario è proibita. Se avete ricevuto per errore questo messaggio, siete pregati di informare il mittente e cancellare il materiale contenuto da ogni computer.</span><span style="font-size:6pt;font-family:Arial,sans-serif" lang="IT"></span></div><div style="color:rgb(34,34,34);font-stretch:normal;background-color:rgb(255,255,255)"><p style="margin:0px 0px 0.0001pt;font-family:arial,sans-serif;font-size:12.8px;text-align:justify"><span style="font-size:6pt;font-family:&quot;Times New Roman&quot;,serif" lang="IT"> </span></p><p style="margin:0px 0px 0.0001pt;font-family:arial,sans-serif;font-size:12.8px;text-align:justify;background-image:initial;background-repeat:initial"><span style="font-size:6pt;font-family:Arial,sans-serif;color:gray">The information transmitted is intended for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.</span></p></div><div style="color:rgb(34,34,34);font-stretch:normal;background-color:rgb(255,255,255)"><font style="font-size:small" face="Arial"><span style="color:rgb(128,128,128)"><font size="2"><img style="border-width:0pt;border-style:none;border-color:-moz-use-text-color" src="http://www.extrasrl.it/wp-content/uploads/2013/10/ThinkPrint.jpg" height="41" width="68"></font></span></font></div>