|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.flow.webservice.AbstractWebServiceClientSource<O>
O - the type of output data to handlepublic abstract class AbstractWebServiceClientSource<O>
Ancestor for webservice clients.
| Field Summary | |
|---|---|
protected int |
m_ConnectionTimeout
the connection timeout. |
protected AbstractActor |
m_Owner
the owner. |
protected int |
m_ReceiveTimeout
the receive timeout. |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
AbstractWebServiceClientSource()
|
|
| Method Summary | |
|---|---|
void |
cleanUp()
Cleans up the client. |
String |
connectionTimeoutTipText()
Returns the tip text for this property. |
void |
defineOptions()
Adds options to the internal list of options. |
protected abstract void |
doQuery()
Performs the actual webservice query. |
int |
getConnectionTimeout()
Returns the timeout for the connection. |
AbstractActor |
getOwner()
Returns the owning actor. |
int |
getReceiveTimeout()
Returns the timeout for receiving. |
protected abstract URL |
getWsdlLocation()
Returns the WSDL location. |
protected void |
postQuery()
Hook method after querying the webservice. |
protected void |
preQuery()
Hook method before querying the webservice. |
void |
query()
Queries the webservice. |
String |
receiveTimeoutTipText()
Returns the tip text for this property. |
void |
setConnectionTimeout(int value)
Sets the timeout for connection. |
void |
setOwner(AbstractActor value)
Sets the actor that executes this webservice. |
void |
setReceiveTimeout(int value)
Sets the timeout for receiving. |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, globalInfo, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface adams.flow.webservice.WebServiceClientProducer |
|---|
generates, getResponseData, hasResponseData |
| Methods inherited from interface adams.core.option.OptionHandler |
|---|
cleanUpOptions, getOptionManager |
| Methods inherited from interface adams.core.Destroyable |
|---|
destroy |
| Field Detail |
|---|
protected AbstractActor m_Owner
protected int m_ConnectionTimeout
protected int m_ReceiveTimeout
| Constructor Detail |
|---|
public AbstractWebServiceClientSource()
| Method Detail |
|---|
public void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractOptionHandlerpublic void setConnectionTimeout(int value)
setConnectionTimeout in interface WebServiceClientvalue - the timeout in msec, 0 is infinitepublic int getConnectionTimeout()
getConnectionTimeout in interface WebServiceClientpublic String connectionTimeoutTipText()
public void setReceiveTimeout(int value)
setReceiveTimeout in interface WebServiceClientvalue - the timeout in msec, 0 is infinitepublic int getReceiveTimeout()
getReceiveTimeout in interface WebServiceClientpublic String receiveTimeoutTipText()
public void setOwner(AbstractActor value)
setOwner in interface WebServiceClientvalue - the ownerpublic AbstractActor getOwner()
getOwner in interface WebServiceClientprotected abstract URL getWsdlLocation()
protected void preQuery()
throws Exception
Exception - if it fails for some reason
protected abstract void doQuery()
throws Exception
Exception - if accessing webservice fails for some reason
protected void postQuery()
throws Exception
Exception - if it fails for some reason
public void query()
throws Exception
query in interface WebServiceClientException - if accessing webservice fails for some reasonpublic void cleanUp()
cleanUp in interface CleanUpHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||