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