public boolean isRepeatable() { return !entity.isTransient(); }
public boolean isRepeatable() { return !entity.isTransient(); }
@Override public boolean isTransient() { return getWrappedRepresentation().isTransient(); }
/** * If the entity is transient or its size unknown in advance but available, * then the entity is wrapped with a {@link org.restlet.representation.BufferingRepresentation}.<br> * <br> * Be careful as this method could create potentially very large byte * buffers in memory that could impact your application performance. * * @see org.restlet.representation.BufferingRepresentation * @see ClientResource#setRequestEntityBuffering(boolean) * @see ClientResource#setResponseEntityBuffering(boolean) */ public void bufferEntity() { if ((getEntity() != null) && (getEntity().isTransient() || getEntity().getSize() == UNKNOWN_SIZE) && getEntity().isAvailable()) { setEntity(new org.restlet.representation.BufferingRepresentation(getEntity())); } }