Namespace: OpenEdge.Net.HTTP.Filter.Payload
Class
MultipartFormBodyWriter
Parent classes:
Inherits: OpenEdge.Net.HTTP.Filter.Payload.MessageWriter
Implements: OpenEdge.Net.ISupportMultipartEntity, OpenEdge.Core.ISupportEncoding

/* *************************************************************************************************************************
Copyright (c) 2018 by Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.
File:MultipartFormBodyWriter
Purpose:Writes a Map as a multipart/form-data body
Author(s):pjudge
Created:2018-03-13
Notes:* multipart/form-data defined in https://tools.ietf.org/html/rfc7578
/* The character string delimiting the parts. Excludes the leading and trailing --




Method Summary
Options Name Purpose
Open ()
INT64 Write (IMap) /* Writes a Map/Dictionary as form data (since a map has key-value pairs). @param IMap A map for form fields and their values @return int64 The number of bytes written */
INT64 Write (MultipartEntity)
INT64 Write (Object)
WriteField (Object, Object) /* Writes a form 'field' as a part @param Object The part name (the key) @param Object The part value */

Constructor Summary
Options Name Purpose
MultipartFormBodyWriter () /* Default constructor */

Property Summary
Options Name Purpose
CHARACTER Boundary
CHARACTER Encoding


Method Detail
Top

Open ()

Top

INT64 Write (IMap)

/* Writes a Map/Dictionary as form data (since a map has key-value pairs).
Parameters:
pData OpenEdge.Core.Collections.IMap
Returns INT64
int64 The number of bytes written
Top

INT64 Write (MultipartEntity)

Parameters:
pData OpenEdge.Net.MultipartEntity
Returns INT64
Top

INT64 Write (Object)

Parameters:
pData Progress.Lang.Object
Returns INT64
Top

WriteField (Object, Object)

/* Writes a form 'field' as a part
Parameters:
pKey Progress.Lang.Object
pValue Progress.Lang.Object


Constructor Detail
Top

MultipartFormBodyWriter ()

/* Default constructor


Property Detail
Top

CHARACTER Boundary

Returns CHARACTER
Top

CHARACTER Encoding

Returns CHARACTER


Copyright © 2022 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7.15