public final class SecureRequest extends BasicRequest
Constructor and Description |
---|
SecureRequest()
Creates a new SecureRequest object with all options set to their default
values.
|
SecureRequest(java.io.File file)
Creates a new SecureRequest object with option values initialized by
reading the File provided.
|
SecureRequest(OptionSet optionset)
Creates a new SecureRequest object with all options set to the values in
optionset.
|
Modifier and Type | Method and Description |
---|---|
void |
callPDFBox(net.bitform.core.scrubutils.ScrubContext scrubContext) |
void |
execute()
Executes the scrub request.
|
java.io.File[] |
getNamespaceBlacklistFile() |
SecureResponse |
getResponse()
Gets the response to the most recently executed request.
|
java.io.File[] |
getWhitelistNamespacePrefixFiles() |
static void |
interruptAll()
Interrupts all threads that are currently running the execute method of a SecureRequest.
|
static void |
interruptMonitor()
Shuts down all running SecureRequests (just like calling interruptAll) plus the monitor
thread and all child processes.
|
void |
setNamespaceBlacklistFile(java.io.File[] namespaceBlacklistFile) |
void |
setWhitelistNamespacePrefixFiles(java.io.File[] whitelistNamespacePrefixFiles) |
java.util.logging.Handler |
updateXMLFileHandler(java.util.logging.Logger logger) |
addTo, clearAllOptions, clearOption, compare, copyTo, copyTo, createBasedOn, equals, getOption, getOption, getOption, getOption, getOption, getOption, getOption, getOption, getOption, getOption, getOption, getOption, getOption, getOption, getOption, getOption, getOption, getOption, getOption, getOptionEnumAsInt, getOptionFileFormatAsInt, getOptionFileFormatListAsIntArray, getXMLHandler, isSet, newEmptyOptionSet, readXML, registerOptions, setOption, setOption, setOption, setOption, setOption, setOption, setOption, setOption, setOption, setOption, setOption, setOption, setOption, setOption, setOption, setOption, setOption, setOption, setOption, setOption, setOption, setOption, setOption, setOption, setOption, setOption, setOption, setOption, setOption, setOption, setOption, setOption, writeXML, writeXML, writeXML
public SecureRequest()
public SecureRequest(OptionSet optionset)
Since SecureRequest
is itself an OptionSet
single SecureRequest
can be initialized with a set of
options and then more SecureRequest
objects with identical
options can be created using this constructor with first
SecureRequest
as the parameter. This patten is espcially useful
for creating a series of SecureRequest
objects for use in a
series of worker threads.
optionset
- the options values used to initialize the new requestpublic SecureRequest(java.io.File file)
file
- An XML file previously written using the writeXML method.
If the file cannot be found or is malformed, the request
will still be created but all options will have their
default values.public java.io.File[] getWhitelistNamespacePrefixFiles()
public void setWhitelistNamespacePrefixFiles(java.io.File[] whitelistNamespacePrefixFiles)
public java.io.File[] getNamespaceBlacklistFile()
public void setNamespaceBlacklistFile(java.io.File[] namespaceBlacklistFile)
public static void interruptAll()
public static void interruptMonitor()
public java.util.logging.Handler updateXMLFileHandler(java.util.logging.Logger logger) throws java.lang.SecurityException, java.io.IOException
java.lang.SecurityException
java.io.IOException
public void callPDFBox(net.bitform.core.scrubutils.ScrubContext scrubContext) throws java.io.IOException
java.io.IOException
public void execute() throws java.io.IOException
execute
in class BasicRequest
java.io.IOException
public SecureResponse getResponse()
Copyright © 2021 Oracle. All right reserved. Restricted and confidential property of Oracle. Solely for use by recipent under agreement forbidding disclosure.