Examples of FeedFileHandler


Examples of com.google.enterprise.connector.pusher.FeedFileHandler

   * A LogHandler for feedlogs, as configured in applicationContext.properties.
   */
  private static class FeedLogHandler extends JavaUtilLogHandler {
    public FeedLogHandler(Context context) throws ConnectorManagerException {
      try {
        FeedFileHandler ffh = (FeedFileHandler) context.getApplicationContext()
            .getBean("FeedHandler", FeedFileHandler.class);
        String ffhPattern = ffh.getPattern();
        if (ffhPattern != null && ffhPattern.length() > 0) {
          super.pattern = ffhPattern;
        }
        Formatter formatter = ffh.getFormatter();
        isXMLFormat = (formatter == null ||
            (formatter.getClass().getName().toUpperCase().indexOf("XML") >= 0));
      } catch (BeansException be) {
        throw new ConnectorManagerException(
            "Unable to retrieve Feed Logging configuration: " + be.toString());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.