Package io.guise.framework.platform
Interface ClientProduct
-
- All Superinterfaces:
Product
- All Known Subinterfaces:
WebUserAgentProduct
- All Known Implementing Classes:
DefaultWebUserAgentProduct
public interface ClientProduct extends Product
The identification of the client software accessing Guise on the platform.- Author:
- Garret Wilson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Iterable<com.globalmentor.net.ContentType>
getAcceptedContentTypes()
java.lang.Iterable<java.util.Locale>
getClientAcceptedLanguages()
boolean
isAcceptedContentType(com.globalmentor.net.ContentType contentType)
Determines if the client accepts the given content type.boolean
isAcceptedContentType(com.globalmentor.net.ContentType contentType, boolean matchWildcards)
Determines if the client accepts the given content type.-
Methods inherited from interface io.guise.framework.platform.Product
getID, getName, getVersion, getVersionNumber, getVersionNumbers
-
-
-
-
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.
-
-