Package com.sun.syndication.io

Examples of com.sun.syndication.io.FeedException


        {
            artifacts = metadataRepository.getArtifactsByDateRange( repoId, greaterThanThisDate.getTime(), null );
        }
        catch ( MetadataRepositoryException e )
        {
            throw new FeedException( "Unable to construct feed, metadata could not be retrieved: " + e.getMessage(),
                                     e );
        }

        long tmp = 0;
        RssFeedEntry entry = null;
View Full Code Here


                }
            }
        }
        catch ( MetadataRepositoryException e )
        {
            throw new FeedException( "Unable to construct feed, metadata could not be retrieved: " + e.getMessage(),
                                     e );
        }
        catch ( MetadataResolutionException e )
        {
            throw new FeedException( "Unable to construct feed, metadata could not be retrieved: " + e.getMessage(),
                                     e );
        }

        long tmp = 0;
        RssFeedEntry entry = null;
View Full Code Here

        try
        {
            baseURI = findBaseURI(eFeed);
        } catch (Exception e)
        {
            throw new FeedException("ERROR while finding base URI of feed", e);
        }

        String xmlBase = eFeed.getAttributeValue("base", Namespace.XML_NAMESPACE);
        if (xmlBase != null)
        {
View Full Code Here

                try {
                    SAXBuilder saxBuilder = new SAXBuilder();
                    tmpDoc = saxBuilder.build(tmpDocReader);
                }
                catch (Exception ex) {
                    throw new FeedException("Invalid XML",ex);
                }

                List children = tmpDoc.getRootElement().removeContent();
                contentElement.addContent(children);
            }
View Full Code Here

        res.setContentType(MIME_TYPE);
        SyndFeedOutput output = new SyndFeedOutput();
        output.output(feed, res.getWriter());
      }
      else
        throw( new FeedException("No dir Id given!"));
    }
    catch (FeedException ex)
    {
      String msg = COULD_NOT_GENERATE_FEED_ERROR;
      log(msg, ex);
View Full Code Here

        {
            artifacts = metadataRepository.getArtifactsByDateRange( repoId, greaterThanThisDate.getTime(), null );
        }
        catch ( MetadataRepositoryException e )
        {
            throw new FeedException( "Unable to construct feed, metadata could not be retrieved: " + e.getMessage(),
                                     e );
        }

        long tmp = 0;
        RssFeedEntry entry = null;
View Full Code Here

                }
            }
        }
        catch ( MetadataRepositoryException e )
        {
            throw new FeedException( "Unable to construct feed, metadata could not be retrieved: " + e.getMessage(),
                                     e );
        }
        catch ( MetadataResolutionException e )
        {
            throw new FeedException( "Unable to construct feed, metadata could not be retrieved: " + e.getMessage(),
                                     e );
        }

        long tmp = 0;
        RssFeedEntry entry = null;
View Full Code Here

                try {
                    SAXBuilder saxBuilder = new SAXBuilder();
                    tmpDoc = saxBuilder.build(tmpDocReader);
                }
                catch (Exception ex) {
                    throw new FeedException("Invalid XML",ex);
                }
                List children = tmpDoc.getRootElement().removeContent();
                contentElement.addContent(children);
            } else {
                // must be type html, text or some other non-XML format
View Full Code Here

       
        String baseURI = null;
        try {
            baseURI = findBaseURI(eFeed);
        } catch (Exception e) {
            throw new FeedException("ERROR while finding base URI of feed", e);
        }
       
        Feed feed = parseFeedMetadata(baseURI, eFeed);

        String xmlBase = eFeed.getAttributeValue("base", Namespace.XML_NAMESPACE);
View Full Code Here

            for (int i=0;i<hours.size();i++) {
                Element hour = (Element) hours.get(i);
                int value = Integer.parseInt(hour.getText().trim());
                if (isHourFormat24()) {
                    if (value<1 || value>24) {
                        throw new FeedException("Invalid hour value "+value+", it must be between 1 and 24");
                    }
                }
                else {
                    if (value<0 || value>23) {
                        throw new FeedException("Invalid hour value "+value+", it must be between 0 and 23");
                    }
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.sun.syndication.io.FeedException

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.