Class DefaultVOMSServerInfoStore.Builder
- java.lang.Object
-
- org.italiangrid.voms.request.impl.DefaultVOMSServerInfoStore.Builder
-
- Enclosing class:
- DefaultVOMSServerInfoStore
public static class DefaultVOMSServerInfoStore.Builder extends java.lang.ObjectCreates aDefaultVOMSServerInfoStore. TheDefaultVOMSServerInfoStoreparameters 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 DefaultVOMSServerInfoStorebuild()Builds theDefaultVOMSServerInfoStoreDefaultVOMSServerInfoStore.BuilderlookupStrategy(VOMSESLookupStrategy strategy)Sets theVOMSESLookupStrategythat will be used to lookup vomses information for theDefaultVOMSServerInfoStorethat this builder is creatingDefaultVOMSServerInfoStore.BuilderstoreListener(VOMSServerInfoStoreListener l)Sets theVOMSServerInfoStoreListenerthat will receive store-related notifications for theDefaultVOMSServerInfoStorethat this builder is creatingDefaultVOMSServerInfoStore.BuildervomsesParser(VOMSESParser p)Sets theVOMSESParserimplementation that will be used to parse vomses filesDefaultVOMSServerInfoStore.BuildervomsesPaths(java.util.List<java.lang.String> paths)Sets a list of paths where vomses files will be looked up by theDefaultVOMSServerInfoStorethat this builder is creating
-
-
-
Method Detail
-
lookupStrategy
public DefaultVOMSServerInfoStore.Builder lookupStrategy(VOMSESLookupStrategy strategy)
Sets theVOMSESLookupStrategythat will be used to lookup vomses information for theDefaultVOMSServerInfoStorethat this builder is creating- Parameters:
strategy- The strategy that will be used to lookup vomses information- Returns:
- this
DefaultVOMSServerInfoStore.Builderinstance
-
storeListener
public DefaultVOMSServerInfoStore.Builder storeListener(VOMSServerInfoStoreListener l)
Sets theVOMSServerInfoStoreListenerthat will receive store-related notifications for theDefaultVOMSServerInfoStorethat this builder is creating- Parameters:
l- the listener- Returns:
- this
DefaultVOMSServerInfoStore.Builderinstance
-
vomsesParser
public DefaultVOMSServerInfoStore.Builder vomsesParser(VOMSESParser p)
Sets theVOMSESParserimplementation that will be used to parse vomses files- Parameters:
p- the parser- Returns:
- this
DefaultVOMSServerInfoStore.Builderinstance
-
vomsesPaths
public DefaultVOMSServerInfoStore.Builder vomsesPaths(java.util.List<java.lang.String> paths)
Sets a list of paths where vomses files will be looked up by theDefaultVOMSServerInfoStorethat this builder is creating- Parameters:
paths- a list of paths- Returns:
- this
DefaultVOMSServerInfoStore.Builderinstance
-
build
public DefaultVOMSServerInfoStore build()
Builds theDefaultVOMSServerInfoStore- Returns:
- a
DefaultVOMSServerInfoStoreconfigured as required by this builder
-
-