Merge pull request #310 from mishako/deprecate-certiorem-propono
Deprecate all classes in certiorem and propono
This commit is contained in:
commit
74befdc358
98 changed files with 264 additions and 3 deletions
|
@ -26,7 +26,9 @@ import com.rometools.certiorem.web.AbstractHubServlet;
|
|||
/**
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
@Singleton
|
||||
public class HubServlet extends AbstractHubServlet {
|
||||
|
||||
|
|
|
@ -33,7 +33,9 @@ import com.rometools.certiorem.pub.Publisher;
|
|||
/**
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
@Singleton
|
||||
public class NotifyTest extends HttpServlet {
|
||||
|
||||
|
|
|
@ -41,7 +41,9 @@ import com.rometools.fetcher.impl.HttpURLFeedFetcher;
|
|||
/**
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class ServerModule extends GuiceServletContextListener {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(ServerModule.class);
|
||||
|
|
|
@ -26,7 +26,9 @@ import com.rometools.certiorem.web.AbstractSubServlet;
|
|||
/**
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
@Singleton
|
||||
public class SubServlet extends AbstractSubServlet {
|
||||
|
||||
|
|
|
@ -35,7 +35,9 @@ import com.rometools.fetcher.impl.SyndFeedInfo;
|
|||
/**
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
@Singleton
|
||||
public class SubTest extends HttpServlet {
|
||||
|
||||
|
|
|
@ -21,7 +21,9 @@ package com.rometools.certiorem;
|
|||
/**
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class HttpStatusCodeException extends RuntimeException {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -28,7 +28,9 @@ import com.rometools.fetcher.impl.SyndFeedInfo;
|
|||
* changes to entries in the underlying feed.
|
||||
*
|
||||
* @author najmi
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class DeltaFeedInfoCache implements FeedFetcherCache {
|
||||
|
||||
FeedFetcherCache backingCache;
|
||||
|
|
|
@ -35,7 +35,9 @@ import com.rometools.rome.feed.synd.SyndFeed;
|
|||
* fetch.
|
||||
*
|
||||
* @author najmi
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class DeltaSyndFeedInfo extends SyndFeedInfo {
|
||||
|
||||
/**
|
||||
|
|
|
@ -43,7 +43,9 @@ import com.rometools.rome.feed.synd.SyndFeed;
|
|||
* a very thin servlet wrapper, or other, non-HTTP notification methods you might want to use.
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class Hub {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(Hub.class);
|
||||
|
|
|
@ -27,7 +27,9 @@ import com.rometools.rome.feed.synd.SyndFeed;
|
|||
/**
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface Notifier {
|
||||
/**
|
||||
* Instructs the notifier to begin sending notifications to the list of subscribers
|
||||
|
|
|
@ -24,7 +24,9 @@ import com.rometools.certiorem.hub.data.Subscriber;
|
|||
* A strategy interface for verification of subscriptions.
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface Verifier {
|
||||
|
||||
/**
|
||||
|
|
|
@ -23,7 +23,9 @@ import java.util.List;
|
|||
/**
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface HubDAO {
|
||||
|
||||
public List<? extends Subscriber> subscribersForTopic(String topic);
|
||||
|
|
|
@ -23,7 +23,9 @@ import java.io.Serializable;
|
|||
/**
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class Subscriber implements Serializable {
|
||||
/**
|
||||
*
|
||||
|
|
|
@ -23,7 +23,9 @@ import java.io.Serializable;
|
|||
/**
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class SubscriptionSummary implements Serializable {
|
||||
/**
|
||||
*
|
||||
|
|
|
@ -35,7 +35,9 @@ import com.rometools.certiorem.hub.data.SubscriptionSummary;
|
|||
/**
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class JPADAO implements HubDAO {
|
||||
|
||||
private final EntityManagerFactory factory;
|
||||
|
|
|
@ -33,7 +33,9 @@ import com.rometools.certiorem.hub.data.Subscriber;
|
|||
/**
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
@Entity
|
||||
@NamedQueries({ @NamedQuery(name = "Subcriber.forTopic", query = "SELECT o FROM JPASubscriber o WHERE o.topic = :topic AND o.expired = false ORDER BY o.subscribedAt") })
|
||||
public class JPASubscriber extends Subscriber implements Serializable {
|
||||
|
|
|
@ -32,7 +32,9 @@ import com.rometools.certiorem.hub.data.SubscriptionSummary;
|
|||
* A Simple In-Memory HubDAO for subscribers.
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class InMemoryHubDAO implements HubDAO {
|
||||
private final ConcurrentHashMap<String, List<Subscriber>> subscribers = new ConcurrentHashMap<String, List<Subscriber>>();
|
||||
private final ConcurrentHashMap<String, ConcurrentHashMap<String, SubscriptionSummary>> summaries = new ConcurrentHashMap<String, ConcurrentHashMap<String, SubscriptionSummary>>();
|
||||
|
|
|
@ -40,7 +40,9 @@ import com.rometools.rome.io.SyndFeedOutput;
|
|||
/**
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class AbstractNotifier implements Notifier {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(AbstractNotifier.class);
|
||||
|
|
|
@ -24,7 +24,9 @@ import com.rometools.certiorem.hub.data.Subscriber;
|
|||
/**
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class Notification {
|
||||
|
||||
int retryCount = 0;
|
||||
|
|
|
@ -31,7 +31,9 @@ import com.rometools.certiorem.hub.data.SubscriptionSummary;
|
|||
* A notifier implementation that uses a thread pool to deliver notifications to subscribers
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class ThreadPoolNotifier extends AbstractNotifier {
|
||||
private static final long TWO_MINUTES = 2 * 60 * 1000;
|
||||
protected final ThreadPoolExecutor exeuctor;
|
||||
|
|
|
@ -24,7 +24,9 @@ import com.rometools.certiorem.hub.data.SubscriptionSummary;
|
|||
* A notifier that does not use threads. All calls are blocking and synchronous.
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class UnthreadedNotifier extends AbstractNotifier {
|
||||
|
||||
/**
|
||||
|
|
|
@ -39,7 +39,9 @@ import com.rometools.certiorem.hub.data.Subscriber;
|
|||
* operations, and expects a child class to do Async ops.
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class AbstractVerifier implements Verifier {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(AbstractVerifier.class);
|
||||
|
|
|
@ -28,7 +28,9 @@ import com.rometools.certiorem.hub.data.Subscriber;
|
|||
* Uses a ThreadPoolExecutor to do async verifications.
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class ThreadPoolVerifier extends AbstractVerifier {
|
||||
protected final ThreadPoolExecutor exeuctor;
|
||||
|
||||
|
|
|
@ -23,7 +23,9 @@ import java.util.concurrent.ThreadPoolExecutor;
|
|||
/**
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class ThreadpoolVerifierAdvanced extends ThreadPoolVerifier {
|
||||
|
||||
public ThreadpoolVerifierAdvanced(final ThreadPoolExecutor executor) {
|
||||
|
|
|
@ -24,7 +24,9 @@ import com.rometools.certiorem.hub.data.Subscriber;
|
|||
* A verifier that does not use threads. Suitable for Google App Engine.
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class UnthreadedVerifier extends AbstractVerifier {
|
||||
|
||||
@Override
|
||||
|
|
|
@ -21,7 +21,9 @@ package com.rometools.certiorem.pub;
|
|||
/**
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class NotificationException extends Exception {
|
||||
|
||||
/**
|
||||
|
|
|
@ -36,7 +36,9 @@ import com.rometools.rome.feed.synd.SyndLink;
|
|||
* A class for sending update notifications to a hub.
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class Publisher {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(Publisher.class);
|
||||
|
|
|
@ -23,7 +23,9 @@ import com.rometools.certiorem.sub.data.Subscription;
|
|||
/**
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface Requester {
|
||||
public void sendSubscribeRequest(String hubUrl, Subscription subscription, String verifySync, long leaseSeconds, String secret, String callbackUrl,
|
||||
RequestCallback callback);
|
||||
|
|
|
@ -47,7 +47,9 @@ import com.rometools.rome.io.SyndFeedInput;
|
|||
/**
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class Subscriptions {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(Subscriptions.class);
|
||||
|
|
|
@ -21,7 +21,9 @@ package com.rometools.certiorem.sub.data;
|
|||
/**
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface SubDAO {
|
||||
|
||||
public Subscription findById(String id);
|
||||
|
|
|
@ -23,7 +23,9 @@ import java.io.Serializable;
|
|||
/**
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class Subscription implements Serializable {
|
||||
/**
|
||||
*
|
||||
|
|
|
@ -23,7 +23,9 @@ import com.rometools.fetcher.impl.SyndFeedInfo;
|
|||
/**
|
||||
*
|
||||
* @author najmi
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface SubscriptionCallback {
|
||||
|
||||
void onNotify(Subscription subscribed, SyndFeedInfo feedInfo);
|
||||
|
|
|
@ -35,7 +35,9 @@ import com.rometools.certiorem.sub.data.Subscription;
|
|||
/**
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class InMemorySubDAO implements SubDAO {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(InMemorySubDAO.class);
|
||||
|
|
|
@ -29,7 +29,9 @@ import com.rometools.certiorem.sub.data.Subscription;
|
|||
/**
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class AbstractRequester implements Requester {
|
||||
|
||||
protected boolean sendRequest(final String hubUrl, final String mode, final Subscription subscription, final String verifySync, final long leaseSeconds,
|
||||
|
|
|
@ -29,7 +29,9 @@ import com.rometools.certiorem.sub.data.Subscription;
|
|||
* A simple requester implementation that always makes requests as Async.
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class AsyncRequester extends AbstractRequester {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(AsyncRequester.class);
|
||||
|
|
|
@ -33,7 +33,9 @@ import com.rometools.certiorem.sub.data.Subscription;
|
|||
* A simple requester implementation that always makes requests as Async.
|
||||
*
|
||||
* @author Farrukh Najmi
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class SyncRequester extends AbstractRequester {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(SyncRequester.class);
|
||||
|
|
|
@ -32,7 +32,9 @@ import com.rometools.certiorem.hub.Hub;
|
|||
/**
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class AbstractHubServlet extends HttpServlet {
|
||||
/**
|
||||
*
|
||||
|
|
|
@ -32,7 +32,9 @@ import com.rometools.certiorem.sub.Subscriptions;
|
|||
/**
|
||||
*
|
||||
* @author robert.cooper
|
||||
* @deprecated Certiorem will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class AbstractSubServlet extends HttpServlet {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -21,7 +21,10 @@ import com.rometools.rome.io.impl.Atom10Parser;
|
|||
/**
|
||||
* Creates AtomService or ClientCollection based on username, password and end-point URI of Atom
|
||||
* protocol service.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class AtomClientFactory {
|
||||
|
||||
static {
|
||||
|
|
|
@ -15,11 +15,15 @@
|
|||
*/
|
||||
package com.rometools.propono.atom.client;
|
||||
|
||||
import com.rometools.propono.utils.ProponoException;
|
||||
|
||||
import org.apache.commons.httpclient.HttpClient;
|
||||
import org.apache.commons.httpclient.HttpMethodBase;
|
||||
|
||||
import com.rometools.propono.utils.ProponoException;
|
||||
|
||||
/**
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface AuthStrategy {
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,6 +21,10 @@ import org.apache.commons.httpclient.HttpMethodBase;
|
|||
import com.rometools.propono.utils.ProponoException;
|
||||
import com.rometools.rome.io.impl.Base64;
|
||||
|
||||
/**
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class BasicAuthStrategy implements AuthStrategy {
|
||||
private final String credentials;
|
||||
|
||||
|
|
|
@ -39,7 +39,10 @@ import com.rometools.rome.io.impl.Atom10Parser;
|
|||
* {@link com.rometools.rome.propono.atom.common.Collection} class to add a <code>getEntry()</code>
|
||||
* method and to return {@link com.rometools.rome.propono.atom.client.ClientWorkspace} objects
|
||||
* instead of common {@link com.rometools.rome.propono.atom.common.Workspace}s.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class ClientAtomService extends AtomService {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(ClientAtomService.class);
|
||||
|
|
|
@ -32,7 +32,10 @@ import com.rometools.propono.utils.ProponoException;
|
|||
/**
|
||||
* Models an Atom protocol Categories element, which may contain ROME Atom
|
||||
* {@link com.rometools.rome.feed.atom.Category} elements.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class ClientCategories extends Categories {
|
||||
private ClientCollection clientCollection = null;
|
||||
|
||||
|
|
|
@ -38,7 +38,10 @@ import com.rometools.rome.io.impl.Atom10Parser;
|
|||
/**
|
||||
* Models an Atom collection, extends Collection and adds methods for adding, retrieving, updateing
|
||||
* and deleting entries.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class ClientCollection extends Collection {
|
||||
|
||||
private final boolean writable = true;
|
||||
|
|
|
@ -47,7 +47,10 @@ import com.rometools.rome.io.impl.Atom10Parser;
|
|||
/**
|
||||
* Client implementation of Atom entry, extends ROME Entry to add methods for easily getting/setting
|
||||
* content, updating and removing the entry from the server.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class ClientEntry extends Entry {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -49,7 +49,10 @@ import com.rometools.rome.io.impl.Atom10Parser;
|
|||
/**
|
||||
* Client implementation of Atom media-link entry, an Atom entry that provides meta-data for a media
|
||||
* file (e.g. uploaded image or audio file).
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class ClientMediaEntry extends ClientEntry {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -28,7 +28,10 @@ import com.rometools.propono.utils.ProponoException;
|
|||
* {@link com.rometools.rome.propono.atom.common.Workspace} to return
|
||||
* {@link com.rometools.rome.propono.atom.client.ClientCollection} objects instead of common
|
||||
* {@link com.rometools.rome.propono.atom.common.Collection}s.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class ClientWorkspace extends Workspace {
|
||||
|
||||
private ClientAtomService atomService = null;
|
||||
|
|
|
@ -33,7 +33,10 @@ import com.rometools.rome.io.WireFeedInput;
|
|||
|
||||
/**
|
||||
* Enables iteration over entries in Atom protocol collection.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class EntryIterator implements Iterator<ClientEntry> {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(EntryIterator.class);
|
||||
|
|
|
@ -22,6 +22,10 @@ import org.apache.commons.httpclient.methods.PostMethod;
|
|||
|
||||
import com.rometools.propono.utils.ProponoException;
|
||||
|
||||
/**
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class GDataAuthStrategy implements AuthStrategy {
|
||||
private final String email;
|
||||
private final String password;
|
||||
|
|
|
@ -22,7 +22,10 @@ import com.rometools.propono.utils.ProponoException;
|
|||
|
||||
/**
|
||||
* No authentication
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class NoAuthStrategy implements AuthStrategy {
|
||||
|
||||
@Override
|
||||
|
|
|
@ -39,7 +39,10 @@ import com.rometools.propono.utils.ProponoException;
|
|||
|
||||
/**
|
||||
* Strategy for using OAuth.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class OAuthStrategy implements AuthStrategy {
|
||||
|
||||
private State state = State.UNAUTHORIZED;
|
||||
|
|
|
@ -29,7 +29,10 @@ import com.rometools.propono.utils.ProponoException;
|
|||
/**
|
||||
* Models an Atom Publishing Protocol Service Document. Is able to read a Service document from a
|
||||
* JDOM Document and to write Service document out as a JDOM Document.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class AtomService {
|
||||
|
||||
private List<Workspace> workspaces = new ArrayList<Workspace>();
|
||||
|
|
|
@ -28,7 +28,10 @@ import com.rometools.rome.io.impl.Atom10Parser;
|
|||
/**
|
||||
* Models an Atom protocol Categories element, which may contain ROME Atom
|
||||
* {@link com.rometools.rome.feed.atom.Category} elements.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class Categories {
|
||||
|
||||
private final List<Category> categories = new ArrayList<Category>();
|
||||
|
|
|
@ -27,7 +27,10 @@ import com.rometools.rome.io.impl.Atom10Parser;
|
|||
|
||||
/**
|
||||
* Models an Atom workspace collection.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class Collection {
|
||||
|
||||
public static final String ENTRY_TYPE = "application/atom+xml;type=entry";
|
||||
|
|
|
@ -26,7 +26,10 @@ import com.rometools.propono.utils.ProponoException;
|
|||
|
||||
/**
|
||||
* Models an Atom workspace.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class Workspace {
|
||||
|
||||
private String title = null;
|
||||
|
|
|
@ -25,7 +25,10 @@ import com.rometools.rome.feed.module.Module;
|
|||
|
||||
/**
|
||||
* ROME Extension Module to Atom protocol extensions to Atom format.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface AppModule extends Module {
|
||||
|
||||
public static final String URI = "http://www.w3.org/2007/app";
|
||||
|
|
|
@ -34,7 +34,10 @@ import com.rometools.rome.io.ModuleGenerator;
|
|||
|
||||
/**
|
||||
* Creates JDOM representation for APP Extension Module.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class AppModuleGenerator implements ModuleGenerator {
|
||||
|
||||
private static final Namespace APP_NS = Namespace.getNamespace("app", AppModule.URI);
|
||||
|
|
|
@ -27,7 +27,10 @@ import com.rometools.rome.feed.module.ModuleImpl;
|
|||
|
||||
/**
|
||||
* Bean representation of APP module.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class AppModuleImpl extends ModuleImpl implements AppModule {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -30,7 +30,10 @@ import com.rometools.rome.io.impl.DateParser;
|
|||
|
||||
/**
|
||||
* Parses APP module information from a JDOM element and into <code>AppModule</code> form.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class AppModuleParser implements ModuleParser {
|
||||
|
||||
/** Get URI of module namespace */
|
||||
|
|
|
@ -24,7 +24,10 @@ import javax.servlet.http.HttpServletResponse;
|
|||
/**
|
||||
* Exception thrown by {@link com.rometools.rome.propono.atom.server.AtomHandler} and extended by
|
||||
* other Propono Atom exception classes.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class AtomException extends Exception {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -32,7 +32,10 @@ import com.rometools.rome.feed.atom.Feed;
|
|||
* concrete sub-class of {@link com.rometools.rome.propono.atom.server.AtomHandlerFactory} which is
|
||||
* capable of instantiating it.
|
||||
* </p>
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface AtomHandler {
|
||||
/**
|
||||
* Get username of authenticated user. Return the username of the authenticated user
|
||||
|
|
|
@ -31,7 +31,10 @@ import org.slf4j.LoggerFactory;
|
|||
* factory that is capable of creating instances of your
|
||||
* {@link com.rometools.rome.propono.atom.server.AtomHandler} impementation.
|
||||
* </p>
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class AtomHandlerFactory {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(AtomHandlerFactory.class);
|
||||
|
|
|
@ -27,7 +27,10 @@ import javax.activation.MimetypesFileTypeMap;
|
|||
|
||||
/**
|
||||
* Represents a media link entry.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class AtomMediaResource {
|
||||
private String contentType = null;
|
||||
private long contentLength = 0;
|
||||
|
|
|
@ -24,7 +24,10 @@ import javax.servlet.http.HttpServletResponse;
|
|||
/**
|
||||
* Exception to be thrown by <code>AtomHandler</code> implementations in the case that a user is not
|
||||
* authorized to access a resource.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class AtomNotAuthorizedException extends AtomException {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -23,7 +23,10 @@ import javax.servlet.http.HttpServletResponse;
|
|||
|
||||
/**
|
||||
* Exception thrown by AtomHandler in that case a resource is not found.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class AtomNotFoundException extends AtomException {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -27,7 +27,10 @@ import java.util.Map;
|
|||
|
||||
/**
|
||||
* Represents HTTP request to be processed by AtomHandler.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface AtomRequest {
|
||||
|
||||
/**
|
||||
|
|
|
@ -29,7 +29,10 @@ import javax.servlet.http.HttpServletRequest;
|
|||
|
||||
/**
|
||||
* Default request implementation.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class AtomRequestImpl implements AtomRequest {
|
||||
|
||||
private HttpServletRequest wrapped = null;
|
||||
|
|
|
@ -55,7 +55,10 @@ import com.rometools.rome.io.impl.Atom10Parser;
|
|||
* care of parsing incoming XML into ROME Atom {@link com.rometools.rome.feed.atom.Entry} objects,
|
||||
* passing those to the handler and serializing to the response the entries and feeds returned by
|
||||
* the handler.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class AtomServlet extends HttpServlet {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -15,6 +15,10 @@
|
|||
*/
|
||||
package com.rometools.propono.atom.server;
|
||||
|
||||
/**
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
class ConfigurationError extends Error {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -20,7 +20,10 @@ package com.rometools.propono.atom.server;
|
|||
* {@link com.rometools.rome.propono.atom.server.AtomHandlerFactory} exists. This error will
|
||||
* typically be thrown when the class of a parser factory specified in the system properties cannot
|
||||
* be found or instantiated.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class FactoryConfigurationError extends Error {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -24,7 +24,10 @@ import java.util.Properties;
|
|||
/**
|
||||
* Find {@link com.rometools.rome.propono.atom.server.AtomHandlerFactory} based on properties
|
||||
* files.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
class FactoryFinder {
|
||||
|
||||
private static boolean debug = false;
|
||||
|
|
|
@ -27,7 +27,10 @@ import java.security.PrivilegedExceptionAction;
|
|||
/**
|
||||
* This class is duplicated for each subpackage, it is package private and therefore is not exposed
|
||||
* as part of the public API.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
class SecuritySupport {
|
||||
|
||||
ClassLoader getContextClassLoader() {
|
||||
|
|
|
@ -39,7 +39,10 @@ import com.rometools.rome.feed.atom.Feed;
|
|||
* File-based {@link com.rometools.rome.propono.atom.server.AtomHandler} implementation that stores
|
||||
* entries and media-entries to disk. Implemented using
|
||||
* {@link com.rometools.rome.propono.atom.server.impl.FileBasedAtomService}.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class FileBasedAtomHandler implements AtomHandler {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(FileBasedAtomHandler.class);
|
||||
|
|
|
@ -24,7 +24,10 @@ import com.rometools.propono.atom.server.AtomHandlerFactory;
|
|||
/**
|
||||
* Extends {@link com.rometools.rome.propono.atom.server.AtomHandlerFactory} to create and return
|
||||
* {@link com.rometools.rome.propono.atom.server.impl.FileBasedAtomHandler}.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class FileBasedAtomHandlerFactory extends AtomHandlerFactory {
|
||||
|
||||
/**
|
||||
|
|
|
@ -93,7 +93,10 @@ import com.rometools.propono.utils.Utilities;
|
|||
* Collection entry media (media file stored under entry directory)<br/>
|
||||
* <code>[servlet-context-dir]/[workspace-handle]/[collection-plural]/id/media/id</code>
|
||||
* </p>
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class FileBasedAtomService extends AtomService {
|
||||
|
||||
private final Map<String, FileBasedWorkspace> workspaceMap = new TreeMap<String, FileBasedWorkspace>();
|
||||
|
|
|
@ -63,7 +63,10 @@ import com.rometools.rome.io.impl.Atom10Parser;
|
|||
* File based Atom collection implementation. This is the heart of the file-based Atom service
|
||||
* implementation. It provides methods for adding, getting updating and deleting Atom entries and
|
||||
* media entries.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class FileBasedCollection extends Collection {
|
||||
|
||||
private String handle = null;
|
||||
|
|
|
@ -19,7 +19,10 @@ import com.rometools.propono.atom.common.Workspace;
|
|||
|
||||
/**
|
||||
* File based Atom service Workspace.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class FileBasedWorkspace extends Workspace {
|
||||
|
||||
public FileBasedWorkspace(final String handle, final String baseDir) {
|
||||
|
|
|
@ -31,7 +31,10 @@ import org.slf4j.LoggerFactory;
|
|||
|
||||
/**
|
||||
* Class which helps in handling File persistence related operations.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
class FileStore {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(FileStore.class);
|
||||
|
|
|
@ -21,7 +21,10 @@ import java.util.List;
|
|||
|
||||
/**
|
||||
* Base implementation of a blog entry.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class BaseBlogEntry implements BlogEntry {
|
||||
protected String id = null;
|
||||
protected Person author = null;
|
||||
|
|
|
@ -24,7 +24,10 @@ import java.util.List;
|
|||
* using the getCollections() and getCollection(String name) methods, which return Blog.Collection
|
||||
* objects, which you can use to create, retrieve update or delete entries within a collection.
|
||||
* </p>
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface Blog {
|
||||
|
||||
/**
|
||||
|
|
|
@ -18,7 +18,10 @@ package com.rometools.propono.blogclient;
|
|||
/**
|
||||
* Represents a Blog Client exception, the library throws these instead of implementation specific
|
||||
* exceptions.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class BlogClientException extends Exception {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -20,7 +20,10 @@ import java.util.List;
|
|||
/**
|
||||
* A BlogConnection is a single-user connection to a blog server where the user has access to
|
||||
* multiple blogs, which are each represented by a Blog interface.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface BlogConnection {
|
||||
|
||||
/** Returns collection of blogs available from this connection */
|
||||
|
|
|
@ -19,7 +19,10 @@ import java.lang.reflect.Constructor;
|
|||
|
||||
/**
|
||||
* Entry point to the Blogapps blog client library.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class BlogConnectionFactory {
|
||||
|
||||
// BlogConnection implementations must:
|
||||
|
|
|
@ -20,7 +20,10 @@ import java.util.List;
|
|||
|
||||
/**
|
||||
* Represents a single blog entry.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface BlogEntry {
|
||||
|
||||
/** Get token, which can be used to fetch the blog entry */
|
||||
|
|
|
@ -23,7 +23,10 @@ import java.io.InputStream;
|
|||
* Resources are modeled as a type of BlogEntry, but be aware: not all servers can save resource
|
||||
* metadata (i.e. title, category, author, etc.). MetaWeblog based servers can't save metadata at
|
||||
* all and Atom protocol servers are not required to preserve uploaded file metadata.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface BlogResource extends BlogEntry {
|
||||
|
||||
/** Get resource name (name is required) */
|
||||
|
|
|
@ -34,7 +34,10 @@ import com.rometools.propono.utils.ProponoException;
|
|||
|
||||
/**
|
||||
* Atom protocol implementation of the BlogClient Blog interface.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class AtomBlog implements Blog {
|
||||
|
||||
private String name = null;
|
||||
|
|
|
@ -31,7 +31,10 @@ import com.rometools.rome.feed.atom.Category;
|
|||
|
||||
/**
|
||||
* Atom protocol implementation of BlogClient Blog.Collection.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class AtomCollection implements Blog.Collection {
|
||||
|
||||
private Blog blog = null;
|
||||
|
|
|
@ -33,7 +33,10 @@ import com.rometools.propono.blogclient.BlogConnection;
|
|||
/**
|
||||
* Atom protocol of BlogConnection. Connects to Atom server, creates AtomBlog object for each Atom
|
||||
* workspace found and within each blog a collection for each Atom collection found.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class AtomConnection implements BlogConnection {
|
||||
|
||||
private final Map<String, Blog> blogs = new HashMap<String, Blog>();
|
||||
|
|
|
@ -33,7 +33,10 @@ import com.rometools.rome.feed.synd.SyndPerson;
|
|||
|
||||
/**
|
||||
* Atom protocol implementation of BlogEntry.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class AtomEntry extends BaseBlogEntry implements BlogEntry {
|
||||
|
||||
String editURI = null;
|
||||
|
|
|
@ -27,7 +27,10 @@ import com.rometools.propono.blogclient.BlogEntry;
|
|||
|
||||
/**
|
||||
* Atom protocol implementation of BlogClient entry iterator.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class AtomEntryIterator implements Iterator<BlogEntry> {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(AtomEntryIterator.class);
|
||||
|
|
|
@ -29,7 +29,10 @@ import com.rometools.rome.feed.atom.Link;
|
|||
|
||||
/**
|
||||
* Atom protocol implementation of BlogResource.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class AtomResource extends AtomEntry implements BlogResource {
|
||||
|
||||
private AtomCollection collection;
|
||||
|
|
|
@ -37,7 +37,10 @@ import com.rometools.propono.blogclient.BlogResource;
|
|||
|
||||
/**
|
||||
* Blog implementation that uses a mix of Blogger and MetaWeblog API methods.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class MetaWeblogBlog implements Blog {
|
||||
|
||||
private final String blogid;
|
||||
|
|
|
@ -32,7 +32,10 @@ import com.rometools.propono.blogclient.BlogConnection;
|
|||
|
||||
/**
|
||||
* BlogClient implementation that uses a mix of Blogger and MetaWeblog API methods.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class MetaWeblogConnection implements BlogConnection {
|
||||
|
||||
private URL url = null;
|
||||
|
|
|
@ -27,7 +27,10 @@ import com.rometools.propono.blogclient.BlogEntry;
|
|||
|
||||
/**
|
||||
* MetaWeblog API implementation of an entry.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class MetaWeblogEntry extends BaseBlogEntry {
|
||||
|
||||
MetaWeblogEntry(final MetaWeblogBlog blog, final Map<String, Object> entryMap) {
|
||||
|
|
|
@ -26,7 +26,10 @@ import com.rometools.propono.blogclient.BlogResource;
|
|||
|
||||
/**
|
||||
* MetaWeblog API implementation of an resource entry.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class MetaWeblogResource extends MetaWeblogEntry implements BlogResource {
|
||||
private final MetaWeblogBlog blog;
|
||||
private final String name;
|
||||
|
|
|
@ -17,6 +17,10 @@ package com.rometools.propono.blogclient.metaweblog;
|
|||
|
||||
import java.util.Iterator;
|
||||
|
||||
/**
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
class NoOpIterator<T> implements Iterator<T> {
|
||||
|
||||
/** No-op */
|
||||
|
|
|
@ -20,7 +20,10 @@ import java.io.PrintWriter;
|
|||
|
||||
/**
|
||||
* Base Propono exception class.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public class ProponoException extends Exception {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -30,7 +30,10 @@ import java.util.regex.Pattern;
|
|||
|
||||
/**
|
||||
* Utilities for file I/O and string manipulation.
|
||||
*
|
||||
* @deprecated Propono will be removed in Rome 2.
|
||||
*/
|
||||
@Deprecated
|
||||
public final class Utilities {
|
||||
|
||||
private static final String LS = System.getProperty("line.separator");
|
||||
|
|
Loading…
Reference in a new issue