JERSEY-1577: WebTarget throws IAE instead of NPE

  - fix + test

Change-Id: I66294b62c2f5d3f597a136b8111536e636e24780
JERSEY-1511: MessageBodyReader does not set default content-type

 - fix + test

Change-Id: I4e584ced6c68d134216acfa080e017d9e1081970
Merge "JERSEY-1577: WebTarget throws IAE instead of NPE"
Merge "JERSEY-1511: MessageBodyReader does not set default content-type"
Fixed JERSEY-1516.

- Replaced readEntity(…) with getEntity() in OutboundJaxrsResponse copy constructor code.
- Added verification E2E test for the issue.

Change-Id: I103b1ce448e465aac9f6469b481c3006eae68deb
Signed-off-by: Marek Potociar <marek.potociar@oracle.com>
Fixed multiple minor issues. 

- JERSEY-1484: Field shadowing fixed in JerseyClientTest methods.
- JERSEY-1485: Map parameter made generic in a ClientConfigTest method.
- JERSEY-1487: Local variable hides field in ClientConfig.

Change-Id: I97191f539986dc235cbad073ec15ca6fbb58e195
Signed-off-by: Marek Potociar <marek.potociar@oracle.com>
Merge "Fixed JERSEY-1516."
Added client InvocationCallback unit test.

- inspired by a TCK test reported to fail intermittently.

Change-Id: I896b3097521b63e7227b7726b12d416cb8c9ad13
Signed-off-by: Marek Potociar <marek.potociar@oracle.com>
Updated to JAX-RS 2.0-rc1 API (PFD).

Change-Id: Id6d344b99158051c96cfd45f0311cf240e80430e
Signed-off-by: Marek Potociar <marek.potociar@oracle.com>
Merge "Added client InvocationCallback unit test."
JERSEY-1159: Activation of features based on the presence of certain properties in the ResourceConfig property bag.
JERSEY-1700: Bean validation does not work out of the box (when jersey-bean-validation module is on the classpath)
JERSEY-1742: Bean Validation doesn't work when Inflector<DATA, RESULT> is used for handling requests

 - AutoDiscovery service-provider + implementations (Validation, Wadl, Server filters)
 - Server/Client properties to enable/disable auto-discovery
 - UriConnegFilter integration test
 - OSGi auto-discoverable validation test

 - JAX-RS bundle + Jersey Bean Validation Ext module integration test

 - AbstractJavaResourceMethodDispatcher updated + validation tests for programmatic resources

Change-Id: I2f843996a9a29b2400a4439b321b9113b8ed1d84
Merge "JERSEY-1159: Activation of features based on the presence of certain properties in the ResourceConfig property bag. JERSEY-1700: Bean validation does not work out of the box (when jersey-bean-validation module is on the classpath) JERSEY-1742: Bean Validation doesn't work when Inflector<DATA, RESULT> is used for handling requests"
JERSEY-1488: @Context and @PostConstruct makes the App not to be deployed

 - added test to confirm that this issue does not occur anymore
 - tested also on GF (no EJB testcase is present)

Change-Id: Ia9984ba17a1beb43c582aa45b97f7291c76dd85d
Fixed JerseyInvocation unit test.

- added latch to wait for the callback to finish before evaluating assertion.

Change-Id: Id0548644cc31ad97483579cb6ced5b2a490148ce
Signed-off-by: Marek Potociar <marek.potociar@oracle.com>
Merge "JERSEY-1488: @Context and @PostConstruct makes the App not to be deployed"
Fixed JERSEY-1746.

- searched for all occurrences of direct WAE creations and replaced with proper exception subtype creations.

Change-Id: If169b3c471ce9ba7ae5e021e3f8eed9dd14c2705
Signed-off-by: Marek Potociar <marek.potociar@oracle.com>
Various fixes of Jersey Examples (gf4 job)

 - some of the bookstore-webapp tests may still fail until jersey m13 is not integrated into gf

Change-Id: I8766874e4333a4a5dad4fe967585cbe32105f339
Merge "Various fixes of Jersey Examples (gf4 job)"
Fixed JERSEY-1527, JERSEY-1528, JERSEY-1531.

- Returning null response results in HTTP 204.
- Response with no status is either send as 200 (with entity) or 204 (without entity).
- Added test to verify that inbound client response can be send as outbound server response.

Change-Id: I53dd304cb5fb946820a5ca242b823a8ff1d67e0a
Signed-off-by: Marek Potociar <marek.potociar@oracle.com>
Support for component constructor selection.

- …as defined by JAX-RS spec.
- Resolves JERSEY-1515, JERSEY-1529, JERSEY-1712.
  - E2E tests for the bugs added. 
- Added HK2 ClassAnalyzer implementation (JerseyClassAnalyzer) that supports proper constructor selection when instantiating components.

OTHER CHANGES:

- Added HK2 ErrorService impl. (JerseyErrorService) to make sure HK2 reification issues are not "hidden". All issues are reported now via Jersey Errors facility.

- Optimization of effective type computation in MethodSelectingRouter. Previous list-based impl was producing duplicate media type entries for different MBRs/MBWs that lead to a huge increase in effective type combinations that had to be later processed (e.g. a simple ConstructorSelectionTest.ProviderResource.echo() method was producing 20 combinations compared to optimal 4 that have to be processed with the new impl).

Change-Id: Ie7283a2c64683202a16d16dc26aed07bbf8e7000
Signed-off-by: Marek Potociar <marek.potociar@oracle.com>