T
- The typepublic abstract class AbstractFileEncoder<T extends io.micronaut.http.server.types.files.FileCustomizableResponseType> extends java.lang.Object implements ServletResponseEncoder<T>
Constructor and Description |
---|
AbstractFileEncoder() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
ifNotModified(T value,
ServletHttpRequest<?,? super java.lang.Object> request,
ServletHttpResponse<?,? super java.lang.Object> response)
Performs if not modified handling.
|
protected void |
setDateAndCacheHeaders(io.micronaut.http.MutableHttpResponse response,
long lastModified) |
protected io.micronaut.http.MutableHttpResponse<?> |
setDateHeader(io.micronaut.http.MutableHttpResponse<?> response) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
encode, getResponseType
protected io.micronaut.http.MutableHttpResponse<?> setDateHeader(io.micronaut.http.MutableHttpResponse<?> response)
response
- The Http responseprotected void setDateAndCacheHeaders(io.micronaut.http.MutableHttpResponse response, long lastModified)
response
- The Http responselastModified
- The last modifiedprotected boolean ifNotModified(@Nonnull T value, ServletHttpRequest<?,? super java.lang.Object> request, ServletHttpResponse<?,? super java.lang.Object> response)
value
- The valuerequest
- The requestresponse
- The response