Interface ProfileIdentificationMethod
- All Known Implementing Classes:
HttpRequestAttributeProfileIdentificationMethod
,HttpRequestHeaderProfileIdentificationMethod
,HttpRequestSessionSecretProfileIdentificationMethod
,ResourceProfileIdentificationMethod
,SessionProfileIdentificationMethod
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ProfileIdentificationMethod
The defaultProfileIdentificationMethod
, which simply throws an instance ofNotFoundException
. -
Method Summary
-
Field Details
-
UNIDENTIFIED
The defaultProfileIdentificationMethod
, which simply throws an instance ofNotFoundException
.
-
-
Method Details
-
attempt
Attempts to identify the profile. If this process fails, then this must return an object equivalent toOptional.empty()
. Additional methods may be attempted until all possible methods are exhausted or a suitableProfile
is found.- Returns:
- the
Profile
, never null
-