The %CSP.StreamServer serves any stream data directly from Cache'.
It derives from %CSP.Page and implements the
You can control how the stream is sent using the stream's attributes, these attributes can be accessed via properties in the
- ContentType - Sets the %response.ContentType property
- CharSet - Sets the %response.CharSet property
- Expires - Sets the %response.Expires property
- ContentDisposition - Set the 'Content-Disposition' response header
- bin - 1 if this is binary and 0 if this is a character file
- charset - For character files the charset to report in the charset header
Classify a file type
Convert an HTTP date to a $HOROLOG format date, converts from GMT time to the local time.
Get oid for file
OnPage()is called by the CSP dispatcher to generate the page content. For %CSP.StreamServer, since the content type is actually a stream, not HTML we simply write out the stream data.
OnPostHTTP()is called by the CSP dispatcher before the HTTP headers have been sent. Here, we check that the incoming STREAMOID value is valid, then we set the appropriate content type and content length values into the %response object (see %CSP.Request), in preparation for sending the image data in the OnPage().
Convert a $H value into an HTTP date format. It assumes that $H is local time and converts it to GMT