Class HttpRequestAttributeProfileIdentificationMethod
java.lang.Object
dev.getelements.elements.servlet.security.HttpRequestAttributeProfileIdentificationMethod
- All Implemented Interfaces:
ProfileIdentificationMethod
public class HttpRequestAttributeProfileIdentificationMethod
extends Object
implements ProfileIdentificationMethod
-
Field Summary
Fields inherited from interface dev.getelements.elements.sdk.model.security.ProfileIdentificationMethod
UNIDENTIFIED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattempt()Attempts to identify the profile.jakarta.servlet.http.HttpServletRequestvoidsetHttpServletRequest(jakarta.servlet.http.HttpServletRequest httpServletRequest)
-
Constructor Details
-
HttpRequestAttributeProfileIdentificationMethod
public HttpRequestAttributeProfileIdentificationMethod()
-
-
Method Details
-
attempt
Description copied from interface:ProfileIdentificationMethodAttempts 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 suitableProfileis found.- Specified by:
attemptin interfaceProfileIdentificationMethod- Returns:
- the
Profile, never null
-
getHttpServletRequest
public jakarta.servlet.http.HttpServletRequest getHttpServletRequest() -
setHttpServletRequest
@Inject public void setHttpServletRequest(jakarta.servlet.http.HttpServletRequest httpServletRequest)
-