^1397466765651
@xworker.httpclient.HttpClientExecute
sname
HttpClientExecute
slabel
HttpClientExecute
sdescriptors
xworker.lang.MetaDescriptor3
sextends
xworker.lang.actions.SelfAction
smany
true
seditCols
2
sinitialization
false
sgroup
net.httpclient
smodifier
public
sinheritDescription
false
Sdescription
#$@text#$@
<p>执行HttpClient。</p>

<p><strong>设置HttpClient</strong></p>

<p>&nbsp;&nbsp;&nbsp; 可以通过属性httpClient指定一个HttpClient，也可以通过HttpClient子节点添加一个HttpClient。</p>

<p><strong>设置HttpUriRequests</strong></p>

<p>&nbsp;&nbsp;&nbsp; HttpUriRequest是HttpGet、HttpPost等，通过HttpUriRequests子节点添加，可以一次添加多个。</p>

<p><strong>HttpClient事件处理</strong></p>

<p>&nbsp;&nbsp;&nbsp; 没执行一个HttpMessage时都会调用本事物的<strong>onSuccess或onException</strong>方法，在<strong>onSuccess和onException</strong>方法中进行事件处理。</p>

<p>&nbsp;&nbsp;&nbsp; 如果执行HttpUriRequest的状态返回值异常那么onException之后还会执行下一个HttpUriRequest，否则如果是java的异常，那么onException之后整个动作结束。</p>

<p>&nbsp;&nbsp;&nbsp; onSuccess的参数：response，entity, requestThing,request.</p>

<p>&nbsp;&nbsp;&nbsp; onException的参数：response，entity, requestThing,request, exception，其中response，entity, requestThing,request可能为null.</p>

<p><strong>返回值</strong></p>

<p>&nbsp;&nbsp;&nbsp; 如果设置了多个HttpMessage，那么以最后一个HttpMessage的事件onSuccess或onException方法的返回值作为总的返回值。</p>

<p><strong>多个HttpMessage时的中断</strong></p>

<p>&nbsp;&nbsp;&nbsp; 如果有多个HttpMessage，比如执行了第一个后后面的不需要再执行了，那么可以设置ActionContext的状态为非ActionContext.RUNNING的值。</p>

<p>&nbsp;&nbsp;&nbsp; 设置中断可以使用BREAK等动作，在中断后动作的状态会重新设置为ActionContext.RUNNING。</p>

<p>&nbsp;</p>
#$@text#$@
sth_createIndex
true
sth_registThing
child|xworker.lang.actions.Actions
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@actions
sname
actions
sdescriptors
xworker.lang.MetaDescriptor3/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@actions/@run
sname
run
sisSynchronized
false
sthrowException
true
suseOtherAction
false
suseOuterJava
true
souterClassName
xworker.httpclient.HttpClientExecuteActions
smethodName
run
sdisableGlobalContext
false
sattributeTemplate
false
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Action
svarScope
Global
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@JavaAction
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@actions/@run1
sname
onSuccess
sisSynchronized
false
sthrowException
true
suseOtherAction
false
suseOuterJava
true
souterClassName
xworker.httpclient.HttpClientExecuteActions
smethodName
onSuccess
sdisableGlobalContext
false
sattributeTemplate
false
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Action
svarScope
Global
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@JavaAction
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@actions/@run2
sname
onException
sisSynchronized
false
sthrowException
true
suseOtherAction
false
suseOuterJava
true
souterClassName
xworker.httpclient.HttpClientExecuteActions
smethodName
onException
sdisableGlobalContext
false
sattributeTemplate
false
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Action
svarScope
Global
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@JavaAction
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@name
sname
name
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@label
sname
label
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@exceptionStatusCode
sname
exceptionStatusCode
sshowLabel
true
sreadOnly
false
sdefault
400
sinheritDescription
false
Sdescription
#$@text#$@
<p>设置一个服务器返回的状态值范围表示请求发生了异常，通常&gt;=400表示异常，比如服务器资源不存在404，服务器内部错误&gt;=500等。</p>

<p>如果设置了该属性，那么当返回的状态值大于设置的值时会抛出异常。</p>
#$@text#$@
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@exceptionStatusCode/@400
sname
400
slabel
400
svalue
400
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@httpClient
sname
httpclient
sinputtype
dataSelector
sshowLabel
true
ssize
60
sreadOnly
false
sinheritDescription
false
Sdescription
#$@text#$@
<p>事物xworker.httpclient.HttpClient的实例，所有的请求都是通过HttpClient完成的，HttpClient是http请求的基础，比如设置代理等都是通过HttpClient实现的。</p>
#$@text#$@
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@description
sname
description
sinputtype
html
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@HttpClient
sname
HttpClient
sdescriptors
xworker.lang.MetaDescriptor3/@thing
sextends
xworker.httpclient.HttpClient
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
true
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@HttpMessages
sname
HttpUriRequests
sdescriptors
xworker.lang.MetaDescriptor3/@thing
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
Sdescription
#$@text#$@
<p>在此添加HttpUriRequest，比如HttpGet、HttpPost等。</p>
#$@text#$@
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@HttpMessages/@HttGet
sname
HttGet
sdescriptors
xworker.lang.MetaDescriptor3/@thing
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
Sdescription
#$@text#$@
<p>返回一个HttpGet，可以重载方法：</p>

<ul>
	<li><strong>create</strong><br />
	用于创建HttpGet的主方法。<br />
	&nbsp;</li>
	<li><strong>getUri</strong><br />
	获取uri参数，默认使用FreeMarker模板生成uri。</li>
</ul>
#$@text#$@
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@HttpMessages/@HttGet/@actions
sname
actions
sdescriptors
xworker.lang.MetaDescriptor3/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@HttpMessages/@HttGet/@actions/@run
sname
create
sisSynchronized
false
sthrowException
true
suseOtherAction
false
suseOuterJava
true
souterClassName
xworker.httpclient.HttpClientExecuteActions
smethodName
createHttpGet
sdisableGlobalContext
false
sattributeTemplate
false
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Action
svarScope
Global
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@JavaAction
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@HttpMessages/@HttGet/@actions/@run1
sname
getUri
sisSynchronized
false
sthrowException
true
suseOtherAction
false
suseOuterJava
true
souterClassName
xworker.httpclient.HttpClientExecuteActions
smethodName
getUri
sdisableGlobalContext
false
sattributeTemplate
false
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Action
svarScope
Global
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@JavaAction
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@HttpMessages/@HttGet/@name
sname
name
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@HttpMessages/@HttGet/@label
sname
label
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@HttpMessages/@HttGet/@uri
sname
uri
sshowLabel
true
ssize
60
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@HttpMessages/@HttGet/@description
sname
description
sinputtype
html
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@HttpMessages/@HttGet/@Headers
sname
Headers
sdescriptors
xworker.lang.MetaDescriptor3/@thing
sextends
xworker.httpclient.Headers
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
Sdescription
#$@text#$@
<p>返回一个HttpPost，可以重载方法：</p>

<ul>
	<li><strong>create</strong><br />
	用于创建HttpPost的主方法。<br />
	&nbsp;</li>
	<li><strong>getUri</strong><br />
	获取uri参数，默认使用FreeMarker模板生成uri。</li>
</ul>
#$@text#$@
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@HttpMessages/@HttpPost
sname
HttpPost
sdescriptors
xworker.lang.MetaDescriptor3/@thing
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
Sdescription
#$@text#$@
<p>返回一个HttpGet，可以重载方法：</p>

<ul>
	<li><strong>create</strong><br />
	用于创建HttpGet的主方法。<br />
	&nbsp;</li>
	<li><strong>getUri</strong><br />
	获取uri参数，默认使用FreeMarker模板生成uri。</li>
</ul>
#$@text#$@
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@HttpMessages/@HttpPost/@actions
sname
actions
sdescriptors
xworker.lang.MetaDescriptor3/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@HttpMessages/@HttpPost/@actions/@run
sname
create
sisSynchronized
false
sthrowException
true
suseOtherAction
false
suseOuterJava
true
souterClassName
xworker.httpclient.HttpClientExecuteActions
smethodName
createHttpPost
sdisableGlobalContext
false
sattributeTemplate
false
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Action
svarScope
Global
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@JavaAction
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@HttpMessages/@HttpPost/@actions/@run1
sname
getUri
sisSynchronized
false
sthrowException
true
suseOtherAction
false
suseOuterJava
true
souterClassName
xworker.httpclient.HttpClientExecuteActions
smethodName
getUri
sdisableGlobalContext
false
sattributeTemplate
false
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Action
svarScope
Global
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@JavaAction
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@HttpMessages/@HttpPost/@actions/@run11
sname
createEntity
sisSynchronized
false
sthrowException
true
suseOtherAction
false
suseOuterJava
true
souterClassName
xworker.httpclient.HttpClientExecuteActions
smethodName
createHttpPostEntity
sdisableGlobalContext
false
sattributeTemplate
false
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Action
svarScope
Global
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@JavaAction
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@HttpMessages/@HttpPost/@name
sname
name
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@HttpMessages/@HttpPost/@label
sname
label
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@HttpMessages/@HttpPost/@uri
sname
uri
sshowLabel
true
ssize
60
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@HttpMessages/@HttpPost/@description
sname
description
sinputtype
html
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@HttpMessages/@HttpPost/@Headers
sname
Headers
sdescriptors
xworker.lang.MetaDescriptor3/@thing
sextends
xworker.httpclient.Headers
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
Sdescription
#$@text#$@
<p>返回一个HttpPost，可以重载方法：</p>

<ul>
	<li><strong>create</strong><br />
	用于创建HttpPost的主方法。<br />
	&nbsp;</li>
	<li><strong>getUri</strong><br />
	获取uri参数，默认使用FreeMarker模板生成uri。</li>
</ul>
#$@text#$@
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@HttpMessages/@HttpPost/@Entity
sname
Entity
sdescriptors
xworker.lang.MetaDescriptor3/@thing
sextends
xworker.httpclient.httpEntity.Entitys
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
Sdescription
#$@text#$@
<p>设置HttpPost的参数和实体，通过添加子事物设置Entity，但只有第一个子事物Entity生效。</p>

<p>通可以通过重载本事物的create方法用自己的方法生成Entity。</p>
#$@text#$@
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@HttpMessages/@HttpPost/@Entity/@2930
sname
actions
slabel
actions
sdescriptors
xworker.lang.MetaDescriptor3/@thing
sextends
xworker.lang.actions.Actions
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
Sdescription
#$@text#$@
<p>处理Httpt的返回结果的动作可以写在这个下面。</p>
<p>其中，会带入两个变量：<br />
&nbsp;&nbsp;&nbsp;&nbsp;response<br />
&nbsp;&nbsp;&nbsp; entity<br />
&nbsp;</p>
#$@text#$@
sid
2930
@xworker.httpclient.HttpClientExecute/@HttpMessages/@HttpPost/@Entity/@2930/@2931
sname
name
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sid
2931
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.httpclient.HttpClientExecute/@HttpMessages/@HttpPost/@Entity/@actions
sname
actions
sdescriptors
xworker.lang.MetaDescriptor3/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@HttpMessages/@HttpPost/@Entity/@actions/@run
sname
create
sisSynchronized
false
sthrowException
true
suseOtherAction
false
suseOuterJava
true
souterClassName
xworker.httpclient.HttpClientExecuteActions
smethodName
createHttpEntity
sdisableGlobalContext
false
sattributeTemplate
false
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Action
svarScope
Global
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@JavaAction
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@xworker.httpclient.HttpClientExecute/@2930
sname
actions
slabel
actions
sdescriptors
xworker.lang.MetaDescriptor3/@thing
sextends
xworker.lang.actions.Actions
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
Sdescription
#$@text#$@
<p>处理Httpt的返回结果的动作可以写在这个下面。</p>
<p>其中，会带入两个变量：<br />
&nbsp;&nbsp;&nbsp;&nbsp;response<br />
&nbsp;&nbsp;&nbsp; entity<br />
&nbsp;</p>
#$@text#$@
sid
2930
@xworker.httpclient.HttpClientExecute/@2930/@2931
sname
name
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sid
2931
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
