Namespace: OpenEdge.Web
Class
WebResponseWriter
Parent classes:
Progress.IO.OutputStream

Inherits: Progress.IO.OutputStream

Copyright (c) 2015-2016 by Progress Software Corporation. All rights reserved.
Author(s):mbanks
Created:Mon Feb 02 11:54:49 EST 2015
@since:11.6




Method Summary
Options Name Purpose
Close () /* Closes the web stream */
Flush () /* Flushes the contents to the web stream */
Open () /* Opens the web stream */
INT64 Write (character) /* Writes character data to the web stream @param character The data to write to the web stream @return int64 The number of bytes written */
INT64 Write (longchar) /* Writes character data to the web stream @param longchar The data to write to the web stream @return int64 The number of bytes written */
INT64 Write (memptr, int64, int64) /* Writes some bytes from a memptr to the web stream @param memptr The entire memptr @param int64 The offset (start byte) @param int64 The number of bytes to write from the offset @return int64 The number of bytes written */
WriteBody () /* Dumps a complete response to the output stream. Does not allow for incremental Write() calls. */
WriteCookies () /* Writes all cookies into the web stream */
WriteHeader (character, character) /* Helper method to write message headers into the http message @param character The header name @param character The header value */
WriteHeaders () /* Writes all headers */
WriteHttpPreamble () /* Writes out the HTTP status line & headers */
WriteStatusLine () /* Writes the status line */
WriteToStream (character) /* Writes some character data to the stream @param character Data to write */

Constructor Summary
Options Name Purpose
WebResponseWriter () /* Default Constructor */
WebResponseWriter (IHttpResponse) /* Constructor @param IHttpResponse The response being written */

Property Summary
Options Name Purpose
CHARACTER CRLF
OpenEdge.Net.HTTP.IHttpMessage Message
OpenEdge.Net.HTTP.IHttpResponse Response
HANDLE WebStream


Method Detail
Top

PUBLIC Close ()

/* Closes the web stream
Top

PUBLIC Flush ()

/* Flushes the contents to the web stream
Top

PUBLIC Open ()

/* Opens the web stream
Top

PUBLIC INT64 Write (character)

/* Writes character data to the web stream
Parameters:
pcData CHARACTER
Returns INT64
int64 The number of bytes written
Top

PUBLIC INT64 Write (longchar)

/* Writes character data to the web stream
Parameters:
lcData LONGCHAR
Returns INT64
int64 The number of bytes written
Top

PUBLIC INT64 Write (memptr, int64, int64)

/* Writes some bytes from a memptr to the web stream
Parameters:
pmData MEMPTR
offset INT64
len INT64
Returns INT64
int64 The number of bytes written
Top

PROTECTED WriteBody ()

/* Dumps a complete response to the output stream. Does not allow for
incremental Write() calls.
Top

PROTECTED WriteCookies ()

/* Writes all cookies into the web stream
Top

PRIVATE WriteHeader (character, character)

/* Helper method to write message headers into the http message
Parameters:
pcName CHARACTER
pcValue CHARACTER
Top

PROTECTED WriteHeaders ()

/* Writes all headers
Top

PROTECTED WriteHttpPreamble ()

/* Writes out the HTTP status line & headers
Top

PROTECTED WriteStatusLine ()

/* Writes the status line
Top

PRIVATE WriteToStream (character)

/* Writes some character data to the stream
Parameters:
pcData CHARACTER


Constructor Detail
Top

PUBLIC WebResponseWriter ()

/* Default Constructor
Top

PUBLIC WebResponseWriter (IHttpResponse)

/* Constructor
Parameters:
poResponse OpenEdge.Net.HTTP.IHttpResponse


Property Detail
Top

PRIVATE CHARACTER CRLF

Returns CHARACTER
Top

PUBLIC OpenEdge.Net.HTTP.IHttpMessage Message

Returns OpenEdge.Net.HTTP.IHttpMessage
Top

PROTECTED OpenEdge.Net.HTTP.IHttpResponse Response

Returns OpenEdge.Net.HTTP.IHttpResponse
Top

PUBLIC HANDLE WebStream

Returns HANDLE


Copyright © 2019 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 12.0.0