Package dev.gmetal.metador

The main package of the metador library, with the library's public interface.

Types

Clock
Link copied to clipboard
fun fun interface Clock
An entity that can return a Unix timestamp of the current date
EmptyResponseException
Link copied to clipboard
class EmptyResponseException : NetworkException
HtmlMetaExtractor
Link copied to clipboard
class HtmlMetaExtractor : ResourceParserDelegate
Parses an HTML document and produces a Map<String, String> containing the supported name-value pairs
Metador
Link copied to clipboard
class Metador
Metador provides an easy-to-use utility class for retrieving HTML-metadata information from a remote resource (HTML document).
NetworkException
Link copied to clipboard
sealed class NetworkException : RuntimeException
OkHttp3ResourceRetriever
Link copied to clipboard
class OkHttp3ResourceRetriever(retrieverDispatcher: CoroutineDispatcher) : ResourceRetriever
ResourceNotFoundException
Link copied to clipboard
object ResourceNotFoundException : NetworkException
ResourceParser
Link copied to clipboard
class ResourceParser(parserDispatcher: CoroutineDispatcher)
ResourceParserDelegate
Link copied to clipboard
fun fun interface ResourceParserDelegate
ResourceRetriever
Link copied to clipboard
interface ResourceRetriever
ServerErrorException
Link copied to clipboard
class ServerErrorException(httpCode: Int) : NetworkException
UnknownNetworkException
Link copied to clipboard
class UnknownNetworkException(innerException: Exception?) : NetworkException

Properties

DEFAULT_MAX_AGE_CACHE_SECONDS
Link copied to clipboard
const val DEFAULT_MAX_AGE_CACHE_SECONDS: Int
The default response cache age, which is 3600 seconds (1 hour)
DEFAULT_MAX_RESPONSE_CACHE_SIZE
Link copied to clipboard
const val DEFAULT_MAX_RESPONSE_CACHE_SIZE: Int = 100
DEFAULT_PHYSICAL_CACHE_SIZE_BYTES
Link copied to clipboard
const val DEFAULT_PHYSICAL_CACHE_SIZE_BYTES: Long
REQUEST_FRESH_COPY
Link copied to clipboard
const val REQUEST_FRESH_COPY: Int = 0