1 | |
package org.kuali.maven.wagon; |
2 | |
|
3 | |
import java.io.File; |
4 | |
|
5 | |
import org.apache.maven.wagon.events.TransferEvent; |
6 | |
import org.apache.maven.wagon.resource.Resource; |
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | 0 | public class PutContext { |
12 | |
File source; |
13 | |
String destination; |
14 | |
Resource resource; |
15 | |
TransferProgress progress; |
16 | |
TransferListenerSupport listeners; |
17 | |
|
18 | |
public void fireStart() { |
19 | 0 | listeners.fireTransferInitiated(getResource(), TransferEvent.REQUEST_PUT); |
20 | 0 | listeners.fireTransferStarted(getResource(), TransferEvent.REQUEST_PUT); |
21 | 0 | } |
22 | |
|
23 | |
public void fireComplete() { |
24 | 0 | listeners.fireTransferCompleted(getResource(), TransferEvent.REQUEST_PUT); |
25 | 0 | } |
26 | |
|
27 | |
public Resource getResource() { |
28 | 0 | return resource; |
29 | |
} |
30 | |
|
31 | |
public void setResource(Resource resource) { |
32 | 0 | this.resource = resource; |
33 | 0 | } |
34 | |
|
35 | |
public TransferProgress getProgress() { |
36 | 0 | return progress; |
37 | |
} |
38 | |
|
39 | |
public void setProgress(TransferProgress progress) { |
40 | 0 | this.progress = progress; |
41 | 0 | } |
42 | |
|
43 | |
public TransferListenerSupport getListeners() { |
44 | 0 | return listeners; |
45 | |
} |
46 | |
|
47 | |
public void setListeners(TransferListenerSupport listeners) { |
48 | 0 | this.listeners = listeners; |
49 | 0 | } |
50 | |
|
51 | |
public String getDestination() { |
52 | 0 | return destination; |
53 | |
} |
54 | |
|
55 | |
public void setDestination(String destination) { |
56 | 0 | this.destination = destination; |
57 | 0 | } |
58 | |
|
59 | |
public File getSource() { |
60 | 0 | return source; |
61 | |
} |
62 | |
|
63 | |
public void setSource(File source) { |
64 | 0 | this.source = source; |
65 | 0 | } |
66 | |
|
67 | |
} |