1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
package org.mule.transport.http; |
11 | |
|
12 | |
import org.mule.api.MuleContext; |
13 | |
import org.mule.api.config.MuleProperties; |
14 | |
|
15 | |
import java.util.Properties; |
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | |
public class HttpsPollingConnector extends HttpsConnector |
22 | |
{ |
23 | |
|
24 | |
|
25 | |
|
26 | 0 | private long pollingFrequency = 1000L; |
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | 0 | private boolean discardEmptyContent = true; |
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | 0 | private boolean checkEtag = true; |
37 | |
|
38 | |
public HttpsPollingConnector(MuleContext context) |
39 | |
{ |
40 | 0 | super(context); |
41 | 0 | serviceOverrides = new Properties(); |
42 | 0 | serviceOverrides.setProperty(MuleProperties.CONNECTOR_MESSAGE_RECEIVER_CLASS, PollingHttpMessageReceiver.class.getName()); |
43 | 0 | } |
44 | |
|
45 | |
public boolean isDiscardEmptyContent() |
46 | |
{ |
47 | 0 | return discardEmptyContent; |
48 | |
} |
49 | |
|
50 | |
public void setDiscardEmptyContent(boolean discardEmptyContent) |
51 | |
{ |
52 | 0 | this.discardEmptyContent = discardEmptyContent; |
53 | 0 | } |
54 | |
|
55 | |
public long getPollingFrequency() |
56 | |
{ |
57 | 0 | return pollingFrequency; |
58 | |
} |
59 | |
|
60 | |
public void setPollingFrequency(long pollingFrequency) |
61 | |
{ |
62 | 0 | this.pollingFrequency = pollingFrequency; |
63 | 0 | } |
64 | |
|
65 | |
public boolean isCheckEtag() |
66 | |
{ |
67 | 0 | return checkEtag; |
68 | |
} |
69 | |
|
70 | |
public void setCheckEtag(boolean checkEtag) |
71 | |
{ |
72 | 0 | this.checkEtag = checkEtag; |
73 | 0 | } |
74 | |
} |