Polishing

This commit is contained in:
Juergen Hoeller
2017-01-12 23:30:38 +01:00
parent e19dff179e
commit 743ce2cda6
13 changed files with 44 additions and 28 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2016 the original author or authors.
* Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2014 the original author or authors.
* Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@ import javax.servlet.http.HttpServletResponse;
import com.rometools.rome.feed.rss.Channel;
import com.rometools.rome.feed.rss.Item;
import org.springframework.util.MimeTypeUtils;
import org.springframework.http.MediaType;
/**
* Abstract superclass for RSS Feed views, using the
@@ -48,9 +48,10 @@ import org.springframework.util.MimeTypeUtils;
public abstract class AbstractRssFeedView extends AbstractFeedView<Channel> {
public AbstractRssFeedView() {
setContentType(MimeTypeUtils.APPLICATION_RSS_XML_VALUE);
setContentType(MediaType.APPLICATION_RSS_XML_VALUE);
}
/**
* Create a new Channel instance to hold the entries.
* <p>By default returns an RSS 2.0 channel, but the subclass can specify any channel.