Nuxeo Enterprise Platform 5.4

org.nuxeo.wss.fprpc
Class CAMLHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.nuxeo.wss.fprpc.CAMLHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class CAMLHandler
extends DefaultHandler

SAX ContentHandler to parse CAML Batch requests.

References : - http://msdn.microsoft.com/en-us/library/dd586422(office.11).aspx

Author:
Thierry Delprat

Field Summary
static String ID_ATTRIBUTE
           
static String METHOD_TAG
           
static String NAME_ATTRIBUTE
           
static String SETVAR_TAG
           
 
Constructor Summary
CAMLHandler()
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endElement(String uri, String localName, String name)
           
 List<FPRPCCall> getParsedCalls()
           
static XMLReader getXMLReader()
           
 void startElement(String uri, String localName, String name, Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

METHOD_TAG

public static final String METHOD_TAG
See Also:
Constant Field Values

SETVAR_TAG

public static final String SETVAR_TAG
See Also:
Constant Field Values

ID_ATTRIBUTE

public static final String ID_ATTRIBUTE
See Also:
Constant Field Values

NAME_ATTRIBUTE

public static final String NAME_ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

CAMLHandler

public CAMLHandler()
Method Detail

startElement

public void startElement(String uri,
                         String localName,
                         String name,
                         Attributes attributes)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler
Throws:
SAXException

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws SAXException
Specified by:
characters in interface ContentHandler
Overrides:
characters in class DefaultHandler
Throws:
SAXException

endElement

public void endElement(String uri,
                       String localName,
                       String name)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class DefaultHandler
Throws:
SAXException

getParsedCalls

public List<FPRPCCall> getParsedCalls()

getXMLReader

public static XMLReader getXMLReader()
                              throws SAXException
Throws:
SAXException

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.