<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi.<br>
    </p>
    <p>Does MP Rest Client 1.2 TCK use @Context annotation on server
      side or on client side? I don't see @RunAsClient annotation there,
      but filter is added to the deployment [1].</p>
    <p>Injecting HttpHeaders into ClientRequestFilter works on server
      side, but doesn't work on client side in RESTEasy 3.6.2 and WF
      master. See also RESTEASY-2084 related jira [2].<br>
    </p>
    <p>Marek<br>
    </p>
    <p>[1]
<a class="moz-txt-link-freetext" href="https://github.com/eclipse/microprofile-rest-client/blob/1.2/tck/src/main/java/org/eclipse/microprofile/rest/client/tck/ClientHeadersFactoryTest.java#L41">https://github.com/eclipse/microprofile-rest-client/blob/1.2/tck/src/main/java/org/eclipse/microprofile/rest/client/tck/ClientHeadersFactoryTest.java#L41</a><br>
      [2] <a class="moz-txt-link-freetext" href="https://issues.jboss.org/browse/RESTEASY-2084">https://issues.jboss.org/browse/RESTEASY-2084</a><br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 1/25/19 11:38 PM, Michal Szynkiewicz
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAD-vzj7BHqOzfrD=JfrA0BZ92kNLBOst1mNOap0FKxC3LuS8Pw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">Hi,
          <div><br>
          </div>
          <div>The MP Rest Client 1.2 TCK assumes the ${subject} should
            be possible but I'm getting "RESTEASY003880: Unable to find
            contextual data of type: javax.ws.rs.core.HttpHeaders" when
            I try.</div>
          <div>I think it's possible to add an implementation of
            HttpHeaders to <span
              style="color:rgb(0,0,0);font-family:&quot;DejaVu Sans
              Mono&quot;;font-size:9pt">ResteasyProviderFactory.</span><span
              style="color:rgb(0,0,0);font-family:&quot;DejaVu Sans
              Mono&quot;;font-size:9pt;font-style:italic">getContextDataMap</span><span
              style="color:rgb(0,0,0);font-family:&quot;DejaVu Sans
              Mono&quot;;font-size:9pt">()</span>, and then make the
            headers from it populated to the request with a filter but
            is there a better way? Maybe some add-on that would make it
            work out of the box? ;)</div>
          <div><br>
          </div>
          <div>Thanks,</div>
          <div>Michał</div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
resteasy-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:resteasy-dev@lists.jboss.org">resteasy-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/resteasy-dev">https://lists.jboss.org/mailman/listinfo/resteasy-dev</a>
</pre>
    </blockquote>
  </body>
</html>