C# Class ValidatorWebRole._Default

Inheritance: System.Web.UI.Page
ファイルを表示 Open project: ddaysoftware/icalvalid

Protected Properties

Property Type Description
btnUpload global::System.Web.UI.WebControls.Button
btnValidateSnippet global::System.Web.UI.WebControls.Button
btnValidateUrl global::System.Web.UI.WebControls.Button
fileUpload global::System.Web.UI.WebControls.FileUpload
tbSnippet global::System.Web.UI.WebControls.TextBox
tbUrl global::System.Web.UI.WebControls.TextBox

Protected Methods

Method Description
GetSerializer ( ) : IValidationSerializer
LoadRuleset ( ) : IValidationRuleset
Page_Load ( object sender, EventArgs e ) : void
Setup ( ) : byte[]
SetupLanguage ( ) : void
Validate ( long byteCount, TextReader tr, string id ) : byte[]
ValidateUri ( string uriString ) : byte[]
btnUpload_Click ( object sender, EventArgs e ) : void
btnValidateSnippet_Click ( object sender, EventArgs e ) : void
btnValidateUrl_Click ( object sender, EventArgs e ) : void

Private Methods

Method Description
AsyncValidate ( long byte_count, TextReader tr, string id, ValidationMode mode ) : byte[]
ExceptionMessage ( Exception e ) : byte[]
MakeId ( bool save_results ) : string
RedirectToProgressPage ( ValidationMode mode, string id, string progress ) : void
RedirectToProgressPage ( ValidationMode mode, string uri, string id, string progress ) : void
SendPage ( byte bytes, string content_type ) : void
SendResult ( byte bytes ) : void
ValidateHelper ( ValidationMode mode, bool async, TextReader tr, string id, long count ) : byte[]
ValidateStream ( Stream s, ValidationMode mode, bool save_results, bool async ) : byte[]
ValidateText ( string text, ValidationMode mode, bool save_results, bool async ) : byte[]

Method Details

GetSerializer() protected method

protected GetSerializer ( ) : IValidationSerializer
return IValidationSerializer

LoadRuleset() protected method

protected LoadRuleset ( ) : IValidationRuleset
return IValidationRuleset

Page_Load() protected method

protected Page_Load ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Setup() protected method

protected Setup ( ) : byte[]
return byte[]

SetupLanguage() protected method

protected SetupLanguage ( ) : void
return void

Validate() protected method

protected Validate ( long byteCount, TextReader tr, string id ) : byte[]
byteCount long
tr TextReader
id string
return byte[]

ValidateUri() protected method

protected ValidateUri ( string uriString ) : byte[]
uriString string
return byte[]

btnUpload_Click() protected method

protected btnUpload_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

btnValidateSnippet_Click() protected method

protected btnValidateSnippet_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

btnValidateUrl_Click() protected method

protected btnValidateUrl_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Property Details

btnUpload protected_oe property

btnUpload control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Button btnUpload
return global::System.Web.UI.WebControls.Button

btnValidateSnippet protected_oe property

btnValidateSnippet control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Button btnValidateSnippet
return global::System.Web.UI.WebControls.Button

btnValidateUrl protected_oe property

btnValidateUrl control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Button btnValidateUrl
return global::System.Web.UI.WebControls.Button

fileUpload protected_oe property

fileUpload control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.FileUpload fileUpload
return global::System.Web.UI.WebControls.FileUpload

tbSnippet protected_oe property

tbSnippet control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.TextBox tbSnippet
return global::System.Web.UI.WebControls.TextBox

tbUrl protected_oe property

tbUrl control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.TextBox tbUrl
return global::System.Web.UI.WebControls.TextBox