|
||||||||||
| 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.core.AbstractActor
adams.flow.standalone.AbstractStandalone
adams.flow.standalone.WSServer
public class WSServer
Runs a webservice.
Valid options are:-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-name <java.lang.String> (property: name) The name of the actor. default: WSServer
-annotation <adams.core.base.BaseText> (property: annotations) The annotations to attach to this actor. default:
-skip (property: skip) If set to true, transformation is skipped and the input token is just forwarded as it is.
-stop-flow-on-error (property: stopFlowOnError) If set to true, the flow gets stopped in case this actor encounters an error; useful for critical actors.
-web-service <adams.flow.webservice.WebServiceProvider> (property: webService) The webservice to provide. default: com.example.customerservice.flow.CustomerServiceWS
-log <adams.flow.core.GlobalActorReference> (property: log) The name of the global log actor to use (logging disabled if actor not found ). default: unknown
| Field Summary | |
|---|---|
protected GlobalActorHelper |
m_Helper
the helper class. |
protected GlobalActorReference |
m_Log
the global name. |
protected AbstractActor |
m_LogActor
the global log actor. |
protected WebServiceProvider |
m_WebService
the webservice to run. |
| Fields inherited from class adams.flow.core.AbstractActor |
|---|
FILE_EXTENSION, FILE_EXTENSION_GZ, m_Annotations, m_BackupState, m_DetectedObjectVariables, m_DetectedVariables, m_ErrorHandler, m_Executed, m_FullName, m_Headless, m_Name, m_Parent, m_Root, m_Self, m_Skip, m_StopFlowOnError, m_StopMessage, m_Stopped, m_StorageHandler, m_VariablesUpdated |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
WSServer()
|
|
| Method Summary | |
|---|---|
void |
cleanUp()
Cleans up after the execution has finished. |
void |
defineOptions()
Adds options to the internal list of options. |
protected String |
doExecute()
Executes the flow item. |
protected AbstractActor |
findGlobalActor()
Tries to find the global actor referenced by its global name. |
AbstractActor |
getGlobalActor()
Returns the currently set global actor. |
GlobalActorReference |
getLog()
Returns the name of the global log actor in use. |
String |
getQuickInfo()
Returns a quick info about the actor, which will be displayed in the GUI. |
WebServiceProvider |
getWebService()
Returns the webservice in use. |
String |
globalInfo()
Returns a string describing the object. |
boolean |
hasGlobalActor()
Checks whether a reference to the global actor is currently available. |
protected void |
initialize()
Initializes the members. |
void |
log(String msg,
String id)
Logs an error message if a valid global log actor has been set up. |
String |
logTipText()
Returns the tip text for this property. |
void |
setLog(GlobalActorReference value)
Sets the name of the global log actor to use. |
String |
setUp()
Initializes the item for flow execution. |
void |
setWebService(WebServiceProvider value)
Sets the webservice to use. |
String |
webServiceTipText()
Returns the tip text for this property. |
void |
wrapUp()
Cleans up after the execution has finished. |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debugLevelTipText, finishInit, getDebugLevel, getOptionManager, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected WebServiceProvider m_WebService
protected GlobalActorReference m_Log
protected AbstractActor m_LogActor
protected GlobalActorHelper m_Helper
| Constructor Detail |
|---|
public WSServer()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractActorprotected void initialize()
initialize in class AbstractActorpublic void setWebService(WebServiceProvider value)
value - the webservice to usepublic WebServiceProvider getWebService()
public String webServiceTipText()
public void setLog(GlobalActorReference value)
value - the global namepublic GlobalActorReference getLog()
public String logTipText()
public String getQuickInfo()
getQuickInfo in interface QuickInfoSupportergetQuickInfo in class AbstractActorprotected AbstractActor findGlobalActor()
public boolean hasGlobalActor()
getGlobalActor()public AbstractActor getGlobalActor()
public String setUp()
setUp in class AbstractActor
public void log(String msg,
String id)
msg - the message to logid - an optional ID of the data token that failed in the web serviceprotected String doExecute()
doExecute in class AbstractActorpublic void wrapUp()
wrapUp in class AbstractActorpublic void cleanUp()
cleanUp in interface CleanUpHandlercleanUp in class AbstractActor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||