1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.api.endpoint; |
12 | |
|
13 | |
import org.mule.api.MuleContext; |
14 | |
import org.mule.api.context.MuleContextAware; |
15 | |
import org.mule.api.lifecycle.InitialisationException; |
16 | |
import org.mule.api.routing.filter.Filter; |
17 | |
import org.mule.api.security.EndpointSecurityFilter; |
18 | |
import org.mule.api.transaction.TransactionConfig; |
19 | |
import org.mule.api.transformer.Transformer; |
20 | |
import org.mule.api.transport.ConnectionStrategy; |
21 | |
import org.mule.api.transport.Connector; |
22 | |
import org.mule.endpoint.URIBuilder; |
23 | |
|
24 | |
import java.util.List; |
25 | |
import java.util.Map; |
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
public interface EndpointBuilder extends MuleContextAware, Cloneable |
33 | |
{ |
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
InboundEndpoint buildInboundEndpoint() throws EndpointException, InitialisationException; |
43 | |
|
44 | |
|
45 | |
|
46 | |
|
47 | |
|
48 | |
|
49 | |
|
50 | |
|
51 | |
OutboundEndpoint buildOutboundEndpoint() throws EndpointException, InitialisationException; |
52 | |
|
53 | |
void setConnector(Connector connector); |
54 | |
|
55 | |
void addTransformer(Transformer transformer); |
56 | |
|
57 | |
void setTransformers(List transformers); |
58 | |
|
59 | |
void setResponseTransformers(List responseTransformer); |
60 | |
|
61 | |
void setName(String name); |
62 | |
|
63 | |
void setProperty(Object key, Object value); |
64 | |
|
65 | |
void setProperties(Map properties); |
66 | |
|
67 | |
void setTransactionConfig(TransactionConfig transactionConfig); |
68 | |
|
69 | |
void setFilter(Filter filter); |
70 | |
|
71 | |
void setDeleteUnacceptedMessages(boolean deleteUnacceptedMessages); |
72 | |
|
73 | |
void setSecurityFilter(EndpointSecurityFilter securityFilter); |
74 | |
|
75 | |
void setSynchronous(boolean synchronous); |
76 | |
|
77 | |
void setRemoteSync(boolean remoteSync); |
78 | |
|
79 | |
void setRemoteSyncTimeout(int remoteSyncTimeout); |
80 | |
|
81 | |
void setInitialState(String initialState); |
82 | |
|
83 | |
void setEncoding(String encoding); |
84 | |
|
85 | |
void setRegistryId(String registryId); |
86 | |
|
87 | |
void setMuleContext(MuleContext muleContext); |
88 | |
|
89 | |
void setConnectionStrategy(ConnectionStrategy connectionStrategy); |
90 | |
|
91 | |
void setURIBuilder(URIBuilder URIBuilder); |
92 | |
|
93 | |
Object clone() throws CloneNotSupportedException; |
94 | |
|
95 | |
} |