Class TargetConfiguration
java.lang.Object
de.gustavblass.nginx.ipguard4j.configuration.TargetConfiguration
Represents a collection of output files to which the IP addresses shall be written in the same format.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable StringThe format for each IP address (each in a separate line) in the output files.The output files to which the IP addresses shall be written. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetFiles(@NonNull Collection<File> files) Updates thetargetFiles.voidUpdates theformat.
-
Field Details
-
format
The format for each IP address (each in a separate line) in the output files. Possible values:
- IpListAggregator#DEFAULT_IP_ADDRESS_FORMATTERS
- formats allowed by
CustomIpAddressFormatter
-
targetFiles
-
-
Constructor Details
-
TargetConfiguration
public TargetConfiguration()
-
-
Method Details
-
getFormat
-
getTargetFiles
- Returns:
- A shallow copy of the
targetFiles.
-
setFormat
-
setFiles
Updates thetargetFiles.- Parameters:
files- The new output files which replace the current ones.
-