au.gov.nehta.vendorlibrary.hi.client
Class ClientBase<T>

java.lang.Object
  extended by au.gov.nehta.vendorlibrary.hi.client.ClientBase<T>
Direct Known Subclasses:
BaseClient_3, BaseClient_30

public abstract class ClientBase<T>
extends java.lang.Object


Field Summary
protected static java.lang.String EMPTY
          Empty String variable.
protected  au.gov.nehta.vendorlibrary.ws.handler.LoggingHandler loggingHandler
          The Logging handler instance for logging SOAP request and Response messages.
protected  T port
          The Metro/XML Webservice binding port for webservice operations
protected  java.security.cert.X509Certificate signingCertificate
          The Certificate to be used for Signing
protected  java.security.PrivateKey signingPrivateKey
          The Private Key to be used for Signing
protected static java.lang.String SSL_SOCKET_FACTORY
          SSL socket factory class name Also added for non "internal" clients where the Metro libraries are supplied on the classpath
protected static java.lang.String SSL_SOCKET_FACTORY_INTERNAL
          SSL socket factory class name
protected  javax.net.ssl.SSLSocketFactory sslSocketFactory
          The SSL Socket Factory to be used for connecting to the Web Service provider
 
Constructor Summary
ClientBase()
           
 
Method Summary
protected  void configureEndpoint(java.lang.Object servicePort, java.lang.String endpoint)
          Configure the endpoint using the provided configuration information.
 javax.xml.ws.BindingProvider getBindingProvider()
          Convenience method Return access to the underlying webservice client as a binding provider
 java.lang.String getLastSoapRequest()
          Getter for lastSoapRequest.
 java.lang.String getLastSoapResponse()
          Getter for lastSoapResponse.
 T getPort()
          Return access to the underlying webservice client object
protected abstract  boolean hasNoOrganisationQualifiedId()
           
protected static boolean isEmpty(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

port

protected T port
The Metro/XML Webservice binding port for webservice operations


sslSocketFactory

protected javax.net.ssl.SSLSocketFactory sslSocketFactory
The SSL Socket Factory to be used for connecting to the Web Service provider


signingPrivateKey

protected java.security.PrivateKey signingPrivateKey
The Private Key to be used for Signing


signingCertificate

protected java.security.cert.X509Certificate signingCertificate
The Certificate to be used for Signing


SSL_SOCKET_FACTORY_INTERNAL

protected static final java.lang.String SSL_SOCKET_FACTORY_INTERNAL
SSL socket factory class name

See Also:
Constant Field Values

SSL_SOCKET_FACTORY

protected static final java.lang.String SSL_SOCKET_FACTORY
SSL socket factory class name Also added for non "internal" clients where the Metro libraries are supplied on the classpath

See Also:
Constant Field Values

EMPTY

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

See Also:
Constant Field Values

loggingHandler

protected au.gov.nehta.vendorlibrary.ws.handler.LoggingHandler loggingHandler
The Logging handler instance for logging SOAP request and Response messages.

Constructor Detail

ClientBase

public ClientBase()
Method Detail

configureEndpoint

protected void configureEndpoint(java.lang.Object servicePort,
                                 java.lang.String endpoint)
Configure the endpoint using the provided configuration information.

Parameters:
servicePort - the service definition. (Mandatory)
endpoint - the URL for the Web service endpoint. (Mandatory)

hasNoOrganisationQualifiedId

protected abstract boolean hasNoOrganisationQualifiedId()
Returns:
if subclass has a null organisation qualified id

getPort

public T getPort()
Return access to the underlying webservice client object

Returns:

getBindingProvider

public javax.xml.ws.BindingProvider getBindingProvider()
Convenience method Return access to the underlying webservice client as a binding provider


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)

isEmpty

protected static final boolean isEmpty(java.lang.String s)