public interface HttpSrvcConn extends SrvcConn
This is the base interface for services that can be invoked by servlets (through ServletSrvcShell) or by a stand alone EventWeb server (through ShellClientThread).
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
IF_VERSION
Interface version
|
| Modifier and Type | Method and Description |
|---|---|
int |
performSrvc(SrvcInfo sInfo,
java.io.OutputStream outStrm)
Perform the service.
|
int |
prepareSrvc(SrvcInfo sInfo)
Get information required to complete HTTP connection.
|
void |
quiesce()
Stop accepting new requests and release resources.
|
int prepareSrvc(SrvcInfo sInfo)
sInfo - Service information.
This is passed in with initial information from the client
request. Data required to complete the client connection is
added. This parameter also provides coupling between the
prepareSrvc method and the performSrvc method.int performSrvc(SrvcInfo sInfo, java.io.OutputStream outStrm)
sInfo - Service information.
This carries information from the initial client request
and from the prepareSrvc method, and contains data needed
to service the client.outStrm - OutputStream to the client. (Used by non-channel
services to send binary data to the client.)void quiesce()