public class SimpleBcTestSrvc extends java.lang.Object implements HttpSrvcConn
A simple EventWeb service for verifying Backchannel operation.
In addition to it's test function, this service was created as a somewhat simplified example of EventWeb coding. A lot of items that would normally be in separate classes are all bundled together. Big and ugly, but hopefully easier to follow if you want to see how the service works.
Note:
This service will run in a new architecture or legacy environment,
but it uses the legacy architecture organization.
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
DEP_LIST
Class dependencies
|
static java.lang.String |
VERSION
Class version
|
IF_VERSION
Constructor and Description |
---|
SimpleBcTestSrvc()
Create a new SimpleBcTestSrvc instance
|
Modifier and Type | Method and Description |
---|---|
int |
performSrvc(SrvcInfo sInfo,
java.io.OutputStream outStrm)
Perform the requested service.
|
int |
prepareSrvc(SrvcInfo sInfo)
Validate request and prepare service to run.
|
void |
quiesce()
Stop accepting new requests and release resources
|
void |
setDebugging(boolean debug)
Turn debugging on or off.
|
public static final java.lang.String VERSION
public static final java.lang.String[] DEP_LIST
public SimpleBcTestSrvc()
public void setDebugging(boolean debug)
debug
- If true, debugging is turned on.
If false, debugging is turned offpublic int prepareSrvc(SrvcInfo sInfo)
prepareSrvc
in interface HttpSrvcConn
sInfo
- Service request informationpublic int performSrvc(SrvcInfo sInfo, java.io.OutputStream outStrm)
performSrvc
in interface HttpSrvcConn
sInfo
- Service request informationoutStrm
- OutputStream underlying outWrtrpublic void quiesce()
quiesce
in interface HttpSrvcConn