Interface ClientProduct

    • Method Detail

      • getAcceptedContentTypes

        java.lang.Iterable<com.globalmentor.net.ContentType> getAcceptedContentTypes()
        Returns:
        The content types accepted by the client.
      • isAcceptedContentType

        boolean isAcceptedContentType​(com.globalmentor.net.ContentType contentType)
        Determines if the client accepts the given content type. Wildcard content types are correctly matched.
        Parameters:
        contentType - The content type to check.
        Returns:
        true if the client accepts the given content type.
      • isAcceptedContentType

        boolean isAcceptedContentType​(com.globalmentor.net.ContentType contentType,
                                      boolean matchWildcards)
        Determines if the client accepts the given content type.
        Parameters:
        contentType - The content type to check.
        matchWildcards - true if the content type should be matched against wildcard sequences, as is normal.
        Returns:
        true if the client accepts the given content type.
      • getClientAcceptedLanguages

        java.lang.Iterable<java.util.Locale> getClientAcceptedLanguages()
        Returns:
        The languages accepted by the client.