public static class ActiveWebSession.Builder extends DeviceSession.Builder
ActiveWebSession
.Modifier and Type | Field and Description |
---|---|
protected String |
browser |
protected String |
os |
protected String |
userAgent |
Modifier | Constructor and Description |
---|---|
protected |
Builder(String sessionId,
String userAgent,
String os,
String browser) |
Modifier and Type | Method and Description |
---|---|
ActiveWebSession |
build()
Builds an instance of
ActiveWebSession configured with this
builder's values |
ActiveWebSession.Builder |
withCountry(String country)
Set value for optional field.
|
ActiveWebSession.Builder |
withCreated(Date created)
Set value for optional field.
|
ActiveWebSession.Builder |
withIpAddress(String ipAddress)
Set value for optional field.
|
ActiveWebSession.Builder |
withUpdated(Date updated)
Set value for optional field.
|
protected final String userAgent
protected final String os
protected final String browser
public ActiveWebSession.Builder withIpAddress(String ipAddress)
withIpAddress
in class DeviceSession.Builder
ipAddress
- The IP address of the last activity from this
session.public ActiveWebSession.Builder withCountry(String country)
withCountry
in class DeviceSession.Builder
country
- The country from which the last activity from this
session was made.public ActiveWebSession.Builder withCreated(Date created)
withCreated
in class DeviceSession.Builder
created
- The time this session was created.public ActiveWebSession.Builder withUpdated(Date updated)
withUpdated
in class DeviceSession.Builder
updated
- The time of the last activity from this session.public ActiveWebSession build()
ActiveWebSession
configured with this
builder's valuesbuild
in class DeviceSession.Builder
ActiveWebSession