01: /*
02: * Created on Oct 17, 2007
03: */
04: package net.sf.thingamablog.transport;
05:
06: /**
07: * @author Bob Tantlinger
08: *
09: */
10: public interface Transport {
11: /**
12: * Connects the transport
13: *
14: * @return true on success, false otherwise
15: */
16: public boolean connect();
17:
18: /**
19: * Disconnects the transport
20: *
21: * @return true on success, false otherwise
22: */
23: public boolean disconnect();
24:
25: /**
26: * Indicates if the transport is connected
27: *
28: * @return true if connected, false if not
29: */
30: public boolean isConnected();
31:
32: /**
33: * Returns the reason the connect or publishFile returned false.. i.e failed
34: *
35: * @return The reason for failing
36: */
37: public String getFailureReason();
38: }
|