Class HttpRequestAttributeProfileIdentificationMethod

java.lang.Object
dev.getelements.elements.servlet.security.HttpRequestAttributeProfileIdentificationMethod
All Implemented Interfaces:
ProfileIdentificationMethod

public class HttpRequestAttributeProfileIdentificationMethod extends Object implements ProfileIdentificationMethod
  • Constructor Details

    • HttpRequestAttributeProfileIdentificationMethod

      public HttpRequestAttributeProfileIdentificationMethod()
  • Method Details

    • attempt

      public Optional<Profile> attempt()
      Description copied from interface: ProfileIdentificationMethod
      Attempts to identify the profile. If this process fails, then this must return an object equivalent to Optional.empty(). Additional methods may be attempted until all possible methods are exhausted or a suitable Profile is found.
      Specified by:
      attempt in interface ProfileIdentificationMethod
      Returns:
      the Profile, never null
    • getHttpServletRequest

      public jakarta.servlet.http.HttpServletRequest getHttpServletRequest()
    • setHttpServletRequest

      @Inject public void setHttpServletRequest(jakarta.servlet.http.HttpServletRequest httpServletRequest)