public class Representation<E> extends Object implements Serializable
| Constructor and Description |
|---|
Representation(CacheControl cacheControl,
Integer contentLength,
String contentType,
Long lastModified,
String entityTag,
E entity) |
Representation(URL url,
CacheControl cacheControl,
Integer contentLength,
String contentType,
Long lastModified,
String entityTag,
E entity) |
Representation(URLConnection urlConnection,
E entity) |
| Modifier and Type | Method and Description |
|---|---|
CacheControl |
getCacheControl() |
Integer |
getContentLength() |
String |
getContentType() |
E |
getEntity() |
String |
getEntityTag() |
Long |
getLastModified() |
Long |
getMaxAgeOrNull() |
URL |
getUrl() |
boolean |
hasBeenModified(long currentModificationTime) |
boolean |
hasEntityTagChanged(String currentEtag) |
boolean |
isExpired(long storedOn) |
boolean |
isExpired(long storedOn,
long maxAge) |
boolean |
isNoCache() |
boolean |
isNoStore() |
boolean |
mustRevalidate() |
String |
toString() |
public Representation(CacheControl cacheControl, Integer contentLength, String contentType, Long lastModified, String entityTag, E entity)
public Representation(URL url, CacheControl cacheControl, Integer contentLength, String contentType, Long lastModified, String entityTag, E entity)
public Representation(URLConnection urlConnection, E entity)
public URL getUrl()
public CacheControl getCacheControl()
public Integer getContentLength()
public String getContentType()
public Long getLastModified()
public String getEntityTag()
public E getEntity()
public Long getMaxAgeOrNull()
public boolean isExpired(long storedOn,
long maxAge)
public boolean isExpired(long storedOn)
public boolean isNoStore()
public boolean isNoCache()
public boolean mustRevalidate()
public boolean hasEntityTagChanged(String currentEtag)
public boolean hasBeenModified(long currentModificationTime)
Copyright © 2023 jUPnP.org. All rights reserved.