Package org.jclouds.atmos.xml
Class ErrorHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.jclouds.http.functions.ParseSax.HandlerWithResult<AtmosError>
-
- org.jclouds.atmos.xml.ErrorHandler
-
- All Implemented Interfaces:
InvocationContext<ParseSax.HandlerWithResult<AtmosError>>,ContentHandler,DTDHandler,EntityResolver,ErrorHandler
public class ErrorHandler extends ParseSax.HandlerWithResult<AtmosError>
Parses the error from the Atmos Online Storage REST API.
-
-
Constructor Summary
Constructors Constructor Description ErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] ch, int start, int length)voidendElement(String uri, String name, String qName)AtmosErrorgetResult()-
Methods inherited from class org.jclouds.http.functions.ParseSax.HandlerWithResult
getRequest, setContext
-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Method Detail
-
getResult
public AtmosError getResult()
- Specified by:
getResultin classParseSax.HandlerWithResult<AtmosError>
-
endElement
public void endElement(String uri, String name, String qName)
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler
-
characters
public void characters(char[] ch, int start, int length)- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler
-
-