C# Class Manos.Http.HttpMultiPartFormDataHandler

Inheritance: IHttpBodyHandler
Show file Open project: Hyperfair/manos

Public Methods

Method Description
Finish ( Manos.Http.HttpEntity entity ) : void
GetContentDispositionAttribute ( string l, string name ) : string
GetContentDispositionAttributeWithEncoding ( string l, string name ) : string
HandleData ( Manos.Http.HttpEntity entity, ByteBuffer data, int pos, int len ) : void
HttpMultiPartFormDataHandler ( string boundary, Encoding encoding, IUploadedFileCreator file_creator ) : System
ParseContentDisposition ( string UTF8string, Manos.Http.HttpEntity entity ) : void
ParseContentType ( string str ) : void

Private Methods

Method Description
CheckStartingBoundary ( byte str_data, int pos ) : bool
FinishFileData ( Manos.Http.HttpEntity entity ) : void
FinishFormData ( Manos.Http.HttpEntity entity ) : void
HandleHeader ( Manos.Http.HttpEntity entity ) : void

Method Details

Finish() public method

public Finish ( Manos.Http.HttpEntity entity ) : void
entity Manos.Http.HttpEntity
return void

GetContentDispositionAttribute() public static method

public static GetContentDispositionAttribute ( string l, string name ) : string
l string
name string
return string

GetContentDispositionAttributeWithEncoding() public method

public GetContentDispositionAttributeWithEncoding ( string l, string name ) : string
l string
name string
return string

HandleData() public method

public HandleData ( Manos.Http.HttpEntity entity, ByteBuffer data, int pos, int len ) : void
entity Manos.Http.HttpEntity
data ByteBuffer
pos int
len int
return void

HttpMultiPartFormDataHandler() public method

public HttpMultiPartFormDataHandler ( string boundary, Encoding encoding, IUploadedFileCreator file_creator ) : System
boundary string
encoding System.Text.Encoding
file_creator IUploadedFileCreator
return System

ParseContentDisposition() public method

public ParseContentDisposition ( string UTF8string, Manos.Http.HttpEntity entity ) : void
UTF8string string
entity Manos.Http.HttpEntity
return void

ParseContentType() public method

public ParseContentType ( string str ) : void
str string
return void