|
||||||||||
| 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.AbstractWebServiceProvider
public abstract class AbstractWebServiceProvider
Ancestor for servers providing webservices.
| Field Summary | |
|---|---|
protected AbstractActor |
m_Owner
the owning actor. |
protected String |
m_URL
the URL of the webservice. |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
AbstractWebServiceProvider()
|
|
| Method Summary | |
|---|---|
protected void |
check()
Performs some initial checks before starting the service. |
void |
defineOptions()
Adds options to the internal list of options. |
protected abstract void |
doStart()
Performs the actual start of the service. |
protected abstract void |
doStop()
Performs the actual stop of the service. |
abstract String |
getDefaultURL()
Returns the default URL for the service. |
AbstractActor |
getOwner()
Returns the owning actor. |
String |
getURL()
Returns the URL used for the service. |
void |
log(String msg,
String id)
Logs an error message if a valid global log actor has been set up. |
void |
setOwner(AbstractActor value)
Sets the actor that executes this webservice. |
void |
setURL(String value)
Sets the URL to use. |
String |
start()
Starts the server. |
String |
stop()
Stops the server. |
String |
URLTipText()
Returns the tip text for this property. |
| 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 |
| Field Detail |
|---|
protected AbstractActor m_Owner
protected String m_URL
| Constructor Detail |
|---|
public AbstractWebServiceProvider()
| Method Detail |
|---|
public void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractOptionHandlerpublic void setOwner(AbstractActor value)
setOwner in interface WebServiceProvidervalue - the ownerpublic AbstractActor getOwner()
getOwner in interface WebServiceProviderpublic abstract String getDefaultURL()
public void setURL(String value)
value - the URL to usepublic String getURL()
getURL in interface WebServiceProviderpublic String URLTipText()
protected void check()
public void log(String msg,
String id)
msg - the message to logid - an optional ID of the data token that failed in the web service
protected abstract void doStart()
throws Exception
Exception - if start failspublic String start()
start in interface WebServiceProvider
protected abstract void doStop()
throws Exception
Exception - if stopping failspublic String stop()
stop in interface WebServiceProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||