Package com.helger.web.scope.multipart
Class RequestWebScopeMultipart
- java.lang.Object
-
- com.helger.scope.AbstractScope
-
- com.helger.web.scope.impl.RequestWebScope
-
- com.helger.web.scope.multipart.RequestWebScopeMultipart
-
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,com.helger.datetime.domain.IHasCreationDateTime,com.helger.scope.IRequestScope,com.helger.scope.IScope,IRequestWebScope,IRequestWebScopeWithoutResponse,IWebScope
public class RequestWebScopeMultipart extends RequestWebScope
The default request web scope that also tries to parse multi part requests if the Content-Type matches .- Author:
- Philip Helger
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.helger.web.scope.impl.RequestWebScope
RequestWebScope.IParamValueCleanser, RequestWebScope.ParamContainer
-
-
Field Summary
-
Fields inherited from class com.helger.web.scope.impl.RequestWebScope
m_aHttpRequest, m_aHttpResponse
-
-
Constructor Summary
Constructors Constructor Description RequestWebScopeMultipart(jakarta.servlet.http.HttpServletRequest aHttpRequest, jakarta.servlet.http.HttpServletResponse aHttpResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.helger.commons.state.EChangeaddSpecialRequestParams()Callback method to add special parameters.booleanequals(Object o)inthashCode()booleanisMultipartRequest()StringtoString()-
Methods inherited from class com.helger.web.scope.impl.RequestWebScope
encodeRedirectURL, encodeURL, getContextAndServletPath, getContextPath, getCreationDateTime, getFullContextAndServletPath, getParamValueCleanser, getRequest, getRequestParamMap, getResponse, getWithoutForbiddenChars, getWithoutForbiddenCharsAndNormalized, headers, initScope, isFileBasedRequest, isForbiddenParamValueChar, params, postDestroy, setParamValueCleanser
-
Methods inherited from class com.helger.scope.AbstractScope
attrs, destroyScope, getID, isDestroyed, isInDestruction, isInPreDestruction, isValid, preDestroy, runAtomic, runAtomic
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.datetime.domain.IHasCreationDateTime
getCreationDate, getCreationTime, hasCreationDateTime, isCreatedAt
-
Methods inherited from interface com.helger.web.scope.IRequestWebScope
getOutputStream
-
Methods inherited from interface com.helger.web.scope.IRequestWebScopeWithoutResponse
areCookiesEnabled, encodeRedirectURL, encodeURL, getAuthType, getBrowserInfo, getCharacterEncoding, getCharset, getContentLength, getContentType, getCookies, getFullContextPath, getFullServerPath, getHttpMethod, getHttpVersion, getLocalAddr, getLocalName, getLocalPort, getMethod, getPathInfo, getPathTranslated, getPathWithinServlet, getPathWithinServletContext, getProtocol, getQueryString, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getRequestURIDecoded, getRequestURIEncoded, getRequestURLDecoded, getRequestURLEncoded, getScheme, getServerName, getServerPort, getServletPath, getSession, getSessionID, getURIDecoded, getURIEncoded, getURLDecoded, getURLEncoded, getUserAgent, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isUserInRole
-
-
-
-
Method Detail
-
addSpecialRequestParams
@OverrideOnDemand protected com.helger.commons.state.EChange addSpecialRequestParams()
Description copied from class:RequestWebScopeCallback method to add special parameters.- Overrides:
addSpecialRequestParamsin classRequestWebScope- Returns:
EChange.CHANGEDif some attributes were added,falseif not. If special attributes were added, existing attributes are kept and will not be overwritten with HTTP servlet request parameters!
-
isMultipartRequest
public final boolean isMultipartRequest()
- Returns:
trueif this request scope was parsed as multipart,falseif not.- Since:
- 9.1.1
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classRequestWebScope
-
hashCode
public int hashCode()
- Overrides:
hashCodein classRequestWebScope
-
toString
public String toString()
- Overrides:
toStringin classRequestWebScope
-
-