
org.cinchapi.quest.util.Requests.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quest-api Show documentation
Show all versions of quest-api Show documentation
Quest is a JVM framework for quickly defining both api endpoints and view controllers in a web application
The newest version!
???? 3 U org/cinchapi/quest/util/Requests java/lang/Object getClientIpAddress #(Lspark/Request;)Ljava/lang/String; Code
spark/Request
ip ()Ljava/lang/String;
java/net/InetAddress getByName *(Ljava/lang/String;)Ljava/net/InetAddress;
isAnyLocalAddress ()Z
isLoopbackAddress X-Forwarded-For
headers &(Ljava/lang/String;)Ljava/lang/String;
" $ # com/google/common/base/Strings % &
isNullOrEmpty (Ljava/lang/String;)Z ( java/lang/Exception LineNumberTable
StackMapTable , java/lang/String getClientUserAgent /
User-Agent 1 idk getClientFingerprint 4 java/lang/StringBuilder
3 6 7 8 ()V
: -
3 < = > append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
@
B D C com/google/common/hash/Hashing E F md5 '()Lcom/google/common/hash/HashFunction; H J I #com/google/common/hash/HashFunction K L hashUnencodedChars ;(Ljava/lang/CharSequence;)Lcom/google/common/hash/HashCode;
N P O com/google/common/hash/HashCode Q
toString
6
SourceFile
Requests.java 1 ? 5*? L+? M,? ?
,? ? *? ? !? *? ? +L? W+? / 2 ' ) &