au.gov.nehta.vendorlibrary.hi.ihi
Class ConsumerSearchIHIBatchSyncClient

java.lang.Object
  extended by au.gov.nehta.vendorlibrary.hi.ihi.ConsumerSearchIHIBatchSyncClient

public class ConsumerSearchIHIBatchSyncClient
extends java.lang.Object

An implementation of a Healthcare Identifiers (HI) - Individual Healthcare Identifier (IHI) batch search client. This class may be used to connect to the Medicare HI Service to do Consumer Search IHI Synchronized Batch searches.


Nested Class Summary
static class ConsumerSearchIHIBatchSyncClient.SearchBatch
          Helper inner class to create a batch of validated IHI searches.
 
Field Summary
static java.lang.String EMPTY
          Empty String variable.
 
Constructor Summary
ConsumerSearchIHIBatchSyncClient(java.lang.String searchIhiServiceEndpoint, au.net.electronichealth.ns.hi.common.qualifiedidentifier._3_0.QualifiedId individualQualifiedId, javax.xml.ws.Holder<au.net.electronichealth.ns.hi.common.commoncoreelements._3_0.ProductType> productHeader, java.security.PrivateKey signingPrivateKey, java.security.cert.X509Certificate signingCertificate, javax.net.ssl.SSLSocketFactory sslSocketFactory)
          Constructor which creates a new ConsumerSearchIHIBatchSyncClient with an endpoint and an SSL Socket Factory.
 
Method Summary
 au.net.electronichealth.ns.hi.svc.consumersearchihibatchsync._3_2_0.SearchIHIBatchResponse batchSearch(ConsumerSearchIHIBatchSyncClient.SearchBatch request)
          Executes a SearchIHIBatchSync search.
 java.lang.String getLastSoapRequest()
          Getter for lastSoapRequest.
 java.lang.String getLastSoapResponse()
          Getter for lastSoapResponse.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

public static final java.lang.String EMPTY
Empty String variable.

See Also:
Constant Field Values
Constructor Detail

ConsumerSearchIHIBatchSyncClient

public ConsumerSearchIHIBatchSyncClient(java.lang.String searchIhiServiceEndpoint,
                                        au.net.electronichealth.ns.hi.common.qualifiedidentifier._3_0.QualifiedId individualQualifiedId,
                                        javax.xml.ws.Holder<au.net.electronichealth.ns.hi.common.commoncoreelements._3_0.ProductType> productHeader,
                                        java.security.PrivateKey signingPrivateKey,
                                        java.security.cert.X509Certificate signingCertificate,
                                        javax.net.ssl.SSLSocketFactory sslSocketFactory)
Constructor which creates a new ConsumerSearchIHIBatchSyncClient with an endpoint and an SSL Socket Factory.

Parameters:
searchIhiServiceEndpoint - the Web Service endpoint for the Medicare HI Service interface (Mandatory)
individualQualifiedId - The qualified user ID for connecting to the ConsumerSearchIHIBatchSync service (Mandatory)
productHeader - The product header data for connecting to the ConsumerSearchIHIBatchSync service (Mandatory)
signingPrivateKey - The private key to be used for signing (Mandatory)
signingCertificate - The certificate to be used for signing (Mandatory)
sslSocketFactory - the SSL Socket Factory to be used when connecting to the Web Service provider (Mandatory)
Method Detail

batchSearch

public final au.net.electronichealth.ns.hi.svc.consumersearchihibatchsync._3_2_0.SearchIHIBatchResponse batchSearch(ConsumerSearchIHIBatchSyncClient.SearchBatch request)
                                                                                                             throws au.net.electronichealth.ns.hi.svc.consumersearchihibatchsync._3_2_0.StandardErrorMsg
Executes a SearchIHIBatchSync search.

Parameters:
request - the SearchBatch request object containing the searches to be performed.
Returns:
the response from the SearchIHIBatchSync service
Throws:
au.net.electronichealth.ns.hi.svc.consumersearchihibatchsync._3_2_0.StandardErrorMsg - if the Web Service call fails.

getLastSoapResponse

public final java.lang.String getLastSoapResponse()
Getter for lastSoapResponse.

Returns:
lastSoapResponse the lastSoapResponse instance variable

getLastSoapRequest

public final java.lang.String getLastSoapRequest()
Getter for lastSoapRequest.

Returns:
lastSoapRequest the lastSoapRequest instance variable (Mandatory)