C# 클래스 Encog.Util.HTTP.FormUtility

FormUtility: This class is used to construct responses to HTML forms. The class supports both standard HTML forms, as well as multipart forms.
파일 보기 프로젝트 열기: encog/encog-silverlight-core 1 사용 예제들

공개 메소드들

메소드 설명
Add ( String name, String v ) : void

Add a regular text field to either a regular or multipart form.

AddFile ( String name, String file ) : void

Add a file to a multipart form. Default mime type to application/octet-stream.

AddFile ( String name, String file, String type ) : void

Add a file to a multipart form.

Complete ( ) : void

Complete the building of the form.

Encode ( String str ) : String

Encode the specified string. This encodes all special characters.

FormUtility ( Stream os, String boundary ) : System

Prepare to access either a regular, or multipart, form.

GetBoundary ( ) : String

Generate a boundary for a multipart form.

보호된 메소드들

메소드 설명
RandomString ( ) : String

Generate a random string, of a specified length. This is used to generate the multipart boundary.

Writeln ( String str ) : void

Write a string, with a carriage return and linefeed.

비공개 메소드들

메소드 설명
Boundary ( ) : void

Generate a multipart form boundary.

Newline ( ) : void

Create a new line by displaying a carriage return and linefeed.

Write ( String str ) : void

Write the specified string, without a carriage return and line feed.

WriteName ( String name ) : void

Write the name element for a multipart post.

메소드 상세

Add() 공개 메소드

Add a regular text field to either a regular or multipart form.
public Add ( String name, String v ) : void
name String The name of the field.
v String The value of the field.
리턴 void

AddFile() 공개 메소드

Add a file to a multipart form. Default mime type to application/octet-stream.
public AddFile ( String name, String file ) : void
name String The field name.
file String The file to attach.
리턴 void

AddFile() 공개 메소드

Add a file to a multipart form.
public AddFile ( String name, String file, String type ) : void
name String The field name.
file String he file to attach.
type String The mime type
리턴 void

Complete() 공개 메소드

Complete the building of the form.
public Complete ( ) : void
리턴 void

Encode() 공개 정적인 메소드

Encode the specified string. This encodes all special characters.
public static Encode ( String str ) : String
str String The string to encode.
리턴 String

FormUtility() 공개 메소드

Prepare to access either a regular, or multipart, form.
public FormUtility ( Stream os, String boundary ) : System
os Stream The stream to output to.
boundary String The boundary to be used, or null if this is /// not a multipart form.
리턴 System

GetBoundary() 공개 정적인 메소드

Generate a boundary for a multipart form.
public static GetBoundary ( ) : String
리턴 String

RandomString() 보호된 정적인 메소드

Generate a random string, of a specified length. This is used to generate the multipart boundary.
protected static RandomString ( ) : String
리턴 String

Writeln() 보호된 메소드

Write a string, with a carriage return and linefeed.
protected Writeln ( String str ) : void
str String The string to write.
리턴 void