public class AccessRequester extends Object
Modifier and Type | Field and Description |
---|---|
static String |
UNAUTHENTICATED_USER |
static AccessRequester |
UNKNOWN |
Constructor and Description |
---|
AccessRequester(javax.servlet.http.HttpServletRequest request) |
AccessRequester(String userId,
String ipAddress,
String channel) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
com.google.common.base.Optional<String> |
getChannel() |
com.google.common.base.Optional<String> |
getIpAddress() |
com.google.common.base.Optional<String> |
getUserId() |
int |
hashCode() |
static AccessRequester |
of(javax.servlet.http.HttpServletRequest request) |
static AccessRequester |
ofCurrentRequest() |
String |
toString() |
public static final AccessRequester UNKNOWN
public static final String UNAUTHENTICATED_USER
public AccessRequester(@NonNull javax.servlet.http.HttpServletRequest request)
@ConstructorProperties(value={"userId","ipAddress","channel"}) @Generated(value="lombok") public AccessRequester(@Nullable String userId, @Nullable String ipAddress, @Nullable String channel)
public com.google.common.base.Optional<String> getUserId()
public com.google.common.base.Optional<String> getIpAddress()
public com.google.common.base.Optional<String> getChannel()
@Contract(value="null -> null") @Nullable public static AccessRequester of(@Nullable javax.servlet.http.HttpServletRequest request) throws IllegalArgumentException
IllegalArgumentException
@Nullable public static AccessRequester ofCurrentRequest() throws IllegalArgumentException
IllegalArgumentException
@Generated(value="lombok") public boolean equals(Object o)
@Generated(value="lombok") public int hashCode()
@Generated(value="lombok") public String toString()
Copyright © 2017 SAP SE. All rights reserved.