01: package org.methodize.nntprss.rss.publish;
02:
03: /* -----------------------------------------------------------
04: * nntp//rss - a bridge between the RSS world and NNTP clients
05: * Copyright (c) 2002, 2003 Jason Brome. All Rights Reserved.
06: *
07: * email: nntprss@methodize.org
08: * mail: Methodize Solutions
09: * PO Box 3865
10: * Grand Central Station
11: * New York NY 10163
12: *
13: * This file is part of nntp//rss
14: *
15: * nntp//rss is free software; you can redistribute it
16: * and/or modify it under the terms of the GNU General
17: * Public License as published by the Free Software Foundation;
18: * either version 2 of the License, or (at your option) any
19: * later version.
20: *
21: * This program is distributed in the hope that it will be
22: * useful, but WITHOUT ANY WARRANTY; without even the implied
23: * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
24: * PURPOSE. See the GNU General Public License for more
25: * details.
26: *
27: * You should have received a copy of the GNU General Public
28: * License along with this program; if not, write to the
29: * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
30: * Boston, MA 02111-1307 USA
31: * ----------------------------------------------------- */
32:
33: import java.util.Map;
34:
35: import org.methodize.nntprss.rss.Item;
36:
37: /**
38: * @author Jason Brome <jason@methodize.org>
39: * @version $Id: Publisher.java,v 1.1 2003/03/17 04:44:07 jasonbrome Exp $
40: */
41: public interface Publisher {
42:
43: public static final String PROP_PUBLISHER_URL = "publisher.url";
44: public static final String PROP_BLOG_ID = "publisher.blogid";
45: public static final String PROP_USERNAME = "publisher.username";
46: public static final String PROP_PASSWORD = "publisher.password";
47: public static final String PROP_PUBLISH = "publisher.publish";
48:
49: public void publish(Map profile, Item content)
50: throws PublisherException;
51:
52: public void validate(Map profile) throws PublisherException;
53:
54: }
|