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();
};
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theDefaultVOMSServerInfoStorelookupStrategy(VOMSESLookupStrategy strategy) Sets theVOMSESLookupStrategythat will be used to lookup vomses information for theDefaultVOMSServerInfoStorethat this builder is creatingSets theVOMSServerInfoStoreListenerthat will receive store-related notifications for theDefaultVOMSServerInfoStorethat this builder is creatingSets theVOMSESParserimplementation that will be used to parse vomses filesvomsesPaths(List<String> paths) Sets a list of paths where vomses files will be looked up by theDefaultVOMSServerInfoStorethat this builder is creating
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lookupStrategy
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
Sets theVOMSServerInfoStoreListenerthat will receive store-related notifications for theDefaultVOMSServerInfoStorethat this builder is creating- Parameters:
l- the listener- Returns:
- this
DefaultVOMSServerInfoStore.Builderinstance
-
vomsesParser
Sets theVOMSESParserimplementation that will be used to parse vomses files- Parameters:
p- the parser- Returns:
- this
DefaultVOMSServerInfoStore.Builderinstance
-
vomsesPaths
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
Builds theDefaultVOMSServerInfoStore- Returns:
- a
DefaultVOMSServerInfoStoreconfigured as required by this builder
-