source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Gateway/SubscriptionDteEjb/src/java/gov/hhs/fha/nhinc/subscription/dte/CreateSubscribeResponseHelper.java@ 507

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 */
5package gov.hhs.fha.nhinc.subscription.dte;
6
7import gov.hhs.fha.nhinc.common.subscriptiondte.CreateSubscribeResponseRequestType;
8import gov.hhs.fha.nhinc.common.subscriptiondte.CreateSubscribeResponseResponseType;
9import gov.hhs.fha.nhinc.subscription.*;
10import javax.xml.parsers.DocumentBuilderFactory;
11import javax.xml.parsers.ParserConfigurationException;
12import javax.xml.ws.wsaddressing.W3CEndpointReference;
13import javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder;
14import org.oasis_open.docs.wsn.b_2.*;
15import org.w3c.dom.*;
16
17/**
18 *
19 * @author rayj
20 */
21public 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.