C# Class ODataRestierDynamic.Models.ODataMessageWrapper

Wrapper for Interface for synchronous OData request messages.
Inheritance: IODataRequestMessage
Mostra file Open project: arcelormittalkriviyrih/odata_unified_svc Class Usage Examples

Public Methods

Method Description
GetHeader ( string headerName ) : string

Returns a value of an HTTP header.

GetStream ( ) : Stream

Gets the stream backing for this message.

ODataMessageWrapper ( ) : System

Default constructor.

ODataMessageWrapper ( Stream stream ) : System

Constructor.

ODataMessageWrapper ( Stream stream, HttpHeaders headers ) : System

Constructor.

ODataMessageWrapper ( Stream stream, HttpHeaders headers, string>.IDictionary contentIdMapping ) : System

Constructor.

SetHeader ( string headerName, string headerValue ) : void

Sets the value of an HTTP header.

Method Details

GetHeader() public method

Returns a value of an HTTP header.
public GetHeader ( string headerName ) : string
headerName string The name of the header to get.
return string

GetStream() public method

Gets the stream backing for this message.
public GetStream ( ) : Stream
return Stream

ODataMessageWrapper() public method

Default constructor.
public ODataMessageWrapper ( ) : System
return System

ODataMessageWrapper() public method

Constructor.
public ODataMessageWrapper ( Stream stream ) : System
stream Stream Stream of params provided by a client in a POST request.
return System

ODataMessageWrapper() public method

Constructor.
public ODataMessageWrapper ( Stream stream, HttpHeaders headers ) : System
stream Stream Stream of params provided by a client in a POST request.
headers HttpHeaders An enumerable over all the headers for this message.
return System

ODataMessageWrapper() public method

Constructor.
public ODataMessageWrapper ( Stream stream, HttpHeaders headers, string>.IDictionary contentIdMapping ) : System
stream Stream Stream of params provided by a client in a POST request.
headers HttpHeaders An enumerable over all the headers for this message.
contentIdMapping string>.IDictionary The content identifier mapping.
return System

SetHeader() public method

Sets the value of an HTTP header.
public SetHeader ( string headerName, string headerValue ) : void
headerName string The name of the header to set.
headerValue string The value of the HTTP header or 'null' if the header should be /// removed.
return void