Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-759

RESTEasy Documentation - Code Snippet for Shared Interface Between Client and Server with Abstract Response incorrect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 2.3.5.Final
    • None
    • None
    • None

    Description

      Current text is as follows:
      <code>
      MyInterface proxy = ProxyFactory.create(MyInterface.class, "http://localhost:8081");
      ClientResponse response = (ClientResponse)proxy.getMyListOfJAXBObjects();
      List<MyJaxbClass> list = response.getEntity(new GenericType<List<MyJaxbClass>>());
      </code>

      Probably should be:
      <code>
      MyInterface proxy = ProxyFactory.create(MyInterface.class, "http://localhost:8081");
      ClientResponse response = (ClientResponse)proxy.getMyListOfJAXBObjects();
      List<MyJaxbClass> list = (List<MyJaxbClass>)response.getEntity(new GenericType<List<MyJaxbClass>>(){});
      </code>

      Attachments

        Activity

          People

            rsigal@redhat.com Ronald Sigal
            cjpearson_jira Chris Pearson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: