Class NoopCacheEntrySerializer
- java.lang.Object
-
- org.apache.hc.client5.http.impl.cache.NoopCacheEntrySerializer
-
- All Implemented Interfaces:
HttpCacheEntrySerializer<HttpCacheStorageEntry>
@Contract(threading=STATELESS) public class NoopCacheEntrySerializer extends java.lang.Object implements HttpCacheEntrySerializer<HttpCacheStorageEntry>
HttpCacheEntrySerializerthat usesHttpCacheStorageEntryas its cache content representation.- Since:
- 5.0
-
-
Field Summary
Fields Modifier and Type Field Description static NoopCacheEntrySerializerINSTANCE
-
Constructor Summary
Constructors Constructor Description NoopCacheEntrySerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpCacheStorageEntrydeserialize(HttpCacheStorageEntry cacheEntry)Deserializes a cache entry from its serialized representation.HttpCacheStorageEntryserialize(HttpCacheStorageEntry cacheEntry)Serializes the given entry.
-
-
-
Field Detail
-
INSTANCE
public static final NoopCacheEntrySerializer INSTANCE
-
-
Method Detail
-
serialize
public HttpCacheStorageEntry serialize(HttpCacheStorageEntry cacheEntry) throws ResourceIOException
Description copied from interface:HttpCacheEntrySerializerSerializes the given entry.- Specified by:
serializein interfaceHttpCacheEntrySerializer<HttpCacheStorageEntry>- Parameters:
cacheEntry- cache entry- Returns:
- serialized representation of the cache entry
- Throws:
ResourceIOException
-
deserialize
public HttpCacheStorageEntry deserialize(HttpCacheStorageEntry cacheEntry) throws ResourceIOException
Description copied from interface:HttpCacheEntrySerializerDeserializes a cache entry from its serialized representation.- Specified by:
deserializein interfaceHttpCacheEntrySerializer<HttpCacheStorageEntry>- Parameters:
cacheEntry- serialized representation of the cache entry- Returns:
- cache entry
- Throws:
ResourceIOException
-
-