@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
/ *
* Copyright 2002 - 2023 the original author or authors .
* Copyright 2002 - 2024 the original author or authors .
*
* Licensed under the Apache License , Version 2 . 0 ( the "License" ) ;
* you may not use this file except in compliance with the License .
@ -45,7 +45,15 @@ import org.springframework.core.ResolvableType;
@@ -45,7 +45,15 @@ import org.springframework.core.ResolvableType;
import org.springframework.core.io.InputStreamResource ;
import org.springframework.core.io.Resource ;
import org.springframework.core.io.support.ResourceRegion ;
import org.springframework.http.* ;
import org.springframework.http.CacheControl ;
import org.springframework.http.ETag ;
import org.springframework.http.HttpHeaders ;
import org.springframework.http.HttpMethod ;
import org.springframework.http.HttpRange ;
import org.springframework.http.HttpStatus ;
import org.springframework.http.HttpStatusCode ;
import org.springframework.http.InvalidMediaTypeException ;
import org.springframework.http.MediaType ;
import org.springframework.http.converter.GenericHttpMessageConverter ;
import org.springframework.http.converter.HttpMessageConverter ;
import org.springframework.http.converter.SmartHttpMessageConverter ;
@ -158,9 +166,9 @@ final class DefaultEntityResponseBuilder<T> implements EntityResponse.Builder<T>
@@ -158,9 +166,9 @@ final class DefaultEntityResponseBuilder<T> implements EntityResponse.Builder<T>
}
@Override
public EntityResponse . Builder < T > eTag ( String et ag ) {
et ag = ETag . format ( et ag) ;
this . headers . setETag ( et ag ) ;
public EntityResponse . Builder < T > eTag ( String eT ag ) {
eT ag = ETag . quoteETagIfNecessary ( eT ag) ;
this . headers . setETag ( eT ag ) ;
return this ;
}