hstaudacher / osgi-jax-rs-connector

An OSGi - JAX-RS 2.0 Connector, software repository available on the link below
http://hstaudacher.github.io/osgi-jax-rs-connector
Other
190 stars 98 forks source link

RequestError.getMessage throws an exception instead of returning a string #55

Closed fe2o3 closed 9 years ago

fe2o3 commented 10 years ago

If the response is 404, when RequestError.getMessage() is called, the line response.hasEntity() throws an exception because the entity is closed. The desired behavior would be to return the message as a string.