Modifier and Type | Field and Description |
---|---|
static String |
OUTPUT_DIR_NAME |
Constructor and Description |
---|
ProxyFilterProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Properties props)
This particular Processor doesn't require any configuration since its
purpose is so specific.
|
String |
getDirName()
Get the name of the directory where the output of the processor is
placed.
|
String |
getOutputFileName(String inputFileName)
Get the name that will be assigned to an output file, given the input
file name.
|
void |
process(File in,
File out)
Process the files in the input directory and place them in the output
directory.
|
void |
process(List<File> in,
File out)
Process the files in the given list and place them in the output
directory.
|
protected void |
processFile(File in,
File outputDir)
Process a given
File , placing the filtered version inside a
given directory. |
protected void |
processFileList(List<File> files,
File out)
|
protected boolean |
processLine(ReadWriter rw)
Use the provided reader to read in a line, strip away any proxy IPs from
the client details, and then write it to output using the provided writer.
|
boolean |
verifyConfiguration()
This particular Processor doesn't require any configuration since its
purpose is so specific.
|
public static final String OUTPUT_DIR_NAME
public void process(File in, File out) throws ProcessingException
Processor
process
in interface Processor
in
- The directory containing the input filesout
- The directory where output is placedProcessingException
- If an error occurs.gov.nasa.pds.report.processing.Processor.process()
public void process(List<File> in, File out) throws ProcessingException
Processor
process
in interface Processor
in
- A List
of File
objects
pointing to files that will be processedout
- The directory where output is placedProcessingException
- If an error occurs.gov.nasa.pds.report.processing.Processor.process()
public String getDirName()
Processor
getDirName
in interface Processor
gov.nasa.pds.report.processing.Processor.getDirName()
public String getOutputFileName(String inputFileName)
Processor
getOutputFileName
in interface Processor
inputFileName
- The name of the input filegov.nasa.pds.report.processing.Processor.getOutputFileName()
public void configure(Properties props) throws ProcessingException
configure
in interface Processor
props
- A Properties
containing the needed
configuration values.ProcessingException
- If the provided Properties do not contain
the needed configuration values.gov.nasa.pds.report.processing.Processor.configure()
public boolean verifyConfiguration()
verifyConfiguration
in interface Processor
gov.nasa.pds.report.processing.Processor.verifyConfiguration()
protected void processFileList(List<File> files, File out) throws ProcessingException
files
- A list of File objects pointing to log
files to be processed.out
- A File
object pointing to the
directory where output will be placed.ProcessingException
- If an error occurs.protected void processFile(File in, File outputDir) throws ProcessingException
File
, placing the filtered version inside a
given directory.in
- The File that will be processed.outputDir
- The directory where the output will be
placed, represented as a File
.ProcessingException
- If an error occurs while parsing the input
file or while writing output.protected boolean processLine(ReadWriter rw) throws ProcessingException
rw
- A ReadWriter
that is already
initialized to read and write from the input
and output files.ProcessingException
- If an error occurs.Copyright © 2010–2018 Planetary Data System. All rights reserved.