org.simpleframework.http.Request.getPart()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(225)

本文整理了Java中org.simpleframework.http.Request.getPart方法的一些代码示例,展示了Request.getPart的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getPart方法的具体详情如下:
包路径:org.simpleframework.http.Request
类名称:Request
方法名:getPart

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);
}

相关文章