au.gov.nehta.vendorlibrary.pcehr.clients.recordaccess
Class GainPCEHRAccessClient
java.lang.Object
au.gov.nehta.vendorlibrary.pcehr.clients.common.Client<au.net.electronichealth.ns.pcehr.b2b.svc.pcehrprofile._1.PCEHRProfilePortType>
au.gov.nehta.vendorlibrary.pcehr.clients.recordaccess.GainPCEHRAccessClient
public class GainPCEHRAccessClient
- extends Client<au.net.electronichealth.ns.pcehr.b2b.svc.pcehrprofile._1.PCEHRProfilePortType>
A JAX-WS client to the PCEHR 'Gain PCEHR Access' web service.
Constructor Summary |
GainPCEHRAccessClient(javax.net.ssl.SSLSocketFactory sslSocketFactory,
java.security.cert.X509Certificate x509Certificate,
au.gov.nehta.xsp.CertificateVerifier certificateVerifier,
java.security.PrivateKey privateKey,
java.lang.String endpointAddress,
boolean setLoggingEnabled)
Constructor - accepts an optional certificate verifier. |
GainPCEHRAccessClient(javax.net.ssl.SSLSocketFactory sslSocketFactory,
java.security.cert.X509Certificate x509Certificate,
java.security.PrivateKey privateKey,
java.lang.String endpointAddress,
boolean setLoggingEnabled)
Constructor - no certificate verification performed. |
Method Summary |
au.net.electronichealth.ns.pcehr.xsd.interfaces.pcehrprofile._1.GainPCEHRAccessResponse |
gainPCEHRAccess(au.net.electronichealth.ns.pcehr.xsd.interfaces.pcehrprofile._1.GainPCEHRAccess.PCEHRRecord pcehrRecord,
au.net.electronichealth.ns.pcehr.xsd.common.commoncoreelements._1.PCEHRHeader commonHeader)
Invokes the web service operation which confirms whether or not an individual has a shared, accessible electronic health record. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GainPCEHRAccessClient
public GainPCEHRAccessClient(javax.net.ssl.SSLSocketFactory sslSocketFactory,
java.security.cert.X509Certificate x509Certificate,
java.security.PrivateKey privateKey,
java.lang.String endpointAddress,
boolean setLoggingEnabled)
- Constructor - no certificate verification performed.
- 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).
GainPCEHRAccessClient
public GainPCEHRAccessClient(javax.net.ssl.SSLSocketFactory sslSocketFactory,
java.security.cert.X509Certificate x509Certificate,
au.gov.nehta.xsp.CertificateVerifier certificateVerifier,
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).
gainPCEHRAccess
public final au.net.electronichealth.ns.pcehr.xsd.interfaces.pcehrprofile._1.GainPCEHRAccessResponse gainPCEHRAccess(au.net.electronichealth.ns.pcehr.xsd.interfaces.pcehrprofile._1.GainPCEHRAccess.PCEHRRecord pcehrRecord,
au.net.electronichealth.ns.pcehr.xsd.common.commoncoreelements._1.PCEHRHeader commonHeader)
throws au.net.electronichealth.ns.pcehr.b2b.svc.pcehrprofile._1.StandardErrorMsg
- Invokes the web service operation which confirms whether or not an individual has a shared, accessible electronic health record.
- Parameters:
pcehrRecord
- populated GainPCEHRAccess.PCEHRRecord
object encapsulating individual and authorisation detail (Mandatory).commonHeader
- populated PCEHRHeader
request object (Mandatory).
- Returns:
- response (type
GainPCEHRAccessResponse
) containing check results.
- Throws:
au.net.electronichealth.ns.pcehr.b2b.svc.pcehrprofile._1.StandardErrorMsg
- thrown in the event of an operation invocation error.