FileDownloadHttpResponseMessageFactory Class

Represents a factory for chunked and non-chunked HttpResponseMessages that represent a file download.

Inheritance Hierarchy

SystemObject
  TcHmiSrv.Core.Tools.Net.Http.FactoriesChunkedHttpResponseMessageFactory
    TcHmiSrv.Core.Tools.Net.Http.FactoriesFileDownloadHttpResponseMessageFactory

Namespace: TcHmiSrv.Core.Tools.Net.Http.Factories
Assembly: TcHmiSrvExtNet.Core (in TcHmiSrvExtNet.Core.dll) Version: 3.1.7447.0+85f9b473a1dd11b8f3e5c9a182fd1901975e46f9

Syntax

C#

public class FileDownloadHttpResponseMessageFactory : ChunkedHttpResponseMessageFactory

The FileDownloadHttpResponseMessageFactory type exposes the following members.

Constructors

 

Name

Description

FileDownloadHttpResponseMessageFactory Class 1:

FileDownloadHttpResponseMessageFactory(FileStream)

Initializes a new instance of the FileDownloadHttpResponseMessageFactory class with the specified FileStream.

FileDownloadHttpResponseMessageFactory Class 2:

FileDownloadHttpResponseMessageFactory(FileStream, String)

Initializes a new instance of the FileDownloadHttpResponseMessageFactory class with the specified FileStream and content type.

FileDownloadHttpResponseMessageFactory Class 3:

FileDownloadHttpResponseMessageFactory(FileStream, ICompressor)

Initializes a new instance of the FileDownloadHttpResponseMessageFactory class with the specified FileStream and ICompressor.

FileDownloadHttpResponseMessageFactory Class 4:

FileDownloadHttpResponseMessageFactory(Stream, String)

Initializes a new instance of the FileDownloadHttpResponseMessageFactory class with the specified Stream and file name.

FileDownloadHttpResponseMessageFactory Class 5:

FileDownloadHttpResponseMessageFactory(FileStream, ICompressor, String)

Initializes a new instance of the FileDownloadHttpResponseMessageFactory class with the specified FileStream, ICompressor and content type.

FileDownloadHttpResponseMessageFactory Class 6:

FileDownloadHttpResponseMessageFactory(Stream, String, String)

Initializes a new instance of the FileDownloadHttpResponseMessageFactory class with the specified Stream, file name and content type.

FileDownloadHttpResponseMessageFactory Class 7:

FileDownloadHttpResponseMessageFactory(Stream, ICompressor, String)

Initializes a new instance of the FileDownloadHttpResponseMessageFactory class with the specified Stream, ICompressor and file name.

FileDownloadHttpResponseMessageFactory Class 8:

FileDownloadHttpResponseMessageFactory(Stream, ICompressor, String, String)

Initializes a new instance of the FileDownloadHttpResponseMessageFactory class with the specified Stream, ICompressor, file name and content type.

Properties

 

Name

Description

FileDownloadHttpResponseMessageFactory Class 9:

ContentEncoding

Gets the content encoding of the Stream, if any.
(Inherited from ChunkedHttpResponseMessageFactory)

FileDownloadHttpResponseMessageFactory Class 10:

ContentType

Gets the content type of the file to download, if specified.

FileDownloadHttpResponseMessageFactory Class 11:

FileName

Gets the name of the file to download.

FileDownloadHttpResponseMessageFactory Class 12:

IsCompleted

Gets a value that indicates whether the ChunkedHttpResponseMessageFactory is completed by sending the last HttpResponseMessage.
(Inherited from ChunkedHttpResponseMessageFactory)

FileDownloadHttpResponseMessageFactory Class 13:

UseCompressor

Gets a value that indicates whether the ChunkedHttpResponseMessageFactory uses an ICompressor to compress the data read from the Stream.
(Inherited from ChunkedHttpResponseMessageFactory)

Methods

 

Name

Description

FileDownloadHttpResponseMessageFactory Class 14:

CreateResponseHeaders

Creates the HttpResponseHeaders for an HttpResponseMessage.
(Overrides ChunkedHttpResponseMessageFactoryCreateResponseHeaders(Int32, Int32))

FileDownloadHttpResponseMessageFactory Class 15:

Dispose


(Inherited from ChunkedHttpResponseMessageFactory)

FileDownloadHttpResponseMessageFactory Class 16:

Dispose(Boolean)


(Inherited from ChunkedHttpResponseMessageFactory)

FileDownloadHttpResponseMessageFactory Class 17:

Equals

Determines whether the specified object is equal to the current object.
(Inherited from Object)

FileDownloadHttpResponseMessageFactory Class 18:

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)

FileDownloadHttpResponseMessageFactory Class 19:

GetHashCode

Serves as the default hash function.
(Inherited from Object)

FileDownloadHttpResponseMessageFactory Class 20:

GetType

Gets the Type of the current instance.
(Inherited from Object)

FileDownloadHttpResponseMessageFactory Class 21:

MemberwiseClone

Creates a shallow copy of the current Object.
(Inherited from Object)

FileDownloadHttpResponseMessageFactory Class 22:

Read

Reads all Bytes from the Stream and creates an HttpResponseMessage from it.
(Inherited from ChunkedHttpResponseMessageFactory)

FileDownloadHttpResponseMessageFactory Class 23:

Read(Int32, Value)

Reads the specified number of Bytes from the Stream and creates an HttpResponseMessage from it.
(Inherited from ChunkedHttpResponseMessageFactory)

FileDownloadHttpResponseMessageFactory Class 24:

ToString

Returns a string that represents the current object.
(Inherited from Object)

Version Information

Supported in: 3.1.7447.0, 2.3.7447.0, 1.10.7447.0

Reference

TcHmiSrv.Core.Tools.Net.Http.Factories Namespace

Copyright © Beckhoff Automation GmbH & Co. KG