Class DefaultVOMSServerInfoStore.Builder
java.lang.Object
org.italiangrid.voms.request.impl.DefaultVOMSServerInfoStore.Builder
- Enclosing class:
DefaultVOMSServerInfoStore
Creates a
DefaultVOMSServerInfoStore
. The
DefaultVOMSServerInfoStore
parameters can be set with the
appropriate methods. Example:
{ @code VOMSServerInfoStore serverInfoStore = new DefaultVOMSServerInfoStore.Builder() .storeListener(storeListener).vomsesPaths(vomsesLocations).build(); };
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate VOMSServerInfoStoreListener
The listener that will be notified of interesting store eventsprivate VOMSESLookupStrategy
TheVOMSESLookupStrategy
that will be used to lookup vomses informationprivate VOMSESParser
The parser implementation used to parse VOMSES filesA list of paths where vomses information will be looked for -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds theDefaultVOMSServerInfoStore
private void
lookupStrategy
(VOMSESLookupStrategy strategy) Sets theVOMSESLookupStrategy
that will be used to lookup vomses information for theDefaultVOMSServerInfoStore
that this builder is creatingSets theVOMSServerInfoStoreListener
that will receive store-related notifications for theDefaultVOMSServerInfoStore
that this builder is creatingSets theVOMSESParser
implementation that will be used to parse vomses filesvomsesPaths
(List<String> paths) Sets a list of paths where vomses files will be looked up by theDefaultVOMSServerInfoStore
that this builder is creating
-
Field Details
-
vomsesPaths
A list of paths where vomses information will be looked for -
lookupStrategy
TheVOMSESLookupStrategy
that will be used to lookup vomses information -
listener
The listener that will be notified of interesting store events -
vomsesParser
The parser implementation used to parse VOMSES files
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lookupStrategy
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
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
Sets theVOMSESParser
implementation that will be used to parse vomses files- Parameters:
p
- the parser- Returns:
- this
DefaultVOMSServerInfoStore.Builder
instance
-
vomsesPaths
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
Builds theDefaultVOMSServerInfoStore
- Returns:
- a
DefaultVOMSServerInfoStore
configured as required by this builder
-