01: /*
02: * Created on Apr 29, 2004
03: *
04: * This file is part of Thingamablog. ( http://thingamablog.sf.net )
05: *
06: * Copyright (c) 2004, Bob Tantlinger All Rights Reserved.
07: *
08: * This program is free software; you can redistribute it and/or
09: * modify it under the terms of the GNU General Public License
10: * as published by the Free Software Foundation; either version 2
11: * of the License, or (at your option) any later version.
12: *
13: * This program is distributed in the hope that it will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16: * GNU General Public License for more details.
17: *
18: * You should have received a copy of the GNU General Public License
19: * along with this program; if not, write to the Free Software
20: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
21: * USA.
22: */
23: package net.sf.thingamablog.transport;
24:
25: import java.io.File;
26:
27: /**
28: * Interface that describes a PublishTransport. A PublishTransport
29: * publishes the files of a weblog.
30: *
31: * @author Bob Tantlinger
32: *
33: */
34: public interface PublishTransport extends Transport {
35:
36: /**
37: * Publishes a file
38: *
39: * @param pubPath The path to publish the file to
40: * @param file The file to publish
41: * @param tp The transport progress
42: * @return true if the file was publish, false if the publish failed
43: */
44: public boolean publishFile(String pubPath, File file,
45: TransportProgress tp);
46:
47: }
|