Package com.google.feedserver.client

Examples of com.google.feedserver.client.FeedServerEntry


  /**
   * Creates a configuration beans from the fake hardcoded XML files.
   */
  public FakeLocalConfGenerator() {

    final FeedServerEntry configEntry = new FeedServerEntry(CONFIG_XML);
    fakeLocalConf = new LocalConf();
    final ContentUtil contentUtil = new ContentUtil();
    try {
      contentUtil.fillBean((OtherContent) configEntry.getContent(), fakeLocalConf);
    } catch (IllegalArgumentException e) {
      throw new RuntimeException(e);
    } catch (SAXException e) {
      throw new RuntimeException(e);
    } catch (IOException e) {
View Full Code Here


    xmlBlob.setBlob(ENTRY_XML);
    OtherContent xmlContent = new OtherContent();
    xmlContent.setXml(xmlBlob);
    xmlContent.setXml(xmlBlob);
    xmlContent.setMimeType(ContentUtil.APPLICATION_XML);
    vehicleEntry = new FeedServerEntry();
    vehicleEntry.setXmlBlob(xmlBlob);
    vehicleEntry.setContent(xmlContent);
  }
View Full Code Here

          // load the file into a string.
          String configFileContents = readFileIntoString(configFileName);

          // parse the contents into the bean.
          FeedServerEntry configEntry = new FeedServerEntry(configFileContents);
          ContentUtil contentUtil = new ContentUtil();
          contentUtil.fillBean((OtherContent) configEntry.getContent(), bean);

          // BeanUtil throws many exceptions, re-wrap them and throw our
          // exception.
        } catch (RuntimeException e) {
          throw new ConfigurationBeanException(e);
View Full Code Here

TOP

Related Classes of com.google.feedserver.client.FeedServerEntry

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.