public abstract static class SessionProxy.Builder
extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract SessionProxy |
build()
Builds a store session proxy.
|
protected String |
getClientName()
Gets the client name.
|
protected SessionClientContext |
getContext()
Gets the context.
|
protected Optional<SessionProxy.Listener> |
getListener()
Gets the listener.
|
protected Optional<LoginInfo> |
getLoginInfo()
Gets the login info.
|
protected boolean |
isAutoconnect()
Gets the autoconnect indicator.
|
SessionProxy.Builder |
setAutoconnect(boolean autoconnect)
Sets the autoconnect indicator.
|
SessionProxy.Builder |
setClientLogger(Logger clientLogger)
Sets the client logger.
|
SessionProxy.Builder |
setClientName(String clientName)
Sets the client name.
|
SessionProxy.Builder |
setConfigProperties(KeyedGroups configProperties)
Sets the config properties.
|
SessionProxy.Builder |
setListener(SessionProxy.Listener listener)
Sets the listener.
|
SessionProxy.Builder |
setLoginInfo(LoginInfo loginInfo)
Sets the login informations.
|
SessionProxy.Builder |
setLoginPassword(Optional<char[]> loginPassword)
Sets the login password.
|
SessionProxy.Builder |
setLoginUser(Optional<String> loginUser)
Sets the login user.
|
SessionProxy.Builder |
setRegistryEntry(RegistryEntry registryEntry)
Sets the registry entry.
|
SessionProxy.Builder |
setSecurityProperties(KeyedGroups securityProperties)
Sets the security properties.
|
protected boolean |
setUp()
Sets up for the build.
|
@Nullable @CheckReturnValue public abstract SessionProxy build()
@Nonnull public SessionProxy.Builder setAutoconnect(boolean autoconnect)
autoconnect
- The autoconnect indicator.@Nonnull public SessionProxy.Builder setClientLogger(@Nonnull Logger clientLogger)
clientLogger
- The client logger.@Nonnull public SessionProxy.Builder setClientName(@Nonnull String clientName)
clientName
- The client name.@Nonnull public SessionProxy.Builder setConfigProperties(@Nonnull KeyedGroups configProperties)
configProperties
- The config properties.@Nonnull public SessionProxy.Builder setListener(@Nonnull SessionProxy.Listener listener)
listener
- The listener.@Nonnull public SessionProxy.Builder setLoginInfo(@Nonnull LoginInfo loginInfo)
loginInfo
- The login informations.@Nonnull public SessionProxy.Builder setLoginPassword(@Nonnull Optional<char[]> loginPassword)
loginPassword
- The optional login password.@Nonnull public SessionProxy.Builder setLoginUser(@Nonnull Optional<String> loginUser)
loginUser
- The optional login user.@Nonnull public SessionProxy.Builder setRegistryEntry(@Nonnull RegistryEntry registryEntry)
registryEntry
- The registry entry.@Nonnull public SessionProxy.Builder setSecurityProperties(@Nonnull KeyedGroups securityProperties)
securityProperties
- The security properties.@Nonnull @CheckReturnValue protected String getClientName()
@Nonnull @CheckReturnValue protected SessionClientContext getContext()
@Nonnull @CheckReturnValue protected Optional<SessionProxy.Listener> getListener()
@Nonnull @CheckReturnValue protected Optional<LoginInfo> getLoginInfo()
@CheckReturnValue protected boolean isAutoconnect()
@CheckReturnValue protected boolean setUp()
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.