public class AIServiceContextBuilder extends Object
AIServiceContext to be used in AIDataService| Constructor and Description |
|---|
AIServiceContextBuilder()
Default builder constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AIServiceContext |
build()
Build new context instance
|
static AIServiceContext |
buildFromSessionId(String sessionId) |
AIServiceContextBuilder |
generateSessionId()
Replace current session id with some new random value
|
String |
getSessionId() |
TimeZone |
getTimeZone() |
AIServiceContextBuilder |
setSessionId(String sessionId)
Replace current session id with given value
|
AIServiceContextBuilder |
setSessionId(TimeZone timeZone)
Deprecated.
|
AIServiceContextBuilder |
setTimeZone(TimeZone timeZone)
Replace current time zone with given value
|
public AIServiceContextBuilder()
public String getSessionId()
null if value was not definedpublic AIServiceContextBuilder setSessionId(String sessionId)
sessionId - Unique string session id. Cannot be nullIllegalArgumentException - Thrown if sessionId parameter value is nullpublic AIServiceContextBuilder generateSessionId()
public TimeZone getTimeZone()
null if value was not definedpublic AIServiceContextBuilder setTimeZone(TimeZone timeZone)
timeZone - Time zone value. May be null@Deprecated public AIServiceContextBuilder setSessionId(TimeZone timeZone)
AIServiceContextBuilder.setTimeZone method instedpublic AIServiceContext build()
IllegalStateException - Thrown if session id was not definedpublic static AIServiceContext buildFromSessionId(String sessionId)
Copyright © 2017. All rights reserved.