1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.openehealth.ipf.platform.camel.ihe.hl7v2ws.pcd01;
17
18 import org.apache.camel.Endpoint;
19 import org.openehealth.ipf.commons.ihe.ws.JaxWsClientFactory;
20 import org.openehealth.ipf.commons.ihe.ws.WsTransactionConfiguration;
21 import org.openehealth.ipf.commons.ihe.ws.cxf.audit.WsAuditDataset;
22 import org.openehealth.ipf.platform.camel.ihe.hl7v2ws.AbstractHl7v2WsComponent;
23 import org.openehealth.ipf.platform.camel.ihe.hl7v2ws.SimpleHl7v2WsEndpoint;
24 import org.openehealth.ipf.platform.camel.ihe.ws.AbstractWsEndpoint;
25 import org.openehealth.ipf.platform.camel.ihe.ws.AbstractWsProducer;
26 import org.openehealth.ipf.platform.camel.ihe.ws.SimpleWsProducer;
27
28 import java.util.Map;
29
30 import static org.openehealth.ipf.commons.ihe.hl7v2ws.PCD.Interactions.PCD_01;
31
32
33
34
35
36 public class Pcd01Component extends AbstractHl7v2WsComponent {
37
38 public Pcd01Component() {
39 super(PCD_01);
40 }
41
42 @Override
43 protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) {
44 return new SimpleHl7v2WsEndpoint<Pcd01Component>(uri, remaining, this, parameters, Pcd01Service.class) {
45 @Override
46 public AbstractWsProducer<WsAuditDataset, WsTransactionConfiguration<WsAuditDataset>, ?, ?> getProducer(
47 AbstractWsEndpoint<WsAuditDataset, WsTransactionConfiguration<WsAuditDataset>> endpoint,
48 JaxWsClientFactory<WsAuditDataset> clientFactory) {
49 return new SimpleWsProducer<>(endpoint, clientFactory, String.class, String.class);
50 }
51 };
52 }
53
54
55 }