public Collection<Part> getParts()throws IOException, ServletException;
public Part getPart(String name)throws IOException, ServletException;
public <T extends HttpUpgradeHandler> T upgrade(Class<T> handlerClass) throws IOException, ServletException;
获取请求参数
1 2 3 4 5 6 7 8 9 10
// 读取url地址后的参数或者POST请求中application/x-www-form-urlencoded编码的实体 // 可以对编码内容自动完成参数的分解、提取以及解码 public String getParameter(String name); public Enumeration<String> getParameterNames(); public String[] getParameterValues(String name); public Map<String, String[]> getParameterMap();
// 获取流对象 public ServletInputStream getInputStream()throws IOException; public BufferedReader getReader()throws IOException;