public class SrvcInfo extends HttpRqstInfo
This class extends HttpRqstInfo to include additional methods and information required when providing HTTP services.
Modifier and Type | Field and Description |
---|---|
SrvrChan |
bkchnl
The backchannel object
|
protected int |
commMode
Communications mode
|
java.lang.String |
commModeName
Communications mode name
|
SesnKey |
connectKey
Session key
|
TvList |
custRespHdrs
Additional service specific headers for the HTTP response
|
static java.lang.String[] |
DEP_LIST
Class dependencies
|
java.io.BufferedReader |
fcFromClient
Frontchannel client reader
|
java.io.PrintWriter |
fcToClient
Frontchannel client writer
|
int |
respMediaId
MIME type id of the resource that will be returned
|
long |
rsrcLen
The length of the resource that will be returned
|
java.lang.Object |
srvcCtxt
Service context.
|
protected static java.lang.String |
TAG_RQST_RSRC |
static java.lang.String |
VERSION
Class version
|
acceptTokens, chunkedXfer, contentLength, errorCode, log, reqMethod, reqProtocol, reqProtocolVer, reqUrl
Constructor and Description |
---|
SrvcInfo(java.io.BufferedReader fcFromClient,
java.io.PrintWriter fcToClient)
Create a new SrvcInfo object
and initialize it with the first line from the HTTP request.
|
Modifier and Type | Method and Description |
---|---|
static int |
chooseRespMedia(HttpRqstInfo sInfo,
java.util.List<java.lang.Integer> supportedMedia)
Choose media type for response to HTTP request.
|
int |
getCommMode()
Get channel communications mode.
|
TvList |
getRequest(java.util.Set<java.lang.String> rsrcSet)
Get the request parameters from the request URL.
|
protected int |
parseHdrTokens(java.util.ArrayList<java.lang.String> hdrTokens)
Add information from a tokenized HTTP request header line.
|
static boolean |
rsrcMatches(java.lang.String rsrc,
java.util.Set<java.lang.String> rsrcSet)
Determine if a resource has a match in a resource set.
|
void |
setCommMode(java.lang.String modeName)
Set channel communications mode.
|
addFirstLine, addHdrLine, dumpUrlInfo, getFileBase, getFileExt, parseAccept, parseContentLength, parseHdrLine, parseRqstLine, parseUrlPath, setUrlFile
public static final java.lang.String VERSION
public static final java.lang.String[] DEP_LIST
public int respMediaId
public TvList custRespHdrs
public long rsrcLen
public java.lang.Object srvcCtxt
public SesnKey connectKey
public java.lang.String commModeName
public SrvrChan bkchnl
public java.io.BufferedReader fcFromClient
public java.io.PrintWriter fcToClient
protected int commMode
protected static final java.lang.String TAG_RQST_RSRC
public SrvcInfo(java.io.BufferedReader fcFromClient, java.io.PrintWriter fcToClient)
fcFromClient
- Frontchannel client reader.public static boolean rsrcMatches(java.lang.String rsrc, java.util.Set<java.lang.String> rsrcSet)
rsrc
- The resourcersrcSet
- Set of valid resource stringspublic static int chooseRespMedia(HttpRqstInfo sInfo, java.util.List<java.lang.Integer> supportedMedia)
sInfo
- Information on requested servicesupportedMedia
- List of supported media typespublic int getCommMode()
ChanCode
public void setCommMode(java.lang.String modeName)
modeName
- Communications mode nameChanCode
public TvList getRequest(java.util.Set<java.lang.String> rsrcSet)
rsrcSet
- Set of valid resource stringsprotected int parseHdrTokens(java.util.ArrayList<java.lang.String> hdrTokens)
parseHdrTokens
in class HttpRqstInfo
hdrTokens
- The tokenized header line