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(); };
-
-
Field Summary
Fields Modifier and Type Field Description private VOMSServerInfoStoreListenerlistenerThe listener that will be notified of interesting store eventsprivate VOMSESLookupStrategylookupStrategyTheVOMSESLookupStrategythat will be used to lookup vomses informationprivate VOMSESParservomsesParserThe parser implementation used to parse VOMSES filesprivate java.util.List<java.lang.String>vomsesPathsA list of paths where vomses information will be looked for
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultVOMSServerInfoStorebuild()Builds theDefaultVOMSServerInfoStoreprivate voidbuildLookupStrategy()DefaultVOMSServerInfoStore.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
-
-
-
Field Detail
-
vomsesPaths
private java.util.List<java.lang.String> vomsesPaths
A list of paths where vomses information will be looked for
-
lookupStrategy
private VOMSESLookupStrategy lookupStrategy
TheVOMSESLookupStrategythat will be used to lookup vomses information
-
listener
private VOMSServerInfoStoreListener listener
The listener that will be notified of interesting store events
-
vomsesParser
private VOMSESParser vomsesParser
The parser implementation used to parse VOMSES files
-
-
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
-
buildLookupStrategy
private void buildLookupStrategy()
-
build
public DefaultVOMSServerInfoStore build()
Builds theDefaultVOMSServerInfoStore- Returns:
- a
DefaultVOMSServerInfoStoreconfigured as required by this builder
-
-