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

postTarget() should make sure entity exists

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0-beta-1, 2.3.3.Final
    • 2.3.2.Final
    • None
    • None

      public <T> T postTarget(Class<T> returnType) throws Exception

      { BaseClientResponse<T> response = (BaseClientResponse<T>) post(returnType); return response.getEntity(); }

      postTarget should check if response is 200 before returning an entity. if it is 204 then return null.

              patriot1burke@gmail.com Bill Burke (Inactive)
              patriot1burke@gmail.com Bill Burke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: