public abstract class BaseHPCCWsClient extends DataSingleton
| Modifier and Type | Field and Description |
|---|---|
static String |
DEAFULTECLWATCHPORT |
static String |
DEFAULTECLWATCHTLSPORT |
static String |
DEFAULTSERVICEPORT |
protected String |
initErrMessage |
protected static org.apache.logging.log4j.Logger |
log |
protected org.apache.axis2.client.Stub |
stub |
protected Double |
targetESPInterfaceVer |
protected Version |
targetHPCCBuildVersion |
protected boolean |
verbose |
protected Connection |
wsconn |
| Constructor and Description |
|---|
BaseHPCCWsClient() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
compatibilityCheck(int major,
int minor,
int point)
Determine if target HPCC's build version is compatible with a given version.
|
protected boolean |
compatibilityCheck(Version input)
Determine if target HPCC's build version is compatible with a given version.
|
boolean |
equals(Object aThat) |
protected void |
fastRefresh() |
protected void |
fullRefresh() |
URL |
getConnectionURL()
Gets the connection URL.
|
abstract org.apache.axis2.client.Stub |
getDefaultStub()
Gets the default stub.
|
String |
getInitError()
Returns error message encountered during initialization of wsdfuclient.
|
abstract String |
getServiceURI()
All implementations must provide the target web service URI
|
static String |
getServiceVersion(BaseHPCCWsClient client)
Gets the service version.
|
static String |
getServiceVersion(org.apache.axis2.client.Stub stub)
Gets the service version.
|
static int |
getServiceWSDLPort(org.apache.axis2.client.Stub stub)
Gets the service WSDL port.
|
static String |
getServiceWSDLURL(org.apache.axis2.client.Stub stub)
Gets the service WSDLURL.
|
protected Integer |
getStubConnectionTO()
Gets the stub connection TO.
|
double |
getTargetESPInterfaceVersion()
Provides the target ESP Interface version
|
boolean |
getVerbose()
Gets the verbose.
|
protected void |
handleECLExceptions(ArrayOfECLExceptionWrapper eclexceptions)
Logs and throws arrayofeclexceptionwrapper without localized message response from WS client.
|
protected void |
handleECLExceptions(ArrayOfECLExceptionWrapper eclExceptions,
String message)
Logs and throws arrayofeclexceptionwrapper with localized message response from WS client.
|
protected void |
handleEspExceptions(ArrayOfEspExceptionWrapper exp)
Handle esp exceptions.
|
protected void |
handleEspExceptions(ArrayOfEspExceptionWrapper exp,
String message)
Handle esp exceptions.
|
protected void |
handleEspSoapFaults(EspSoapFaultWrapper e)
Logs and throws EspSoapFaultWrapper.
|
protected void |
handleEspSoapFaults(EspSoapFaultWrapper e,
String message)
Logs and throws EspSoapFaultWrapper, if local message provided, added as wsclientmessage.
|
int |
hashCode() |
boolean |
hasInitError()
Should be called after instantiation to confirm
Successful initialization.
|
protected boolean |
isComplete() |
protected void |
loadESPRuntimeInterfaceVer()
Attempts to retrieve the default WSDL version of the target runtime ESP service
Appends the target ESP service path and the "version_" literal to the connection's base URL
|
protected void |
setActiveConnectionInfo(Connection conn)
Stores active connection information for post-initialization use
|
static org.apache.axis2.client.Options |
setClientAuth(String user,
String pass,
org.apache.axis2.client.Options opt)
Sets the client auth.
|
protected void |
setStubConnectionTO(int millis)
Sets the stub connection TO.
|
static org.apache.axis2.client.Stub |
setStubOptions(org.apache.axis2.client.Stub thestub,
Connection connection)
Sets the stub options.
|
void |
setVerbose(boolean verbose)
Sets the verbose.
|
protected org.apache.axis2.client.Stub |
verifyStub()
Provides Stub object if available, otherwise throws
Object can be used to access the web service methods directly.
|
monitoraddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedprotected static final org.apache.logging.log4j.Logger log
public static final String DEAFULTECLWATCHPORT
public static final String DEFAULTECLWATCHTLSPORT
public static String DEFAULTSERVICEPORT
protected Connection wsconn
protected boolean verbose
protected String initErrMessage
protected Version targetHPCCBuildVersion
protected Double targetESPInterfaceVer
protected org.apache.axis2.client.Stub stub
public abstract org.apache.axis2.client.Stub getDefaultStub()
throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault - the axis faultpublic static String getServiceVersion(BaseHPCCWsClient client)
client - the clientpublic static String getServiceVersion(org.apache.axis2.client.Stub stub)
stub - the stubpublic static String getServiceWSDLURL(org.apache.axis2.client.Stub stub)
stub - the stubpublic static int getServiceWSDLPort(org.apache.axis2.client.Stub stub)
throws MalformedURLException
stub - the stubMalformedURLException - the malformed URL exceptionpublic URL getConnectionURL() throws Exception
Exception - the exceptionpublic void setVerbose(boolean verbose)
verbose - - sets verbose modepublic boolean getVerbose()
public boolean hasInitError()
public String getInitError()
protected org.apache.axis2.client.Stub verifyStub()
throws Exception
Exception - the exceptionpublic boolean equals(Object aThat)
equals in class DataSingletonpublic int hashCode()
hashCode in class DataSingletonprotected boolean isComplete()
isComplete in class DataSingletonprotected void fastRefresh()
fastRefresh in class DataSingletonprotected void fullRefresh()
fullRefresh in class DataSingletonprotected void setStubConnectionTO(int millis)
throws org.apache.axis2.AxisFault
millis - the new stub connection TOorg.apache.axis2.AxisFault - the axis faultprotected Integer getStubConnectionTO() throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault - the axis faultpublic static org.apache.axis2.client.Stub setStubOptions(org.apache.axis2.client.Stub thestub,
Connection connection)
throws org.apache.axis2.AxisFault
thestub - the thestubconnection - the connectionorg.apache.axis2.AxisFault - the axis faultpublic static org.apache.axis2.client.Options setClientAuth(String user, String pass, org.apache.axis2.client.Options opt)
user - the userpass - the passopt - the optprotected void handleEspSoapFaults(EspSoapFaultWrapper e) throws EspSoapFaultWrapper
e - the eEspSoapFaultWrapper - the esp soap fault wrapperprotected void handleEspSoapFaults(EspSoapFaultWrapper e, String message) throws EspSoapFaultWrapper
e - the emessage - the messageEspSoapFaultWrapper - the esp soap fault wrapperprotected void handleEspExceptions(ArrayOfEspExceptionWrapper exp, String message) throws ArrayOfEspExceptionWrapper
exp - the expmessage - the messageArrayOfEspExceptionWrapper - the array of esp exception wrapperprotected void handleEspExceptions(ArrayOfEspExceptionWrapper exp) throws ArrayOfEspExceptionWrapper
exp - the expArrayOfEspExceptionWrapper - the array of esp exception wrapperprotected void handleECLExceptions(ArrayOfECLExceptionWrapper eclexceptions) throws Exception, ArrayOfECLExceptionWrapper
eclexceptions - the eclexceptionsException - the exceptionArrayOfECLExceptionWrapper - the array of ECL exception wrapperprotected void handleECLExceptions(ArrayOfECLExceptionWrapper eclExceptions, String message) throws Exception, ArrayOfECLExceptionWrapper
eclExceptions - - the array of ECLException objects to throwmessage - - the prefix messageException - the exceptionArrayOfECLExceptionWrapper - the array of ECL exception wrapperpublic double getTargetESPInterfaceVersion()
protected void setActiveConnectionInfo(Connection conn)
conn - public abstract String getServiceURI()
protected void loadESPRuntimeInterfaceVer()
wsName - - Target ESP service URI/pathExceptionprotected boolean compatibilityCheck(int major,
int minor,
int point)
major - minor - point - protected boolean compatibilityCheck(Version input)
input - the inputCopyright © 2021. All rights reserved.