public class ByteFileHttpSrvc extends java.lang.Object implements HttpSrvcConn, eventweb.servutil.RegInit, Debuggable
This service serves files as byte streams.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
DEP_LIST
Class dependencies
|
protected eventweb.servutil.SrvcRegistry |
registry |
static java.lang.String[] |
rsrcList
Supported resource requests
|
static java.lang.String |
VERSION
Class version
|
IF_VERSIONIF_VERSION| Constructor and Description |
|---|
ByteFileHttpSrvc()
Create a new (uninitialized) ByteFileHttpSrvc instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
init(eventweb.servutil.SrvcRegistry registry,
TvList srvcParams)
Initialize the service.
|
boolean |
isDebugging()
Get debug state.
|
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)
Set or clear debugging
|
public static final java.lang.String VERSION
public static final java.lang.String[] DEP_LIST
public static final java.lang.String[] rsrcList
protected eventweb.servutil.SrvcRegistry registry
public ByteFileHttpSrvc()
public void setDebugging(boolean debug)
DebuggablesetDebugging in interface Debuggabledebug - If true, debugging is turned on,
otherwise, debugging is turned off.public boolean isDebugging()
DebuggableisDebugging in interface Debuggablepublic void init(eventweb.servutil.SrvcRegistry registry,
TvList srvcParams)
init in interface eventweb.servutil.RegInitregistry - The service registrysrvcParams - Initialization parameterspublic int prepareSrvc(SrvcInfo sInfo)
prepareSrvc in interface HttpSrvcConnsInfo - Service request informationpublic int performSrvc(SrvcInfo sInfo, java.io.OutputStream outStrm)
performSrvc in interface HttpSrvcConnsInfo - Service request informationoutStrm - OutputStream to clientpublic void quiesce()
quiesce in interface HttpSrvcConn