| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XMLCompare
The interface for external modules that present the differences between two
 XML resources. Such modules are declared in
 /configuration/maps.xml
 using the compare element as in the following example:
 
 <compare>
  <mime-type>* /xml</mime-type>
  <mime-type>* /*+xml</mime-type>
   <!-- Additional mime-type elements can come here. -->
   <!-- Several path elements can come here. -->
   <class>
     <name>mypackage.CompareXML</name>
     <!-- Optional URL relative to maps.xml. 
     <jar>modules/my_module.jar</jar>
     -->
   </class>
 </compare>
 
 
| Method Summary | |
|---|---|
|  void | compare(XMLEventReader oldVersion,
        XMLEventReader newVersion,
        XMLEventWriter out,
        String mimeType,
        Context context)Calculates the difference between two versions of a resource. | 
|  String | resultMimeType(String mimeType) | 
| Method Detail | 
|---|
void compare(XMLEventReader oldVersion,
             XMLEventReader newVersion,
             XMLEventWriter out,
             String mimeType,
             Context context)
             throws IOException
oldVersion - the XML reader for the old version of the resource.newVersion - the XML reader for the new version of the resource.out - the XML writer 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 | |||||||||