^1584954812103
@
sname
MultipartEntity
slabel
MultipartEntity
sdescriptors
xworker.lang.MetaDescriptor3
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
sdescription
<p>Multipart/form coded HTTP entity consisting of multiple body parts.</p>
sth_createIndex
false
  @/@actions
  sname
  actions
  sdescriptors
  xworker.lang.MetaDescriptor3/@actions
  sth_createIndex
  false
  sid
  actions
    @/@actions/@create
    sname
    create
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    svarScope
    Local
    sdisableGlobalContext
    false
    Scode
#$@text#$@
import org.apache.http.entity.mime.MultipartEntity;
import org.apache.http.entity.mime.FormBodyPart;

def entity = new MultipartEntity();

for(child in self.getChilds()){
    def part = child.doAction("create", actionContext);
    if(part != null){
        if(part instanceof MultipartEntity){
            entity.addPart(part);
        }else{
            entity.addPart(child.name, part);
        }
    }
}

return entity;
#$@text#$@
    sinterpretationType
    Action
    screateLocalVarScope
    false
    ssaveReturn
    false
    sdescriptors
    xworker.lang.actions.Actions/@GroovyAction
    sth_createIndex
    false
    sid
    create
  @/@name
  sname
  name
  sreadOnly
  false
  sinheritDescription
  false
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sid
  name
  @/@label
  sname
  label
  sreadOnly
  false
  sinheritDescription
  false
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sid
  label
  @/@FormBodyPart
  sname
  FormBodyPart
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  smany
  true
  seditCols
  2
  sformNoLabel
  false
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>用于添加各种body的。可以不同FormBodyPart而直接使用FileBody、StringBody等等。</p>
#$@text#$@
  snotXmlAttribute
  false
  sjson_isArray
  false
  sth_createIndex
  false
  sid
  FormBodyPart
    @/@FormBodyPart/@actions
    sname
    actions
    sdescriptors
    xworker.lang.MetaDescriptor3/@actions
    sth_createIndex
    false
    sid
    actions
      @/@FormBodyPart/@actions/@create
      sname
      create
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      svarScope
      Local
      sdisableGlobalContext
      false
      Scode
#$@text#$@
import org.apache.http.entity.mime.FormBodyPart;
import org.apache.http.entity.mime.FormBodyPartBuilder;
import org.xmeta.ActionException;

import org.xmeta.util.UtilString;

def builder = FormBodyPartBuilder.create();
builder.setName(self.getMetadata().getName());

//添加字段
for(field in self.get("Field@")){
    def name = field.doAction("getName", actionContext);
    def value = field.doAction("getValue", actionContext);
    if(value != null){
       builder.addField(name, value);
    }
}

def part = null;
def contentBody = self.get("ContentBody@0");
if(contentBody != null){
    def body = contentBody.doAction("create", actionContext);
    if(body != null){
        builder.setBody(body);
    }

}
part = builder.build();

return part;
#$@text#$@
      sinterpretationType
      Action
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.Actions/@GroovyAction
      sth_createIndex
      false
      sid
      create
    @/@FormBodyPart/@name
    sname
    name
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    name
    @/@FormBodyPart/@label
    sname
    label
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    label
    @/@FormBodyPart/@Field
    sname
    Field
    sdescriptors
    xworker.lang.MetaDescriptor3/@thing
    smany
    true
    seditCols
    2
    sinitialization
    false
    smodifier
    public
    sinheritDescription
    false
    sth_createIndex
    false
    sid
    Field
      @/@FormBodyPart/@Field/@actions
      sname
      actions
      sdescriptors
      xworker.lang.MetaDescriptor3/@actions
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      actions
        @/@FormBodyPart/@Field/@actions/@getName
        sname
        getName
        sattributeName
        name
        snotNull
        false
        sinterpretationType
        Self
        sattributeTemplate
        false
        schildsAttributeTemplate
        false
        svarScope
        Local
        sisSynchronized
        false
        sthrowException
        true
        screateLocalVarScope
        false
        ssaveReturn
        false
        sdisableGlobalContext
        false
        sdebugLog
        false
        sdescriptors
        xworker.lang.actions.ActionUtil/@GetString
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        getName
        @/@FormBodyPart/@Field/@actions/@getValue
        sname
        getValue
        sattributeName
        value
        snotNull
        false
        sinterpretationType
        Self
        sattributeTemplate
        false
        schildsAttributeTemplate
        false
        svarScope
        Local
        sisSynchronized
        false
        sthrowException
        true
        screateLocalVarScope
        false
        ssaveReturn
        false
        sdisableGlobalContext
        false
        sdebugLog
        false
        sdescriptors
        xworker.lang.actions.ActionUtil/@GetString
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        getValue
      @/@FormBodyPart/@Field/@name
      sname
      name
      sreadOnly
      false
      sinheritDescription
      false
      svalidateAllowBlank
      true
      LvalidateOnBlur
      true
      LallowDecimals
      true
      LallowNegative
      true
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sth_createIndex
      false
      sid
      name
      @/@FormBodyPart/@Field/@value
      sname
      value
      sinputtype
      textarea
      sshowLabel
      true
      sreadOnly
      false
      sinheritDescription
      false
      svalidateAllowBlank
      true
      LvalidateOnBlur
      true
      LallowDecimals
      true
      LallowNegative
      true
      snotXmlAttribute
      false
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sth_createIndex
      false
      sid
      value
    @/@FormBodyPart/@ContentBody
    sname
    ContentBody
    sdescriptors
    xworker.lang.MetaDescriptor3/@thing
    smany
    true
    seditCols
    2
    sinitialization
    false
    smodifier
    public
    sinheritDescription
    false
    snotXmlAttribute
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    ContentBody
      @/@FormBodyPart/@ContentBody/@actions
      sname
      actions
      sdescriptors
      xworker.lang.MetaDescriptor3/@actions
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      actions
        @/@FormBodyPart/@ContentBody/@actions/@create
        sname
        create
        sisSynchronized
        false
        sthrowException
        true
        suseOtherAction
        false
        svarScope
        Local
        sdisableGlobalContext
        false
        Scode
#$@text#$@
for(child in self.getChilds()){
    def part = child.doAction("create", actionContext);
    if(part != null){
        return part;
    }
}

return null;
#$@text#$@
        sinterpretationType
        Action
        screateLocalVarScope
        false
        ssaveReturn
        false
        sdescriptors
        xworker.lang.actions.Actions/@GroovyAction
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_mark
        false
        sid
        create
      @/@FormBodyPart/@ContentBody/@ByteArrayBody
      sname
      ByteArrayBody
      sdescriptors
      xworker.lang.MetaDescriptor3/@thing
      sextends
      xworker.httpclient.httpEntity.MultipartEntity/@ByteArrayBody
      smany
      true
      seditCols
      2
      sinitialization
      false
      smodifier
      public
      sinheritDescription
      true
      snotXmlAttribute
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      ByteArrayBody
      @/@FormBodyPart/@ContentBody/@FileBody
      sname
      FileBody
      sdescriptors
      xworker.lang.MetaDescriptor3/@thing
      sextends
      xworker.httpclient.httpEntity.MultipartEntity/@FileBody
      smany
      true
      seditCols
      2
      sinitialization
      false
      smodifier
      public
      sinheritDescription
      true
      snotXmlAttribute
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      FileBody
      @/@FormBodyPart/@ContentBody/@InputStreamBody
      sname
      InputStreamBody
      sdescriptors
      xworker.lang.MetaDescriptor3/@thing
      sextends
      xworker.httpclient.httpEntity.MultipartEntity/@InputStreamBody
      smany
      true
      seditCols
      2
      sinitialization
      false
      smodifier
      public
      sinheritDescription
      true
      snotXmlAttribute
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      InputStreamBody
      @/@FormBodyPart/@ContentBody/@StringBody
      sname
      StringBody
      sdescriptors
      xworker.lang.MetaDescriptor3/@thing
      sextends
      xworker.httpclient.httpEntity.MultipartEntity/@StringBody
      smany
      true
      seditCols
      2
      sinitialization
      false
      smodifier
      public
      sinheritDescription
      true
      snotXmlAttribute
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      StringBody
  @/@ByteArrayBody
  sname
  ByteArrayBody
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  smany
  true
  seditCols
  2
  sformNoLabel
  false
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>Body part that is built using a byte array containing a file.</p>

<p>用于上传文件。</p>

<p><strong>可以重写的方法</strong></p>

<ul>
	<li><strong>byte[] getData()</strong></li>
	<li><strong>String getMimeType()</strong></li>
	<li><strong>String getFileName()&nbsp;&nbsp;&nbsp; </strong></li>
</ul>

<p>&nbsp;&nbsp;</p>
#$@text#$@
  snotXmlAttribute
  false
  sjson_isArray
  false
  sth_createIndex
  false
  sid
  ByteArrayBody
    @/@ByteArrayBody/@actions
    sname
    actions
    sdescriptors
    xworker.lang.MetaDescriptor3/@actions
    sth_createIndex
    false
    sid
    actions
      @/@ByteArrayBody/@actions/@create
      sname
      create
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      svarScope
      Local
      sdisableGlobalContext
      false
      Scode
#$@text#$@
import org.apache.http.entity.mime.content.ByteArrayBody;

import org.xmeta.util.UtilData;

def data = self.doAction("getData", actionContext);
def mimeType = self.doAction("getMimeType", actionContext);
def filename = self.doAction("getFileName", actionContext);

//def data = UtilData.getData(self, "data", actionContext);
//def mimeType = self.getString("mimeType");
//def filename = self.getString("filename");

if(mimeType == null || mimeType == ""){
    return new ByteArrayBody(data, filename);
}else{
    return new ByteArrayBody(data, mimeType, filename);
}
#$@text#$@
      sinterpretationType
      Action
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.Actions/@GroovyAction
      sth_createIndex
      false
      sid
      create
      @/@ByteArrayBody/@actions/@getData
      sname
      getData
      sattributeName
      data
      sinterpretationType
      Self
      sattributeTemplate
      false
      schildsAttributeTemplate
      false
      svarScope
      Local
      sisSynchronized
      false
      sthrowException
      true
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdisableGlobalContext
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.ActionUtil/@GetBytes
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      getData
      @/@ByteArrayBody/@actions/@getMimeType
      sname
      getMimeType
      sattributeName
      mimeType
      snotNull
      false
      sinterpretationType
      Self
      sattributeTemplate
      false
      schildsAttributeTemplate
      false
      svarScope
      Local
      sisSynchronized
      false
      sthrowException
      true
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdisableGlobalContext
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.ActionUtil/@GetString
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      getMimeType
      @/@ByteArrayBody/@actions/@getFileName
      sname
      getFileName
      sattributeName
      filename
      snotNull
      false
      sinterpretationType
      Self
      sattributeTemplate
      false
      schildsAttributeTemplate
      false
      svarScope
      Local
      sisSynchronized
      false
      sthrowException
      true
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdisableGlobalContext
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.ActionUtil/@GetString
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      getFileName
    @/@ByteArrayBody/@name
    sname
    name
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    name
    @/@ByteArrayBody/@label
    sname
    label
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    label
    @/@ByteArrayBody/@data
    sname
    data
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    data
    @/@ByteArrayBody/@mimeType
    sname
    mimeType
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    mimeType
    @/@ByteArrayBody/@filename
    sname
    filename
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    filename
  @/@FileBody
  sname
  FileBody
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  smany
  true
  seditCols
  2
  sformNoLabel
  false
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>用于上传文件。</p>

<p><strong>可以重写的方法</strong></p>

<ul>
	<li><strong>File getFile()</strong><br />
	返回文件。<br />
	&nbsp;</li>
	<li><strong>String getMimeType()</strong><br />
	可选。<br />
	&nbsp;</li>
	<li><strong>String getFileName()</strong><br />
	可选。<br />
	&nbsp;</li>
	<li><strong>String getCharset()</strong><br />
	可选。&nbsp;&nbsp;&nbsp;</li>
</ul>

<p>&nbsp;&nbsp;</p>
#$@text#$@
  snotXmlAttribute
  false
  sjson_isArray
  false
  sth_createIndex
  false
  sid
  FileBody
    @/@FileBody/@actions
    sname
    actions
    sdescriptors
    xworker.lang.MetaDescriptor3/@actions
    sth_createIndex
    false
    sid
    actions
      @/@FileBody/@actions/@create
      sname
      create
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      svarScope
      Local
      sdisableGlobalContext
      false
      Scode
#$@text#$@
import org.apache.http.entity.mime.content.FileBody;

import org.xmeta.util.UtilData;

import ognl.Ognl;

def file = self.doAction("getFile", actionContext);//UtilData.getData(self, "file", actionContext);
if(file instanceof String){
    file = new File(file);
}else{
    file = (File) file;
}
if(file == null){
    return null;
}

def filename = self.doAction("getFileName", actionContext);//self.getStringBlankAsNull("filename");
def mimeType = self.doAction("getMimeType", actionContext);//self.getStringBlankAsNull("mimeType");
def charset = self.doAction("getCharset", actionContext);//self.getStringBlankAsNull("charset");

if(filename != null && mimeType != null && charset != null){
    return new FileBody(file, filename, mimeType, charset);
}else if(mimeType != null && charset != null){
    return new FileBody(file, mimeType, charset);
}else if(mimeType != null){
    return new FileBody(file, mimeType);
}else{
    return new FileBody(file);
}
#$@text#$@
      sinterpretationType
      Action
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.Actions/@GroovyAction
      sth_createIndex
      false
      sid
      create
      @/@FileBody/@actions/@getFile
      sname
      getFile
      sattributeName
      file
      snotNull
      false
      sinterpretationType
      Self
      sattributeTemplate
      false
      schildsAttributeTemplate
      false
      svarScope
      Local
      sisSynchronized
      false
      sthrowException
      true
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdisableGlobalContext
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.ActionUtil/@GetFile
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      getFile
      @/@FileBody/@actions/@getFileName
      sname
      getFileName
      sattributeName
      filename
      snotNull
      false
      sinterpretationType
      Self
      sattributeTemplate
      false
      schildsAttributeTemplate
      false
      svarScope
      Local
      sisSynchronized
      false
      sthrowException
      true
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdisableGlobalContext
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.ActionUtil/@GetString
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      getFileName
      @/@FileBody/@actions/@getMimeType
      sname
      getMimeType
      sattributeName
      mimeType
      snotNull
      false
      sinterpretationType
      Self
      sattributeTemplate
      false
      schildsAttributeTemplate
      false
      svarScope
      Local
      sisSynchronized
      false
      sthrowException
      true
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdisableGlobalContext
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.ActionUtil/@GetString
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      getMimeType
      @/@FileBody/@actions/@getCharset
      sname
      getCharset
      sattributeName
      charset
      snotNull
      false
      sinterpretationType
      Self
      sattributeTemplate
      false
      schildsAttributeTemplate
      false
      svarScope
      Local
      sisSynchronized
      false
      sthrowException
      true
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdisableGlobalContext
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.ActionUtil/@GetString
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      getCharset
    @/@FileBody/@name
    sname
    name
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    name
    @/@FileBody/@label
    sname
    label
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    label
    @/@FileBody/@file
    sname
    file
    ssize
    60
    sshowLabel
    true
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    file
    @/@FileBody/@filename
    sname
    filename
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    filename
    @/@FileBody/@mimeType
    sname
    mimeType
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    mimeType
    @/@FileBody/@charset
    sname
    charset
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    charset
  @/@InputStreamBody
  sname
  InputStreamBody
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  smany
  true
  seditCols
  2
  sformNoLabel
  false
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>用于上传文件。</p>

<p><strong>可以重写的方法</strong></p>

<ul>
	<li><strong>InputStream getInputStream()</strong><br />
	返回流。<br />
	&nbsp;</li>
	<li><strong>String getMimeType()</strong><br />
	&nbsp;<br />
	&nbsp;</li>
	<li><strong>String getFileName()&nbsp;&nbsp;&nbsp; </strong></li>
</ul>

<p>&nbsp;</p>
#$@text#$@
  snotXmlAttribute
  false
  sjson_isArray
  false
  sth_createIndex
  false
  sid
  InputStreamBody
    @/@InputStreamBody/@actions
    sname
    actions
    sdescriptors
    xworker.lang.MetaDescriptor3/@actions
    sth_createIndex
    false
    sid
    actions
      @/@InputStreamBody/@actions/@create
      sname
      create
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      svarScope
      Local
      sdisableGlobalContext
      false
      Scode
#$@text#$@
import org.apache.http.entity.mime.content.InputStreamBody;

import org.xmeta.util.UtilData;

def inputStream = self.doAction("getInputStream", actionContext);//UtilData.getData(self, "inputStream", actionContext);

if(inputStream == null){
    return null;
}

def mimeType = self.doAction("getMimeType", actionContext);
def fileName= self.doAction("getFileName", actionContext)
return new InputStreamBody(inputStream, mimeType, fileName);
#$@text#$@
      sinterpretationType
      Action
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.Actions/@GroovyAction
      sth_createIndex
      false
      sid
      create
      @/@InputStreamBody/@actions/@getInputStream
      sname
      getInputStream
      sattributeName
      inputStream
      snotNull
      false
      sinterpretationType
      Self
      sattributeTemplate
      false
      schildsAttributeTemplate
      false
      svarScope
      Local
      sisSynchronized
      false
      sthrowException
      true
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdisableGlobalContext
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.ActionUtil/@GetData
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      getInputStream
      @/@InputStreamBody/@actions/@getMimeType
      sname
      getMimeType
      sattributeName
      mimeType
      snotNull
      false
      sinterpretationType
      Self
      sattributeTemplate
      false
      schildsAttributeTemplate
      false
      svarScope
      Local
      sisSynchronized
      false
      sthrowException
      true
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdisableGlobalContext
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.ActionUtil/@GetString
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      getMimeType
      @/@InputStreamBody/@actions/@getFileName
      sname
      getFileName
      sattributeName
      filename
      snotNull
      false
      sinterpretationType
      Self
      sattributeTemplate
      false
      schildsAttributeTemplate
      false
      svarScope
      Local
      sisSynchronized
      false
      sthrowException
      true
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdisableGlobalContext
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.ActionUtil/@GetString
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      getFileName
    @/@InputStreamBody/@nae
    sname
    name
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    nae
    @/@InputStreamBody/@label
    sname
    label
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    label
    @/@InputStreamBody/@inputStream
    sname
    inputStream
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    inputStream
    @/@InputStreamBody/@mimeType
    sname
    mimeType
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    mimeType
    @/@InputStreamBody/@filename
    sname
    filename
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    filename
  @/@StringBody
  sname
  StringBody
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  smany
  true
  seditCols
  2
  sformNoLabel
  false
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>用于上传参数。</p>
#$@text#$@
  snotXmlAttribute
  false
  sjson_isArray
  false
  sth_createIndex
  false
  sid
  StringBody
    @/@StringBody/@actions
    sname
    actions
    sdescriptors
    xworker.lang.MetaDescriptor3/@actions
    sth_createIndex
    false
    sid
    actions
      @/@StringBody/@actions/@create
      sname
      create
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      svarScope
      Local
      sdisableGlobalContext
      false
      Scode
#$@text#$@
import org.apache.http.entity.mime.content.StringBody;

import org.xmeta.util.UtilString;

import java.nio.charset.Charset;

def text = self.doAction("getText", actionContext);//UtilString.getString(self, "text", actionContext);

def charset = self.doAction("getCharset", actionContext);
try{
   if(charset instanceof String){
       charset = Charset.forName(charset);
   }
}catch(Exception e){
}

def mimeType = self.doAction("getMimeType", actionContext);//self.getString("mimeType");

if(charset != null && mimeType != null && mimeType != ""){
    return new StringBody(text, mimeType, charset);
}else if(charset != null){
    return new StringBody(text, charset);
}else{
    return new StringBody(text);
}
#$@text#$@
      sinterpretationType
      Action
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.Actions/@GroovyAction
      sth_createIndex
      false
      sid
      create
      @/@StringBody/@actions/@getMimeType
      sname
      getMimeType
      sattributeName
      mimeType
      snotNull
      false
      sinterpretationType
      Self
      sattributeTemplate
      false
      schildsAttributeTemplate
      false
      svarScope
      Local
      sisSynchronized
      false
      sthrowException
      true
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdisableGlobalContext
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.ActionUtil/@GetString
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      getMimeType
      @/@StringBody/@actions/@getCharset
      sname
      getCharset
      sattributeName
      charset
      snotNull
      false
      sinterpretationType
      Self
      sattributeTemplate
      false
      schildsAttributeTemplate
      false
      svarScope
      Local
      sisSynchronized
      false
      sthrowException
      true
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdisableGlobalContext
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.ActionUtil/@GetString
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      getCharset
      @/@StringBody/@actions/@getText
      sname
      getText
      sattributeName
      text
      snotNull
      false
      sinterpretationType
      Self
      sattributeTemplate
      false
      schildsAttributeTemplate
      false
      svarScope
      Local
      sisSynchronized
      false
      sthrowException
      true
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdisableGlobalContext
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.ActionUtil/@GetString
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      getText
    @/@StringBody/@name
    sname
    name
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    name
    @/@StringBody/@label
    sname
    label
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    label
    @/@StringBody/@mimeType
    sname
    mimeType
    sshowLabel
    true
    slabelAlign
    right
    slabelVAlign
    baseline
    smodifier
    public
    sreadOnly
    false
    sdefault
    text/plain
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    mimeType
    @/@StringBody/@charset
    sname
    charset
    sshowLabel
    true
    slabelAlign
    right
    slabelVAlign
    baseline
    smodifier
    public
    sreadOnly
    false
    sdefault
    utf-8
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    charset
    @/@StringBody/@text
    sname
    text
    sinputtype
    textarea
    scolspan
    2
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    text
