public class GenericCpSrvcConn extends AbstractEvwSrvcConn implements HttpSrvcConn, ProviderHost, eventweb.servutil.SelfDescribing
This implements an EventWeb service that can support a context provider specified at runtime.
| Modifier and Type | Field and Description |
|---|---|
int |
activityTmo
Suggested activity timeout for the service
|
static java.lang.String[] |
DEP_LIST
Class dependencies
|
int |
maxMsgSize
Maximum expected message size (send or receive)
|
java.util.List<java.lang.Integer> |
supportedMedia |
java.util.Set<java.lang.String> |
tagList |
static java.lang.String |
VERSION
Class version
|
instanceNumber, srvcName, TAG_DISCONNECT, TAG_RQST_CTRL, TAG_RQST_RSRC, TAG_SRVC_INFO, TAG_TIMESTAMP, VALUE_CONNECTIF_VERSIONIF_VERSIONIF_VERSIONIF_VERSIONIF_VERSION| Constructor and Description |
|---|
GenericCpSrvcConn() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addProv(java.lang.Class<? extends RsrcProv> pClass,
TvList pParams)
Add a resource provider.
|
int |
getMaxMsgSize()
Get the maximum message size expected by the service.
|
java.util.List<java.lang.Integer> |
getSupportedMedia()
Get the MIME types supported by the service.
|
java.util.Set<java.lang.String> |
getSupportedTags()
Get the tags supported by the service.
|
java.util.Set<java.lang.String> |
getSupportedValues(java.lang.String tag)
Get the values that are valid for a tag.
|
protected void |
handleDisconnect(TvOutput client) |
void |
init(eventweb.servutil.SrvcRegistry registry,
TvList params)
Initialize the service.
|
protected void |
newClient(SrvrChan chan,
TvList rqst) |
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
|
protected void |
setRsrcSet(eventweb.servutil.SelfDescribing srvcProv) |
int |
suggestActivityTimeout()
Suggest an activity timeout for the service.
|
createChannel, processCtrlRqst, startChannelisDebugging, isTracingIo, setDebugging, setTracingIoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisTracingIo, setTracingIopublic static final java.lang.String VERSION
public static final java.lang.String[] DEP_LIST
public java.util.Set<java.lang.String> tagList
public java.util.List<java.lang.Integer> supportedMedia
public int maxMsgSize
public int activityTmo
public void init(eventweb.servutil.SrvcRegistry registry,
TvList params)
init in interface eventweb.servutil.RegInitinit in class eventweb.servutil.EvwSrvcBaseregistry - The service registryparams - Initialization parameterspublic boolean addProv(java.lang.Class<? extends RsrcProv> pClass, TvList pParams)
addProv in interface ProviderHostpClass - The class of the provider to addpParams - Parameters for provider init methodpublic java.util.Set<java.lang.String> getSupportedTags()
getSupportedTags in interface eventweb.servutil.SelfDescribingpublic java.util.Set<java.lang.String> getSupportedValues(java.lang.String tag)
getSupportedValues in interface eventweb.servutil.SelfDescribingtag - The tag to get values for.public java.util.List<java.lang.Integer> getSupportedMedia()
getSupportedMedia in interface eventweb.servutil.SelfDescribingMimeTypepublic int getMaxMsgSize()
getMaxMsgSize in interface eventweb.servutil.SelfDescribingpublic int suggestActivityTimeout()
suggestActivityTimeout in interface eventweb.servutil.SelfDescribingpublic 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 HttpSrvcConnquiesce in class AbstractEvwSrvcConnprotected void handleDisconnect(TvOutput client)
protected void setRsrcSet(eventweb.servutil.SelfDescribing srvcProv)