Class DefaultVOMSServerInfoStore.Builder
- java.lang.Object
-
- org.italiangrid.voms.request.impl.DefaultVOMSServerInfoStore.Builder
-
- Enclosing class:
- DefaultVOMSServerInfoStore
public static class DefaultVOMSServerInfoStore.Builder extends java.lang.Object
Creates aDefaultVOMSServerInfoStore
. TheDefaultVOMSServerInfoStore
parameters 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 VOMSServerInfoStoreListener
listener
The listener that will be notified of interesting store eventsprivate VOMSESLookupStrategy
lookupStrategy
TheVOMSESLookupStrategy
that will be used to lookup vomses informationprivate VOMSESParser
vomsesParser
The parser implementation used to parse VOMSES filesprivate java.util.List<java.lang.String>
vomsesPaths
A 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 DefaultVOMSServerInfoStore
build()
Builds theDefaultVOMSServerInfoStore
private void
buildLookupStrategy()
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(java.util.List<java.lang.String> paths)
Sets a list of paths where vomses files will be looked up by theDefaultVOMSServerInfoStore
that 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
TheVOMSESLookupStrategy
that 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 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(java.util.List<java.lang.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
-
buildLookupStrategy
private void buildLookupStrategy()
-
build
public DefaultVOMSServerInfoStore build()
Builds theDefaultVOMSServerInfoStore
- Returns:
- a
DefaultVOMSServerInfoStore
configured as required by this builder
-
-