com.jalios.jstore
Class LogManagerHandler

java.lang.Object
  extended by com.jalios.jstore.LogManagerHandler
All Implemented Interfaces:
StoreConstants, ContentHandler
Direct Known Subclasses:
LogCleaner, LogManagerDeltaHandler, LogManagerLoadHandler, LogManagerSyncHandler, LogManagerVersionHandler

public abstract class LogManagerHandler
extends Object
implements ContentHandler, StoreConstants

This class is the super class of all the LogManager handlers

Version:
$Revision: 21412 $
Author:
Olivier Dedieu

Field Summary
protected  Locator locator
           
protected  int maxLineNumber
           
static String REVISION
           
 
Fields inherited from interface com.jalios.jstore.StoreConstants
ARRAY_FLAG, CLEANING_STATE, COLLECTION_FLAG, CREATE_OP, DELETE_OP, IDLE_STATE, INNER_LOGS, INNER_MILESTONE, INNER_PREFIX, INNER_SYNC, ITEM_ESCAPE_CHAR, ITEM_SEPARATOR, LOADING_STATE, MAP_ASSIGN, MAP_CHARS_TO_ESCAPE, MAP_CLASS_SEPARATOR, MAP_FLAG, NAMESPACE, SH_SUFFIX, STORING_STATE, UPDATE_OP
 
Constructor Summary
LogManagerHandler()
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endDocument()
           
 void endElement(String namespaceURI, String localName, String rawName)
           
 void endPrefixMapping(String prefix)
           
 void error(SAXParseException ex)
          Error
 void fatalError(SAXParseException ex)
          Fatal Error
 int getMaxLineNumber()
           
 void handleLogEntryException(LogEntry logEntry)
          This method is called when an exception is caught while processing a logEntry
 void ignorableWhitespace(char[] ch, int start, int length)
           
 void processingInstruction(String target, String data)
           
abstract  void processInnerLogEntry(InnerLogEntry logEntry)
          Process an InnerLogEntry
abstract  void processStorableLogEntry(StorableLogEntry logEntry)
          Process a StorableLogEntry
 void setDocumentLocator(Locator locator)
           
 void skippedEntity(String name)
           
 void startDocument()
           
 void startElement(String namespaceURI, String localName, String qName, Attributes atts)
           
 void startPrefixMapping(String prefix, String uri)
           
 void warning(SAXParseException ex)
          Warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values

locator

protected Locator locator

maxLineNumber

protected int maxLineNumber
Constructor Detail

LogManagerHandler

public LogManagerHandler()
Method Detail

processInnerLogEntry

public abstract void processInnerLogEntry(InnerLogEntry logEntry)
Process an InnerLogEntry

Parameters:
logEntry - the InnerLogEntry to process
Since:
jcms-4.0.2

processStorableLogEntry

public abstract void processStorableLogEntry(StorableLogEntry logEntry)
Process a StorableLogEntry

Parameters:
logEntry - the StorableLogEntry to process
Since:
jcms-4.0.2

handleLogEntryException

public void handleLogEntryException(LogEntry logEntry)
This method is called when an exception is caught while processing a logEntry

Parameters:
logEntry - the logEntry
Since:
jcms-4.0.2

getMaxLineNumber

public int getMaxLineNumber()
Returns:
the max line number read
Since:
jcms-5.0.0

startElement

public void startElement(String namespaceURI,
                         String localName,
                         String qName,
                         Attributes atts)
Specified by:
startElement in interface ContentHandler

setDocumentLocator

public void setDocumentLocator(Locator locator)
Specified by:
setDocumentLocator in interface ContentHandler

endDocument

public void endDocument()
                 throws SAXException
Specified by:
endDocument in interface ContentHandler
Throws:
SAXException

startDocument

public void startDocument()
                   throws SAXException
Specified by:
startDocument in interface ContentHandler
Throws:
SAXException

endElement

public void endElement(String namespaceURI,
                       String localName,
                       String rawName)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Throws:
SAXException

characters

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

ignorableWhitespace

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

processingInstruction

public void processingInstruction(String target,
                                  String data)
                           throws SAXException
Specified by:
processingInstruction in interface ContentHandler
Throws:
SAXException

startPrefixMapping

public void startPrefixMapping(String prefix,
                               String uri)
Specified by:
startPrefixMapping in interface ContentHandler

endPrefixMapping

public void endPrefixMapping(String prefix)
                      throws SAXException
Specified by:
endPrefixMapping in interface ContentHandler
Throws:
SAXException

skippedEntity

public void skippedEntity(String name)
                   throws SAXException
Specified by:
skippedEntity in interface ContentHandler
Throws:
SAXException

warning

public void warning(SAXParseException ex)
Warning


error

public void error(SAXParseException ex)
Error


fatalError

public void fatalError(SAXParseException ex)
                throws SAXException
Fatal Error

Throws:
SAXException


Copyright © 2001-2010 Jalios SA. All Rights Reserved.