C# Class iQQ.Net.WebQQCore.Im.Action.AbstractHttpAction

Inheritance: IHttpAction
ファイルを表示 Open project: huoshan12345/iQQ.Net

Public Methods

Method Description
BuildRequest ( ) : QQHttpRequest
CancelRequest ( ) : void
CreateHttpRequest ( string method, string url ) : QQHttpRequest
IsCancelable ( ) : bool
NotifyActionEvent ( QQActionEventType type, object target ) : void
OnBuildRequest ( ) : QQHttpRequest

建立Request时的通知

OnHttpError ( Exception ex ) : void
OnHttpFinish ( QQHttpResponse response ) : void
OnHttpHeader ( QQHttpResponse response ) : void
OnHttpRead ( long current, long total ) : void
OnHttpStatusError ( QQHttpResponse response ) : void
OnHttpStatusOK ( QQHttpResponse response ) : void

response返回OK时的通知

OnHttpWrite ( long current, long total ) : void

Protected Methods

Method Description
AbstractHttpAction ( IQQContext context, QQActionListener listener ) : System

Private Methods

Method Description
DoRetryIt ( QQException ex, int maxTimes ) : bool

Method Details

AbstractHttpAction() protected method

protected AbstractHttpAction ( IQQContext context, QQActionListener listener ) : System
context IQQContext
listener QQActionListener
return System

BuildRequest() public method

public BuildRequest ( ) : QQHttpRequest
return iQQ.Net.WebQQCore.Im.Http.QQHttpRequest

CancelRequest() public method

public CancelRequest ( ) : void
return void

CreateHttpRequest() public method

public CreateHttpRequest ( string method, string url ) : QQHttpRequest
method string
url string
return iQQ.Net.WebQQCore.Im.Http.QQHttpRequest

IsCancelable() public method

public IsCancelable ( ) : bool
return bool

NotifyActionEvent() public method

public NotifyActionEvent ( QQActionEventType type, object target ) : void
type QQActionEventType
target object
return void

OnBuildRequest() public method

建立Request时的通知
public OnBuildRequest ( ) : QQHttpRequest
return iQQ.Net.WebQQCore.Im.Http.QQHttpRequest

OnHttpError() public method

public OnHttpError ( Exception ex ) : void
ex System.Exception
return void

OnHttpFinish() public method

public OnHttpFinish ( QQHttpResponse response ) : void
response iQQ.Net.WebQQCore.Im.Http.QQHttpResponse
return void

OnHttpHeader() public method

public OnHttpHeader ( QQHttpResponse response ) : void
response iQQ.Net.WebQQCore.Im.Http.QQHttpResponse
return void

OnHttpRead() public method

public OnHttpRead ( long current, long total ) : void
current long
total long
return void

OnHttpStatusError() public method

public OnHttpStatusError ( QQHttpResponse response ) : void
response iQQ.Net.WebQQCore.Im.Http.QQHttpResponse
return void

OnHttpStatusOK() public method

response返回OK时的通知
public OnHttpStatusOK ( QQHttpResponse response ) : void
response iQQ.Net.WebQQCore.Im.Http.QQHttpResponse
return void

OnHttpWrite() public method

public OnHttpWrite ( long current, long total ) : void
current long
total long
return void