Filter@Deprecated public class MultiPartFilter extends java.lang.Object implements Filter
This class is ONLY needed if you cannot use the Servlet 3.0 APIs for configuring and handling multipart requests. See javax.servlet.http.HttpServletRequest.getParts(). If you use the new servlet apis then you should REMOVE this filter from your webapp.
This class decodes the multipart/form-data stream sent by a HTML form that uses a file input
item. Any files sent are stored to a temporary file and a File object added to the request
as an attribute. All other values are made available via the normal getParameter API and
the setCharacterEncoding mechanism is respected when converting bytes to Strings.
Init Parameters:
org.eclipse.jetty.server.Request.maxFormKeys or 1000) to protect
against DOS attacks by bad hash keys.
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
CONTENT_TYPE_SUFFIX |
Deprecated.
|
| Constructor | Description |
|---|---|
MultiPartFilter() |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
destroy() |
Deprecated.
|
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain) |
Deprecated.
|
void |
init(FilterConfig filterConfig) |
Deprecated.
|
public static final java.lang.String CONTENT_TYPE_SUFFIX
public void init(FilterConfig filterConfig) throws ServletException
init in interface FilterServletExceptionFilter.init(javax.servlet.FilterConfig)public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws java.io.IOException, ServletException
doFilter in interface Filterjava.io.IOExceptionServletExceptionFilter.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse, javax.servlet.FilterChain)public void destroy()
destroy in interface FilterFilter.destroy()Copyright © 1995–2018 Webtide. All rights reserved.