1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.endpoint; |
12 | |
|
13 | |
import org.mule.api.MuleContext; |
14 | |
import org.mule.api.endpoint.EndpointException; |
15 | |
import org.mule.api.endpoint.EndpointURI; |
16 | |
import org.mule.api.endpoint.ImmutableEndpoint; |
17 | |
|
18 | |
public class EndpointURIEndpointBuilder extends AbstractEndpointBuilder |
19 | |
{ |
20 | |
|
21 | |
public EndpointURIEndpointBuilder() |
22 | 0 | { |
23 | |
|
24 | 0 | } |
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
public EndpointURIEndpointBuilder(EndpointURIEndpointBuilder global) throws EndpointException |
33 | 0 | { |
34 | |
|
35 | |
|
36 | |
|
37 | 0 | uriBuilder = global.uriBuilder; |
38 | 0 | connector = global.connector; |
39 | 0 | transformers = global.transformers; |
40 | 0 | responseTransformers = global.responseTransformers; |
41 | 0 | name = global.name; |
42 | |
|
43 | 0 | properties = global.properties; |
44 | 0 | transactionConfig = global.transactionConfig; |
45 | 0 | filter = global.filter; |
46 | 0 | deleteUnacceptedMessages = global.deleteUnacceptedMessages; |
47 | 0 | securityFilter = global.securityFilter; |
48 | 0 | synchronous = global.synchronous; |
49 | 0 | remoteSync = global.remoteSync; |
50 | 0 | remoteSyncTimeout = global.remoteSyncTimeout; |
51 | 0 | encoding = global.encoding; |
52 | 0 | connectionStrategy = global.connectionStrategy; |
53 | 0 | } |
54 | |
|
55 | |
public EndpointURIEndpointBuilder(URIBuilder URIBuilder, MuleContext muleContext) |
56 | 486 | { |
57 | 486 | this.muleContext = muleContext; |
58 | 486 | this.uriBuilder = URIBuilder; |
59 | 486 | } |
60 | |
|
61 | |
|
62 | |
|
63 | |
|
64 | |
public EndpointURIEndpointBuilder(String address, MuleContext muleContext) |
65 | |
{ |
66 | 486 | this(new URIBuilder(address), muleContext); |
67 | 486 | } |
68 | |
|
69 | |
|
70 | |
|
71 | |
|
72 | |
public EndpointURIEndpointBuilder(EndpointURI endpointURI, MuleContext muleContext) |
73 | |
{ |
74 | 0 | this(new URIBuilder(endpointURI), muleContext); |
75 | 0 | } |
76 | |
|
77 | |
public EndpointURIEndpointBuilder(ImmutableEndpoint source, MuleContext muleContext) |
78 | |
{ |
79 | 0 | this(source.getEndpointURI(), muleContext); |
80 | 0 | setName(source.getName()); |
81 | 0 | setEncoding(source.getEncoding()); |
82 | 0 | setConnector(source.getConnector()); |
83 | 0 | setTransformers(source.getTransformers().isEmpty() ? null : source.getTransformers()); |
84 | 0 | setResponseTransformers(source.getResponseTransformers().isEmpty() ? null : source.getResponseTransformers()); |
85 | 0 | setProperties(source.getProperties()); |
86 | 0 | setTransactionConfig(source.getTransactionConfig()); |
87 | 0 | setDeleteUnacceptedMessages(source.isDeleteUnacceptedMessages()); |
88 | 0 | setInitialState(source.getInitialState()); |
89 | 0 | setRemoteSyncTimeout(source.getRemoteSyncTimeout()); |
90 | 0 | setRemoteSync(source.isRemoteSync()); |
91 | 0 | setFilter(source.getFilter()); |
92 | 0 | setSecurityFilter(source.getSecurityFilter()); |
93 | 0 | setConnectionStrategy(source.getConnectionStrategy()); |
94 | 0 | setSynchronous(source.isSynchronous()); |
95 | 0 | setMuleContext(source.getMuleContext()); |
96 | 0 | } |
97 | |
|
98 | |
} |