ca.infoway.messagebuilder.guide.hello_world
Class HelloWorldApp

Package class diagram package HelloWorldApp
java.lang.Object
  extended by ca.infoway.messagebuilder.guide.hello_world.HelloWorldApp
Direct Known Subclasses:
DrugPrescriptionQueryApp, FindCandidatesApp, ImmunizationQueryApp, LabResultsQueryApp

public abstract class HelloWorldApp
extends Object


Field Summary
protected  boolean isSimulatedMode
           
static VersionNumber MBSpecificationVersion
           
protected  String responseExampleResourceFile
           
 
Constructor Summary
HelloWorldApp()
           
 
Method Summary
protected  String convertBeanToXML(InteractionBean msgBean)
           
 String convertStreamToString(InputStream is)
           
protected  InteractionBean convertXMLToBean(String xml)
           
protected  CreatedBy_1Bean createAuthor_1Bean()
           
protected  CreatedBy_2Bean createAuthor_2Bean()
           
protected  CredentialsProvider createCredentialsProvider(String userid, String password)
           
protected  PostalAddress createPostalAddres()
           
protected  Patient_2Bean createRecordTarget()
           
protected abstract  InteractionBean createRequestInteraction()
           
protected  ServiceDeliveryLocationBean createServiceDeliveryLocationBean()
           
protected  ServiceLocationBean createServiceLocationBean()
           
protected  MessageBeanTransformerImpl createTransformer()
           
protected abstract  void processResponseInteraction(InteractionBean interactionBean)
           
protected  String readResourceFile(String resourceName)
           
 void run(String[] args)
           
protected  void setTransportWrapperValues(HL7Message_1Bean<?> messageBean)
           
protected  String submitRequest(InteractionBean msg, CredentialsProvider credentials, ServiceType serviceType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isSimulatedMode

protected boolean isSimulatedMode

responseExampleResourceFile

protected String responseExampleResourceFile

MBSpecificationVersion

public static final VersionNumber MBSpecificationVersion
Constructor Detail

HelloWorldApp

public HelloWorldApp()
Method Detail

createRequestInteraction

protected abstract InteractionBean createRequestInteraction()

processResponseInteraction

protected abstract void processResponseInteraction(InteractionBean interactionBean)

run

public final void run(String[] args)

submitRequest

protected String submitRequest(InteractionBean msg,
                               CredentialsProvider credentials,
                               ServiceType serviceType)

createTransformer

protected MessageBeanTransformerImpl createTransformer()

convertBeanToXML

protected String convertBeanToXML(InteractionBean msgBean)

convertXMLToBean

protected InteractionBean convertXMLToBean(String xml)

createCredentialsProvider

protected CredentialsProvider createCredentialsProvider(String userid,
                                                        String password)

setTransportWrapperValues

protected void setTransportWrapperValues(HL7Message_1Bean<?> messageBean)

createServiceLocationBean

protected ServiceLocationBean createServiceLocationBean()

createServiceDeliveryLocationBean

protected ServiceDeliveryLocationBean createServiceDeliveryLocationBean()

createPostalAddres

protected PostalAddress createPostalAddres()

createAuthor_2Bean

protected CreatedBy_2Bean createAuthor_2Bean()

createAuthor_1Bean

protected CreatedBy_1Bean createAuthor_1Bean()

createRecordTarget

protected Patient_2Bean createRecordTarget()

readResourceFile

protected String readResourceFile(String resourceName)

convertStreamToString

public String convertStreamToString(InputStream is)
                             throws IOException
Throws:
IOException


Copyright © 2013. All Rights Reserved.