Class AbstractRequestContext<T>
java.lang.Object
org.apache.commons.fileupload2.core.AbstractRequestContext<T>
- Type Parameters:
- T- The request type.
- All Implemented Interfaces:
- RequestContext
Abstracts a RequestContext for implementations.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractRequestContext(Function<String, String> contentLengthString, LongSupplier contentLengthDefault, T request) Constructs a new instance.
- 
Method SummaryModifier and TypeMethodDescriptionlongGets the content length of the request.Gets the request.booleanTests whether the Request of typemultipart/related?toString()Returns a string representation of this object.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.commons.fileupload2.core.RequestContextgetCharacterEncoding, getCharset, getContentType, getInputStream
- 
Constructor Details- 
AbstractRequestContextprotected AbstractRequestContext(Function<String, String> contentLengthString, LongSupplier contentLengthDefault, T request) Constructs a new instance.- Parameters:
- contentLengthString- How to get the content length string.
- contentLengthDefault- How to get the content length default.
- request- The request.
 
 
- 
- 
Method Details- 
getContentLengthGets the content length of the request.- Specified by:
- getContentLengthin interface- RequestContext
- Returns:
- The content length of the request.
 
- 
getRequestGets the request.- Returns:
- the request.
 
- 
isMultipartRelatedTests whether the Request of typemultipart/related?- Specified by:
- isMultipartRelatedin interface- RequestContext
- Returns:
- whether the Request is of type multipart/related
- Since:
- 2.0.0
 
- 
toStringReturns a string representation of this object.
 
-