接口 javax.servlet.http.Part
的使用

使用 Part 的软件包
javax.servlet.http The javax.servlet.http package contains a number of classes and interfaces that describe and define the contracts between a servlet class running under the HTTP protocol and the runtime environment provided for an instance of such a class by a conforming servlet container. 
org.eclipse.jetty.server   
org.eclipse.jetty.util   
 

javax.servlet.httpPart 的使用
 

返回 Partjavax.servlet.http 中的方法
 Part HttpServletRequestWrapper.getPart(String name)
          The default behavior of this method is to call getPart on the wrapped request object.
 Part HttpServletRequest.getPart(String name)
          Gets the Part with the given name.
 

返回变量类型为 Part 的类型的 javax.servlet.http 中的方法
 Collection<Part> HttpServletRequestWrapper.getParts()
          The default behavior of this method is to call getParts on the wrapped request object.
 Collection<Part> HttpServletRequest.getParts()
          Gets all the Part components of this request, provided that it is of type multipart/form-data.
 

org.eclipse.jetty.serverPart 的使用
 

返回 Partorg.eclipse.jetty.server 中的方法
 Part ServletRequestHttpWrapper.getPart(String name)
           
 Part Request.getPart(String name)
           
 

返回变量类型为 Part 的类型的 org.eclipse.jetty.server 中的方法
 Collection<Part> ServletRequestHttpWrapper.getParts()
           
 Collection<Part> Request.getParts()
           
 

org.eclipse.jetty.utilPart 的使用
 

实现 Partorg.eclipse.jetty.util 中的类
 class MultiPartInputStream.MultiPart
           
 

返回 Partorg.eclipse.jetty.util 中的方法
 Part MultiPartInputStream.getPart(String name)
          Get the named Part.
 

返回变量类型为 Part 的类型的 org.eclipse.jetty.util 中的方法
 Collection<Part> MultiPartInputStream.getParsedParts()
          Get the already parsed parts.
 Collection<Part> MultiPartInputStream.getParts()
          Parse, if necessary, the multipart data and return the list of Parts.
 



Copyright © 2013. All Rights Reserved.