Class DefaultVOMSServerInfoStore.Builder
- java.lang.Object
-
- org.italiangrid.voms.request.impl.DefaultVOMSServerInfoStore.Builder
-
- Enclosing class:
- DefaultVOMSServerInfoStore
public static class DefaultVOMSServerInfoStore.Builder extends Object
Creates aDefaultVOMSServerInfoStore
. TheDefaultVOMSServerInfoStore
parameters can be set with the appropriate methods. Example:{ @code VOMSServerInfoStore serverInfoStore = new DefaultVOMSServerInfoStore.Builder() .storeListener(storeListener).vomsesPaths(vomsesLocations).build(); };
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultVOMSServerInfoStore
build()
Builds theDefaultVOMSServerInfoStore
DefaultVOMSServerInfoStore.Builder
lookupStrategy(VOMSESLookupStrategy strategy)
Sets theVOMSESLookupStrategy
that will be used to lookup vomses information for theDefaultVOMSServerInfoStore
that this builder is creatingDefaultVOMSServerInfoStore.Builder
storeListener(VOMSServerInfoStoreListener l)
Sets theVOMSServerInfoStoreListener
that will receive store-related notifications for theDefaultVOMSServerInfoStore
that this builder is creatingDefaultVOMSServerInfoStore.Builder
vomsesParser(VOMSESParser p)
Sets theVOMSESParser
implementation that will be used to parse vomses filesDefaultVOMSServerInfoStore.Builder
vomsesPaths(List<String> paths)
Sets a list of paths where vomses files will be looked up by theDefaultVOMSServerInfoStore
that this builder is creating
-
-
-
Method Detail
-
lookupStrategy
public DefaultVOMSServerInfoStore.Builder lookupStrategy(VOMSESLookupStrategy strategy)
Sets theVOMSESLookupStrategy
that will be used to lookup vomses information for theDefaultVOMSServerInfoStore
that this builder is creating- Parameters:
strategy
- The strategy that will be used to lookup vomses information- Returns:
- this
DefaultVOMSServerInfoStore.Builder
instance
-
storeListener
public DefaultVOMSServerInfoStore.Builder storeListener(VOMSServerInfoStoreListener l)
Sets theVOMSServerInfoStoreListener
that will receive store-related notifications for theDefaultVOMSServerInfoStore
that this builder is creating- Parameters:
l
- the listener- Returns:
- this
DefaultVOMSServerInfoStore.Builder
instance
-
vomsesParser
public DefaultVOMSServerInfoStore.Builder vomsesParser(VOMSESParser p)
Sets theVOMSESParser
implementation that will be used to parse vomses files- Parameters:
p
- the parser- Returns:
- this
DefaultVOMSServerInfoStore.Builder
instance
-
vomsesPaths
public DefaultVOMSServerInfoStore.Builder vomsesPaths(List<String> paths)
Sets a list of paths where vomses files will be looked up by theDefaultVOMSServerInfoStore
that this builder is creating- Parameters:
paths
- a list of paths- Returns:
- this
DefaultVOMSServerInfoStore.Builder
instance
-
build
public DefaultVOMSServerInfoStore build()
Builds theDefaultVOMSServerInfoStore
- Returns:
- a
DefaultVOMSServerInfoStore
configured as required by this builder
-
-