Package com.google.enterprise.connector.spi

Examples of com.google.enterprise.connector.spi.Retriever


             RepositoryException {
    if (LOGGER.isLoggable(Level.FINER)) {
      LOGGER.finer("RETRIEVER: Retrieving content from connector "
                   + connectorName + " for document " + docid);
    }
    Retriever retriever = instantiator.getRetriever(connectorName);
    if (retriever == null) {
      // We are borked here.  This should not happen.
      LOGGER.warning("GetDocumentContent request for connector " + connectorName
                     + " that does not support the Retriever interface.");
      return null;
    }
    InputStream in = retriever.getContent(docid);
    if (in == null) {
      LOGGER.finer("RETRIEVER: Document has no content.");
    }
    // The GSA can't handle meta-and-url feeds with no content, so we
    // provide some minimal content of a single space, if none is available.
View Full Code Here


             RepositoryException {
    if (LOGGER.isLoggable(Level.FINER)) {
      LOGGER.finer("RETRIEVER: Retrieving metadata from connector "
                   + connectorName + " for document " + docid);
    }
    Retriever retriever = instantiator.getRetriever(connectorName);
    if (retriever == null) {
      // We are borked here.  This should not happen.
      LOGGER.warning("GetDocumentMetaData request for connector "
                     + connectorName
                     + " that does not support the Retriever interface.");
      return null;
    }
    Document metaDoc = retriever.getMetaData(docid);
    if (metaDoc == null) {
      LOGGER.finer("RETRIEVER: Document has no metadata.");
      // TODO: Create empty Document?
    } else {
      if (documentFilterFactoryFactory != null) {
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.spi.Retriever

Copyright © 2018 www.massapicom. 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.