Last change
on this file since 507 was 507, checked in by George Lilly, 15 years ago |
NHIN gateway and adaptor for use on linux with VistA EHR and RPMS
|
File size:
1.6 KB
|
Line | |
---|
1 | /*
|
---|
2 | * To change this template, choose Tools | Templates
|
---|
3 | * and open the template in the editor.
|
---|
4 | */
|
---|
5 | package gov.hhs.fha.nhinc.subscription.dte;
|
---|
6 |
|
---|
7 | import gov.hhs.fha.nhinc.common.subscriptiondte.CreateSubscribeResponseRequestType;
|
---|
8 | import gov.hhs.fha.nhinc.common.subscriptiondte.CreateSubscribeResponseResponseType;
|
---|
9 | import gov.hhs.fha.nhinc.subscription.*;
|
---|
10 | import javax.xml.parsers.DocumentBuilderFactory;
|
---|
11 | import javax.xml.parsers.ParserConfigurationException;
|
---|
12 | import javax.xml.ws.wsaddressing.W3CEndpointReference;
|
---|
13 | import javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder;
|
---|
14 | import org.oasis_open.docs.wsn.b_2.*;
|
---|
15 | import org.w3c.dom.*;
|
---|
16 |
|
---|
17 | /**
|
---|
18 | *
|
---|
19 | * @author rayj
|
---|
20 | */
|
---|
21 | public class CreateSubscribeResponseHelper {
|
---|
22 |
|
---|
23 | private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(CreateSubscribeResponseHelper.class);
|
---|
24 |
|
---|
25 | public static CreateSubscribeResponseResponseType createSubscribeResponse(CreateSubscribeResponseRequestType request) {
|
---|
26 | log.info("being createSubscribeResponse");
|
---|
27 | CreateSubscribeResponseResponseType response = new CreateSubscribeResponseResponseType();
|
---|
28 | SubscribeResponse subscribeResponse = new SubscribeResponse();
|
---|
29 |
|
---|
30 | if (request != null) {
|
---|
31 | W3CEndpointReference subref = SubscriptionReferenceHelper.createNhinSubscriptionReference(request.getSubscriptionReference());
|
---|
32 | subscribeResponse.setSubscriptionReference(subref);
|
---|
33 | }
|
---|
34 |
|
---|
35 | response.setSubscribeResponse(subscribeResponse);
|
---|
36 |
|
---|
37 | log.info("end createSubscribeResponse");
|
---|
38 | return response;
|
---|
39 | }
|
---|
40 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.