Class UserTag

java.lang.Object
co.featbit.commons.model.UserTag
All Implemented Interfaces:
Serializable

public class UserTag extends Object implements Serializable
an object provides the user tags used to instantiate the FBUser
See Also:
  • Field Details

  • Constructor Details

    • UserTag

      public UserTag(String requestProperty, String source, String userProperty)
      Parameters:
      requestProperty - tag name in http request
      source - tag source: header, query string, cookie or post body
      userProperty - tag name in FBUser
  • Method Details

    • of

      public static UserTag of(String requestProperty, String source, String userProperty)
      build a user tag
      Parameters:
      requestProperty - tag name in http request
      source - tag source: header, query string, cookie or post body
      userProperty - tag name in FBUser
      Returns:
      a User tag
    • getRequestProperty

      public String getRequestProperty()
      return the tag name in http request
      Returns:
      a string
    • getSource

      public String getSource()
      return the tag source
      Returns:
      a string
    • getUserProperty

      public String getUserProperty()
      return the property name of FBUser
      Returns:
      a string or null
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object