rtspstack
Class RtspRequest

Direct Known Subclasses:
RtspAnnounceMsg, RtspDescribeMsg, RtspOptionsMsg, RtspPauseMsg, RtspPlayMsg, RtspRecordMsg, RtspSetParameterMsg, RtspSetupMsg, RtspTeardownMsg

class RtspRequest
derived from RtspMsg


Constructor Summary
RtspRequest()
           
RtspRequest(const RtspRequest & src)
           

Destructor Summary
 virtual ~RtspRequest()
           

Method Summary
 const Data &getAccept()
          It parse Accept header and return a copy of the data The same comment as getContentType()
 const u_int32_tgetBlocksize()
          It parse Blocksize header and assign myBlocksize
 const const Data &getFilePath()
           
 const const Data &getHost()
          if trying to get myHost or myFilePath without calling getMethod() first, may get empty string
 virtual const u_int32_tgetMethod()
          It triggers the parsing of startline assign myMethod, myHost, and myFilePath
 boolisSessionRequest()
           
 RtspRequest &operator=(const RtspRequest & src)
           

Methods inherited from class rtspstack.RtspMsg
encode, getCompletionFlag, getContentBase, getContentLength, getContentType, getCSeq, getFirstWordUnknown, getHeaders, getMsgBody, getRange, getSessionId, getStartLine, getTransConnPtr, getTransport, hasBody, isRequest, isResponse, isValid, operator=, setCompletionFlag, setFirstWordUnknown, setHasBody, setHeaders, setHeadersMap, setMsgBody, setNumHeader, setStartLine, setTransConnPtr

Constructor Detail

RtspRequest

public RtspRequest()

RtspRequest

public RtspRequest(const RtspRequest & src)
Method Detail

~RtspRequest

public virtual ~RtspRequest()
Method Detail

getAccept

public const Data & getAccept()
It parse Accept header and return a copy of the data The same comment as getContentType()

getBlocksize

public const u_int32_t getBlocksize()
It parse Blocksize header and assign myBlocksize

getFilePath

public const const Data & getFilePath()

getHost

public const const Data & getHost()
if trying to get myHost or myFilePath without calling getMethod() first, may get empty string

getMethod

public virtual const u_int32_t getMethod()
It triggers the parsing of startline assign myMethod, myHost, and myFilePath

isSessionRequest

public bool isSessionRequest()

operator=

public RtspRequest & operator=(const RtspRequest & src)