au.gov.nehta.vendorlibrary.pcehr.clients.template
Class SearchTemplateClient

java.lang.Object
  extended by au.gov.nehta.vendorlibrary.pcehr.clients.common.Client<au.net.electronichealth.ns.tplt.svc.searchtemplate._1.SearchTemplatePortType>
      extended by au.gov.nehta.vendorlibrary.pcehr.clients.template.SearchTemplateClient

public final class SearchTemplateClient
extends Client<au.net.electronichealth.ns.tplt.svc.searchtemplate._1.SearchTemplatePortType>

A JAX-WS client to the PCEHR 'Search Template' web service.


Constructor Summary
SearchTemplateClient(javax.net.ssl.SSLSocketFactory sslSocketFactory, java.security.cert.X509Certificate x509Certificate, au.gov.nehta.xsp.CertificateValidator certificateValidator, java.security.PrivateKey privateKey, java.lang.String endpointAddress, boolean setLoggingEnabled)
          Constructor - accepts an optional certificate verifier.
SearchTemplateClient(javax.net.ssl.SSLSocketFactory sslSocketFactory, java.security.cert.X509Certificate x509Certificate, java.security.PrivateKey privateKey, java.lang.String endpointAddress, boolean setLoggingEnabled)
          Default constructor.
 
Method Summary
 au.net.electronichealth.ns.tplt.xsd.interfaces.searchtemplate._1.SearchTemplateResponse searchTemplate(au.net.electronichealth.ns.pcehr.xsd.common.commoncoreelements._1.PCEHRHeader commonHeader, java.lang.String templateId, au.net.electronichealth.ns.tplt.xsd.common.templatescoreelements._1.TemplateMetadataType templateMetadata)
          Get the consolidated view of a PCEHR.
 
Methods inherited from class au.gov.nehta.vendorlibrary.pcehr.clients.common.Client
getHandlerChain, getLastSoapRequest, getLastSoapResponse, getPort, setMTOMEnabled, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchTemplateClient

public SearchTemplateClient(javax.net.ssl.SSLSocketFactory sslSocketFactory,
                            java.security.cert.X509Certificate x509Certificate,
                            java.security.PrivateKey privateKey,
                            java.lang.String endpointAddress,
                            boolean setLoggingEnabled)
Default constructor.

Parameters:
sslSocketFactory - the SSLSocketFactory to be used when connecting to the web service provider (mandatory).
x509Certificate - the certificate key to be used for signing (mandatory)
privateKey - the private key to be used for signing (mandatory)
endpointAddress - the endpoint address of the web service (mandatory).
setLoggingEnabled - set to true to enable logging (mandatory).

SearchTemplateClient

public SearchTemplateClient(javax.net.ssl.SSLSocketFactory sslSocketFactory,
                            java.security.cert.X509Certificate x509Certificate,
                            au.gov.nehta.xsp.CertificateValidator certificateValidator,
                            java.security.PrivateKey privateKey,
                            java.lang.String endpointAddress,
                            boolean setLoggingEnabled)
Constructor - accepts an optional certificate verifier.

Parameters:
sslSocketFactory - the SSLSocketFactory to be used when connecting to the web service provider (mandatory).
x509Certificate - the certificate key to be used for signing (mandatory)
certificateVerifier - CertificateVerifier implementation (optional).
privateKey - the private key to be used for signing (mandatory)
endpointAddress - the endpoint address of the web service (mandatory).
setLoggingEnabled - set to true to enable logging (mandatory).
Method Detail

searchTemplate

public au.net.electronichealth.ns.tplt.xsd.interfaces.searchtemplate._1.SearchTemplateResponse searchTemplate(au.net.electronichealth.ns.pcehr.xsd.common.commoncoreelements._1.PCEHRHeader commonHeader,
                                                                                                              java.lang.String templateId,
                                                                                                              au.net.electronichealth.ns.tplt.xsd.common.templatescoreelements._1.TemplateMetadataType templateMetadata)
                                                                                                       throws au.net.electronichealth.ns.tplt.svc.searchtemplate._1.StandardErrorMsg
Get the consolidated view of a PCEHR.

Parameters:
commonHeader - PCEHR common header
templateId - Optional unique template identifier. Allows retrieval of template metadata without needing to retrieve entire package.
templateMetadata - Optional metadata input for searching.
Returns:
A list of templates that match the search criteria.
Throws:
au.net.electronichealth.ns.tplt.svc.searchtemplate._1.StandardErrorMsg - thrown in the event of an operation invocation error.