/** * Get the message entity Java instance. Returns {@code null} if the message * does not contain an entity body. * <p> * If the entity is represented by an un-consumed {@link InputStream input stream} * the method will return the input stream. * </p> * * @return the message entity or {@code null} if message does not contain an * entity body (i.e. when {@link #hasEntity()} returns {@code false}). * @throws IllegalStateException if the entity was previously fully consumed * as an {@link InputStream input stream}, or * if the response has been {@link #close() closed}. * @see javax.ws.rs.core.Response#getEntity() * @since 2.5 */ public Object getEntity() throws IllegalStateException { // TODO implement some advanced caching support? return getEntityStream(); }
/** * Get the message entity Java instance. Returns {@code null} if the message * does not contain an entity body. * <p> * If the entity is represented by an un-consumed {@link InputStream input stream} * the method will return the input stream. * </p> * * @return the message entity or {@code null} if message does not contain an * entity body (i.e. when {@link #hasEntity()} returns {@code false}). * @throws IllegalStateException if the entity was previously fully consumed * as an {@link InputStream input stream}, or * if the response has been {@link #close() closed}. * @see javax.ws.rs.core.Response#getEntity() * @since 2.5 */ public Object getEntity() throws IllegalStateException { // TODO implement some advanced caching support? return getEntityStream(); }
/** * Get the message entity Java instance. Returns {@code null} if the message * does not contain an entity body. * <p> * If the entity is represented by an un-consumed {@link InputStream input stream} * the method will return the input stream. * </p> * * @return the message entity or {@code null} if message does not contain an * entity body (i.e. when {@link #hasEntity()} returns {@code false}). * @throws IllegalStateException if the entity was previously fully consumed * as an {@link InputStream input stream}, or * if the response has been {@link #close() closed}. * @see javax.ws.rs.core.Response#getEntity() * @since 2.5 */ public Object getEntity() throws IllegalStateException { // TODO implement some advanced caching support? return getEntityStream(); }
/** * Get the message entity Java instance. Returns {@code null} if the message * does not contain an entity body. * <p> * If the entity is represented by an un-consumed {@link InputStream input stream} * the method will return the input stream. * </p> * * @return the message entity or {@code null} if message does not contain an * entity body (i.e. when {@link #hasEntity()} returns {@code false}). * @throws IllegalStateException if the entity was previously fully consumed * as an {@link InputStream input stream}, or * if the response has been {@link #close() closed}. * @see javax.ws.rs.core.Response#getEntity() * @since 2.5 */ public Object getEntity() throws IllegalStateException { // TODO implement some advanced caching support? return getEntityStream(); }
/** * Get the message entity Java instance. Returns {@code null} if the message * does not contain an entity body. * <p> * If the entity is represented by an un-consumed {@link InputStream input stream} * the method will return the input stream. * </p> * * @return the message entity or {@code null} if message does not contain an * entity body (i.e. when {@link #hasEntity()} returns {@code false}). * @throws IllegalStateException if the entity was previously fully consumed * as an {@link InputStream input stream}, or * if the response has been {@link #close() closed}. * @see javax.ws.rs.core.Response#getEntity() * @since 2.5 */ public Object getEntity() throws IllegalStateException { // TODO implement some advanced caching support? return getEntityStream(); }
/** * Get the message entity Java instance. Returns {@code null} if the message * does not contain an entity body. * <p> * If the entity is represented by an un-consumed {@link InputStream input stream} * the method will return the input stream. * </p> * * @return the message entity or {@code null} if message does not contain an * entity body (i.e. when {@link #hasEntity()} returns {@code false}). * @throws IllegalStateException if the entity was previously fully consumed * as an {@link InputStream input stream}, or * if the response has been {@link #close() closed}. * @see javax.ws.rs.core.Response#getEntity() * @since 2.5 */ public Object getEntity() throws IllegalStateException { // TODO implement some advanced caching support? return getEntityStream(); }
/** * Get the message entity Java instance. Returns {@code null} if the message * does not contain an entity body. * <p> * If the entity is represented by an un-consumed {@link InputStream input stream} * the method will return the input stream. * </p> * * @return the message entity or {@code null} if message does not contain an * entity body (i.e. when {@link #hasEntity()} returns {@code false}). * @throws IllegalStateException if the entity was previously fully consumed * as an {@link InputStream input stream}, or * if the response has been {@link #close() closed}. * @see javax.ws.rs.core.Response#getEntity() * @since 2.5 */ public Object getEntity() throws IllegalStateException { // TODO implement some advanced caching support? return getEntityStream(); }