java.lang.Object
com.maxmind.minfraud.request.Device.Builder
- Enclosing class:
- Device
Builder
creates instances of Device
from values set by the builder's
methods.-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()
Constructor for theDevice.Builder
classBuilder
(InetAddress ipAddress) Constructor for theDevice.Builder
class -
Method Summary
Modifier and TypeMethodDescriptionacceptLanguage
(String acceptLanguage) build()
ipAddress
(InetAddress ipAddress) sessionAge
(Double sessionAge)
-
Constructor Details
-
Builder
public Builder()Constructor for theDevice.Builder
class -
Builder
Constructor for theDevice.Builder
class- Parameters:
ipAddress
- The IP address associated with the device used by the customer in the transaction.
-
-
Method Details
-
userAgent
- Parameters:
ua
- The HTTP "User-Agent" header of the browser used in the transaction.- Returns:
- The builder object.
-
acceptLanguage
- Parameters:
acceptLanguage
- The HTTP "Accept-Language" header of the device used in the transaction.- Returns:
- The builder object.
-
ipAddress
- Parameters:
ipAddress
- The IP address associated with the device used by the customer in the transaction.- Returns:
- The builder object.
-
sessionAge
- Parameters:
sessionAge
- The number of seconds between the creation of the user's session and the time of the transaction. Note that session_age is not the duration of the current visit, but the time since the start of the first visit.- Returns:
- The builder object.
-
sessionId
- Parameters:
sessionId
- A string up to 255 characters in length. This is an ID which uniquely identifies a visitor's session on the site.- Returns:
- The builder object.
-
build
- Returns:
- An instance of
Device
created from the fields set on this builder.
-