public class Servlet3MultiPartServletService extends DefaultServletService implements ServletService
ServletService
that supports MultiPart form content via request methods introduced in the Servlet3.0 spec
To support earlier servlet versions there is a version that uses the apache fileupload library instead
Note this will only work if the servlet has the @MultiPartConfig annotation or you are using tomcat with
the allowCasualMultipartParsing attribute set to true in the Context. Unfortunately adding the annotation to a servlet
breaks the old implementation as the parts will already have been removedMultiPartServletService
![]() |
![]() |
ALLOW_EXTERNAL_AUTH_FEATURE, ALLOW_INSECURE, ARG_TERRMINATOR, BASIC_AUTH_REALM_PARAM, conn, EXTERNAL_AUTH_ONLY_FEATURE, EXTERNAL_AUTH_VIA_LOGIN_FEATURE, NEED_CERTIFICATE_FEATURE, PARAMS_KEY_NAME, REDIRECT_TO_LOGIN_FEATURE
DEFAULT_PAYLOAD_PARAM
Constructor and Description |
---|
Servlet3MultiPartServletService(AppContext conn,
ServletContext ctx,
ServletRequest req,
ServletResponse res) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
makeParams(HttpServletRequest req)
create a Map of request parameters from scratch.
|
addCookie, addErrorProps, cleanup, decode, defaultCharset, encodePage, encodeURL, forward, getArgs, getAttributeNames, getContext, getParams, getRequest, getRequestAttribute, getSession, getSession, getType, getWebName, isComitted, logout, message, noCache, populateSession, redirect, redirect, requestAuthentication, requestLogin, setRequestAttribute, setTimeout, supportsMime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addErrorProps, defaultCharset, encodePage, encodeURL, forward, getArgs, getAttributeNames, getParams, getRequestAttribute, getStreamParam, getTextParameter, getWebName, isComitted, noCache, populateSession, redirect, redirect, requestAuthentication, requestLogin, setRequestAttribute, setTimeout
getType
cleanup
getContext
public Servlet3MultiPartServletService(AppContext conn, ServletContext ctx, ServletRequest req, ServletResponse res)
public java.util.Map<java.lang.String,java.lang.Object> makeParams(HttpServletRequest req)
DefaultServletService
makeParams
in class DefaultServletService