Package | Description |
---|---|
org.restlet.representation |
Common representation data elements.
|
org.restlet.util |
Various utility classes.
|
Modifier and Type | Method and Description |
---|---|
Digest |
DigesterRepresentation.computeDigest()
Compute the representation digest according to MD5 algorithm.
If case this algorithm is the same than the one provided at instantiation, the computation operation is made with the current stored computed value and does not require to exhaust entirely the representation's stream. |
Digest |
DigesterRepresentation.computeDigest(java.lang.String algorithm)
Compute the representation digest according to the given algorithm.
Since this method reads entirely the representation's stream, user must take care of the content of the representation in case the latter is transient. |
Digest |
DigesterRepresentation.getComputedDigest()
Returns the current computed digest value of the representation.
|
Digest |
Representation.getDigest()
Returns the representation digest if any.
Note that when used with HTTP connectors, this property maps to the "Content-MD5" header. |
Modifier and Type | Method and Description |
---|---|
void |
Representation.setDigest(Digest digest)
Sets the representation digest.
Note that when used with HTTP connectors, this property maps to the "Content-MD5" header. |
Modifier and Type | Method and Description |
---|---|
Digest |
WrapperRepresentation.getDigest() |
Modifier and Type | Method and Description |
---|---|
void |
WrapperRepresentation.setDigest(Digest digest) |
Copyright © 2005-2020 Restlet.