本文整理了Java中org.simpleframework.http.Request.getPart
方法的一些代码示例,展示了Request.getPart
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getPart
方法的具体详情如下:
包路径:org.simpleframework.http.Request
类名称:Request
方法名:getPart
[英]This method is used to acquire a Part
from the HTTP request using a known name for the part. This is typically used when there is a file upload with a multipart POST request. All parts that are not files can be acquired as string values from the attachment object.
[中]此方法用于使用零件的已知名称从HTTP请求获取Part
。这通常在文件上传时使用多部分POST请求。所有不是文件的部分都可以作为字符串值从附件对象中获取。
代码示例来源:origin: ngallagher/simpleframework
/**
* This method is used to acquire a <code>Part</code> from the
* HTTP request using a known name for the part. This is typically
* used when there is a file upload with a multipart POST request.
* All parts that are not files can be acquired as string values
* from the attachment object.
*
* @param name this is the name of the part object to acquire
*
* @return the named part or null if the part does not exist
*/
public Part getPart(String name) {
return request.getPart(name);
}
代码示例来源:origin: org.simpleframework/simple-http
/**
* This method is used to acquire a <code>Part</code> from the
* HTTP request using a known name for the part. This is typically
* used when there is a file upload with a multipart POST request.
* All parts that are not files can be acquired as string values
* from the attachment object.
*
* @param name this is the name of the part object to acquire
*
* @return the named part or null if the part does not exist
*/
public Part getPart(String name) {
return request.getPart(name);
}
代码示例来源:origin: org.simpleframework/simple
/**
* This method is used to acquire a <code>Part</code> from the
* HTTP request using a known name for the part. This is typically
* used when there is a file upload with a multipart POST request.
* All parts that are not files can be acquired as string values
* from the attachment object.
*
* @param name this is the name of the part object to acquire
*
* @return the named part or null if the part does not exist
*/
public Part getPart(String name) {
return request.getPart(name);
}
内容来源于网络,如有侵权,请联系作者删除!