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 VOMSServerInfoStoreListenerThe listener that will be notified of interesting store eventsprivate VOMSESLookupStrategyTheVOMSESLookupStrategythat will be used to lookup vomses informationprivate VOMSESParserThe 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 theDefaultVOMSServerInfoStoreprivate voidlookupStrategy(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
-
Field Details
-
vomsesPaths
A list of paths where vomses information will be looked for -
lookupStrategy
TheVOMSESLookupStrategythat 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 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
-
buildLookupStrategy
private void buildLookupStrategy() -
build
Builds theDefaultVOMSServerInfoStore- Returns:
- a
DefaultVOMSServerInfoStoreconfigured as required by this builder
-