|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Compare
The interface for external modules that present the differences between two
resources. Such modules are declared in /configuration/maps.xml
using the compare element as in the following example:
<compare>
<mime-type>text/*</mime-type>
<!-- Additional mime-type elements can come here. -->
<!-- Several path elements can come here. -->
<class>
<name>be.re.repo.mod.CompareText</name>
<!-- Optional URL relative to maps.xml.
<jar>modules/my_module.jar</jar>
-->
</class>
</compare>
| Method Summary | |
|---|---|
void |
compare(InputStream oldVersion,
InputStream newVersion,
OutputStream out,
String mimeType,
Context context)
Calculates the difference between two versions of a resource. |
String |
resultMimeType(String mimeType)
|
| Method Detail |
|---|
void compare(InputStream oldVersion,
InputStream newVersion,
OutputStream out,
String mimeType,
Context context)
throws IOException
oldVersion - the inputstream for the old version of the resource.newVersion - the inputstream for the new version of the resource.out - the stream in which the result with the differences should be
written.mimeType - the MIME type of the resource.context - the repository context.
IOExceptionString resultMimeType(String mimeType)
mimeType - the MIME type of the resource.
Content-Type of the response of the GET method
when the X-be.re.Compare-With header is present. This is a
Pincette extension.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||