public class TusServletRequest
extends javax.servlet.http.HttpServletRequestWrapper
| Constructor and Description |
|---|
TusServletRequest(javax.servlet.http.HttpServletRequest request)
Constructs a request object wrapping the given request.
|
TusServletRequest(javax.servlet.http.HttpServletRequest request,
boolean isChunkedTransferDecodingEnabled)
Constructs a request object wrapping the given request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProcessor(TusExtension processor) |
long |
getBytesRead() |
String |
getCalculatedChecksum(ChecksumAlgorithm algorithm) |
InputStream |
getContentInputStream() |
Set<ChecksumAlgorithm> |
getEnabledChecksums()
Get the set of checksum algorithms that are actively calculated within this request
|
String |
getHeader(String name) |
boolean |
hasCalculatedChecksum() |
boolean |
isProcessedBy(TusExtension processor) |
authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout, upgradegetAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsyncpublic TusServletRequest(javax.servlet.http.HttpServletRequest request,
boolean isChunkedTransferDecodingEnabled)
request - The upload request we need to wrapisChunkedTransferDecodingEnabled - Should this request wrapper decode a chunked input streamIllegalArgumentException - if the request is nullpublic TusServletRequest(javax.servlet.http.HttpServletRequest request)
request - The upload request we need to wrapIllegalArgumentException - if the request is nullpublic InputStream getContentInputStream() throws IOException
IOExceptionpublic long getBytesRead()
public boolean hasCalculatedChecksum()
public String getCalculatedChecksum(ChecksumAlgorithm algorithm)
public Set<ChecksumAlgorithm> getEnabledChecksums()
public String getHeader(String name)
getHeader in interface javax.servlet.http.HttpServletRequestgetHeader in class javax.servlet.http.HttpServletRequestWrapperpublic boolean isProcessedBy(TusExtension processor)
public void addProcessor(TusExtension processor)
Copyright © 2023. All rights reserved.