Uses of Class
org.cdlib.mrt.utility.TException
Packages that use TException
Package
Description
-
Uses of TException in org.cdlib.mrt.cloud
Methods in org.cdlib.mrt.cloud that throw TExceptionModifier and TypeMethodDescriptionvoid
protected void
ManifestStr.addComponent
(FileComponent component) VersionData.addComponentFile
(int versionID, File versionDir, FileComponent component) int
VersionData.addComponentsList
(int versionID, File versionDir) protected void
ManifestStr.addObject()
protected void
VersionMap.addTest
(int versionID, int outVersionID) void
VersionMap.addVersion
(List<FileComponent> components) protected void
ManifestStr.addVersions()
int
VersionMap.buildAddManifest
(String fileURLS, int versionID, File addManifest) Create an add Manifest in File addManifestint
VersionData.buildContent()
static void
ManifestStr.buildManifest
(VersionMap versionMap, File outFile) static void
ManifestStr.buildManifest
(VersionMap versionMap, OutputStream outStream) int
VersionData.buildManifests()
static ManInfo
VersionMap.buildManInfo
(int versionID, DateState created, List<FileComponent> components) static VersionMap
ManifestSAX.buildMap
(InputStream inStream, LoggerInf logger) void
MatchMap.compare()
int
VersionData.copyContent
(String copyStorageBase, int copyNode, Identifier copyObjectID) VersionData.copyVersion
(StorageAddClient client, String copyStorageBase, int copyNode, Identifier copyObjectID, File versionManifest) void
VersionMap.deleteCurrent()
void
VersionMap.fillComponent
(FileComponent manifestComponent) VersionMap.getFileComponent
(int versionID, String fileID) static VersionMap
Get version map from manifext URLstatic ArrayList<FileComponent>
VersionMap.getMergeComponents
(List<FileComponent> updateComponents, List<FileComponent> currentComponents, String[] deleteList) VersionMap.getMergeInfo
(ManInfo update, String[] deleteList) VersionMap.getMergeInfoOriginal
(ManInfo update, String[] deleteList) static File
VersionMapUtil.getOutputFile
(File outDir, String fileID) static List<FileComponent>
VersionMapUtil.getVersion
(VersionMap map, int versionID) Get component information from version mapstatic int
VersionMapUtil.getVersionFiles
(VersionMap map, int versionID, String baseURL, File outputDir) Fill in the outputDir file directory with the content from this versionstatic VersionMap
VersionMap.getVersionMap
(String manifestXMLUrlS) Get version map from manifext URLVersionMap.getVersionStats
(int versionID) boolean
VersionMap.isMatch
(VersionMap testMap) boolean
VersionMap.isMatch
(FileComponent matchComponent, FileComponent manifestComponent) boolean
VersionMap.isMatchComponents
(List<FileComponent> components, List<FileComponent> tcomponents) boolean
VersionMap.isThisSubset
(VersionMap testMap) Is testMap VersionMap a subset of this.versionMapstatic void
static void
ManifestSAX.mainOriginal
(String[] args) static void
ManifestSAX.mainTestBadMan
(String[] args) void
ManifestSAX.process
(InputStream input) void
VersionData.saveComponentContent
(int versionID, File componentFile, String id, String name) void
VersionMap.setCloudComponent
(FileComponent manifestComponent, boolean doFill) void
ManInfo.setComponents
(int versionID, List<FileComponent> componentList) protected void
VersionMap.stubFromManList
(ManInfo manInfo, int stubVersion) protected void
VersionMap.stubFromVersions
(int stubVersion) void
VersionMap.stubVersion
(int stubVersion) void
VersionMap.updateVersion
(List<FileComponent> components, String[] deleteList) protected void
VersionMap.validateManInfo
(ManInfo info) void
VersionMap.validateVersion()
Constructors in org.cdlib.mrt.cloud that throw TExceptionModifierConstructorDescriptionManifestSAX
(LoggerInf logger) ManifestStr
(VersionMap versionMap, File outFile) ManifestStr
(VersionMap versionMap, OutputStream outStream) MatchMap
(VersionMap mapOne, VersionMap mapTwo, LoggerInf logger) VersionData
(URL manifestXML, File outputDir, LoggerInf logger) VersionData
(VersionMap map, File outputDir, LoggerInf logger) VersionData
(Identifier objectID, String storageBase, int node, File outputDir, LoggerInf logger) VersionMap
(VersionMap inMap) VersionMap
(Identifier objectID, LoggerInf logger) -
Uses of TException in org.cdlib.mrt.core
Methods in org.cdlib.mrt.core that return TExceptionModifier and TypeMethodDescriptionComponentContent.makeGeneralTException
(LoggerInf logger, String msg, Exception ex) create TException and do appropriate loggerstatic TException
ValidateStorageCmdParms.setException
(String header) Methods in org.cdlib.mrt.core that throw TExceptionModifier and TypeMethodDescriptionvoid
FileComponent.addMessageDigest
(String digest, String algorithmS) Save a new MessageDigest for this fileStorageAddClient.addVersion
(String link, int nodeID, Identifier objectID, String localContext, String localID, String manifestS, String urlS, Long size, String type, String value, String formatType, int timeout, int retry) StorageAddClient.addVersion
(String link, String nodeIDS, String objectIDS, String localContext, String localID, String manifestS, String urlS, String validate, String formatType) void
ComponentContent.buildComponents
(Manifest manifest, InputStream manifestInputStream) From a post manifest InputStream Return a VersionContent objectstatic String
DataciteConvert.dataCite2dc
(String dataCite, LoggerInf logger) Convert DataCite format to standard dcstatic String
DC.dataCite2dc
(String dataCite, LoggerInf logger) Convert DataCite format to standard dcstatic void
protected Integer
Checkm.getCol
(Checkm.ColMap val) From column content type get column positionstatic String
Checkm.getColumns
(String header) static LinkedHashList
Build a LinkedHashList containing DC values extracted from METSstatic void
DC.getDCFromModsMets
(LinkedHashList<String, String> returnList, Document mets, LoggerInf logger) From a DOM METS containing MODS return list of DC valuesstatic String[]
ManifestRowCheckmAbs.getHeaders
(String outputProfile, String[] profiles, String[] columns) protected static int
ValidateStorageCmdParms.getInteger
(String header, String value) Convert String to numeric and throw exception if invalidCheckm.getLine
(FileComponent fileComponent) Build output manifest line from fileComponentManifestRowCheckmAbs.getLine()
ManifestRowInf.getLine()
Build a Manifest line for output to a manifest filestatic Manifest
Manifest.getManifest
(LoggerInf logger, String profile, ManifestRowAbs.ManifestType rowType) Manifest Factorystatic Manifest
Manifest.getManifest
(LoggerInf logger, ManifestRowAbs.ManifestType rowType) Manifest Factorystatic ManifestRowInf
ManifestRowAbs.getManifestRow
(ManifestRowAbs.ManifestType type, String outputProfile, LoggerInf logger) Based on ManifestRow type return requested ManifestRow handlerstatic ManifestRowInf
ManifestRowAbs.getManifestRow
(ManifestRowAbs.ManifestType type, LoggerInf logger) Based on ManifestRow type return requested ManifestRow handlerManifestRowAdd.getManifestRow()
ManifestRowBatch.getManifestRow()
abstract ManifestRowCheckmAbs
ManifestRowCheckmAbs.getManifestRow()
ManifestRowCheckmAbs.getManifestRow
(String line) ManifestRowInf.getManifestRow
(String line) Get ManifestRow object based on passed lineManifestRowIngest.getManifestRow()
ManifestRowObject.getManifestRow()
org.apache.tika.mime.MediaType
Tika.getMediaType
(File componentFile) Return MediaType just using Fileorg.apache.tika.mime.MediaType
Tika.getMediaType
(InputStream componentStream, String filenameWithExtension) Returns a tika Media based on the input stream and file Extensionstatic void
Extract DC from METSstatic void
Extract DC from METSstatic String
DC.getMetsMods
(Document mets, LoggerInf logger) Create a MODS xml extracting from METSTika.getMimeType
(File componentFile) Get mime type using just a FileTika.getMimeType
(InputStream componentStream, String fileID) static LinkedHashList<String,
String> From a string DC build list of DC valuesstatic ManifestBuild.PropInfo
ManifestBuild.getPostManifest
(String fileURLS, File sourceDir, File postManifest) Build a POST manifeststatic ManifestBuild.PropInfo
ManifestBuild.getPostManifest
(String fileURLS, File sourceDir, File postManifest, LoggerInf logger) Build a POST manifeststatic String
static String
Checkm.getProfile
(String header) Enumeration handlingManifest.getRows
(InputStream inputStream) Enumeration handlingstatic ThreadHandler
ThreadHandler.getThreadHandler
(long pollTime, int threadCnt, LoggerInf logger) static Tika
void
Raise error if #%eof not found as last entry in manifestvoid
void
Any specialized EOF handling required.void
Checkm.handleHeaders
(String[] comments, String[] profiles) Validate Profile from external manifest headersvoid
ManifestRowCheckmAbs.handleHeaders
(String[] comments) void
ManifestRowInf.handleHeaders
(String[] headers) Process all manifest headers beginning with the form #% The headers exist before any processed manifest lineprotected void
ManifestBuild.initialize
(TFrame mFrame) static boolean
protected String[]
static String
Convert a MODS XML into a DC XML Stringvoid
Manifest.openOutput
(File outputManifestFile) Output file to write new manifestvoid
Manifest.openOutput
(OutputStream outputStream) Use output stream for writing out manifestprotected Properties
StorageAddClient.processResponse
(org.apache.http.HttpResponse response) org.apache.http.HttpResponse
StorageAddClient.sendAddMultipart
(String link, Integer nodeID, Identifier objectID, String localContext, String localID, File manifest, String url, Long size, String type, String value, String formatType) org.apache.http.HttpResponse
StorageAddClient.sendAddMultipart
(String link, Integer nodeID, Identifier objectID, String localContext, String localID, File manifest, String url, Long size, String type, String value, String formatType, int timeout) org.apache.http.HttpResponse
StorageAddClient.sendAddMultipartRetry
(String link, Integer nodeID, Identifier objectID, String localContext, String localID, File manifestFile, String urlS, Long size, String type, String value, String formatType, int timeout, int retry) getObject with timeout and retryStorageAddClient.sendAddMultipartRetryProperties
(String link, Integer nodeID, Identifier objectID, String localContext, String localID, File manifestFile, String urlS, Long size, String type, String value, String formatType, int timeout, int retry) Send a multipart storage add requestorg.apache.http.HttpResponse
StorageAddClient.sendAddPost
(String link, int nodeID, Identifier objectID, String context, String identifier, File manifest, String url, Long size, String type, String value, String formatType) protected void
Checkm.sequenceColumns
(String columnsS) Build tables with sequencing of known columnsvoid
PingState.set
(boolean doGC) Set system values in ping responseprotected void
Checkm.setCol
(String[] disp, Checkm.ColMap val, String value) Set col output display of content for column existsprotected void
Set manifest file as saved buffered readervoid
FileComponent.setFirstMessageDigest
(String digest, String algorithmS) Save a new MessageDigest for this file as only digestprotected void
Checkm.setHeaders
(String[] comments) Process the local headers to define row organization and contentprotected void
Manifest.setInputStream
(InputStream inStream) Convert input stream to buffered readerstatic String
Set a V3 name space in the MODS xmlprotected void
Parse prefix linevoid
Checkm.setRow
(FileComponent fileComponent, String line) From manifest line parse out fileComponent elements and set those values in fileComponentvoid
void
Process Manifest line.void
File size as stringvoid
Tika.setTika
(FileComponent component, File testFile, String fileID) Set mime type using Tikavoid
Tika.setTika
(FileComponent component, InputStream stream, String fileID) Set mime type using Tikavoid
Set link to file passed as stringvoid
ThreadHandler.shutdown()
static String
Checkm.squeezeHeader
(String name, String header) static void
ValidateStorageCmdParms.testArchiveType
(String archiveType) static void
ValidateStorageCmdParms.testContext
(String context) static void
ValidateStorageCmdParms.testFileName
(String fileName) static void
ValidateStorageCmdParms.testLocalID
(String localID) static void
ValidateStorageCmdParms.testNodeID
(int nodeID) static void
ValidateStorageCmdParms.testObjectID
(Identifier objectID) static void
ValidateStorageCmdParms.testVersionID
(Integer versionID) static String
ValidateStorageCmdParms.validateContext
(String context) Validate context (ingest profile, access group ...)static String
ValidateStorageCmdParms.validateFileName
(String fileName) Validate file namestatic String
ValidateStorageCmdParms.validateLocalID
(String localID) Validate local identifierstatic int
ValidateStorageCmdParms.validateNodeID
(String nodeID) Validate and convert nodeIDstatic Identifier
ValidateStorageCmdParms.validateObjectID
(String objectIDS) Validate and convert Object Identifierstatic int
ValidateStorageCmdParms.validateVersionID
(String versionID) Validate and convert versionIDvoid
Write this line to outputvoid
Manifest.write
(ManifestRowInf row) Write a line to output manifestvoid
Manifest.writeEOF()
void
Manifest.writeHeaders()
void
Manifest.writeLines
(String[] lines) Constructors in org.cdlib.mrt.core that throw TExceptionModifierConstructorDescriptionConstructorComponentContent
(List<FileComponent> componentList) ComponentContent
(LoggerInf logger, Manifest manifest, InputStream manifestInputStream) Identifier
(String value) Constructor - Namespace default is ARKIdentifier
(String value, Identifier.Namespace namespace) ConstructorManifest
(LoggerInf logger, ManifestRowInf rowFactory) ConstructorManifestRowAdd
(LoggerInf logger) ManifestRowAdd
(LoggerInf logger, Checkm checkm) ManifestRowBatch
(String outputProfile, LoggerInf logger) ManifestRowBatch
(LoggerInf logger) ManifestRowBatch
(LoggerInf logger, Checkm checkm) ManifestRowCheckmAbs
(String outputProfile, LoggerInf logger, String[] profiles, String[] cols) ManifestRowCheckmAbs
(LoggerInf logger, String[] profiles, String[] cols) ManifestRowCheckmAbs
(LoggerInf logger, Checkm checkm) ManifestRowIngest
(LoggerInf logger) ManifestRowIngest
(LoggerInf logger, Checkm checkm) ManifestRowObject
(LoggerInf logger) ManifestRowObject
(LoggerInf logger, Checkm checkm) MessageDigest
(String value, String algorithmS) Constructor This form of the constructor requires a supported form of the checksum type after normalization.MessageDigest
(String value, MessageDigestType algorithm) ConstructorInitialize Ping stateprotected
ThreadHandler
(long pollTime, int threadCnt, LoggerInf logger) -
Uses of TException in org.cdlib.mrt.db
Methods in org.cdlib.mrt.db that throw TExceptionModifier and TypeMethodDescriptionvoid
DPRFileDB.attemptReconnection()
static Properties[]
DBUtil.cmd
(Connection connection, String cmd, LoggerInf logger) static boolean
DBUtil.exec
(Connection connection, String replaceCmd, LoggerInf logger) DPRFileDB.getConnection
(boolean autoCommit) DPRFileDB.getConnectionOriginal
(boolean autoCommit) DPRFileDB.getConnectionWithReconnect
(boolean autoCommit) static DBConnectionPool
DBConnectionPool.getDBConnectionPool
(String url, String user, String password) DPRFileDB.getSingleConnection
(boolean autoCommit) static String
DPRFileDB.retrieveENC
(String key) protected void
DPRFileDB.setPool()
static int
DBUtil.update
(Connection connection, String replaceCmd, LoggerInf logger) Constructors in org.cdlib.mrt.db that throw TException -
Uses of TException in org.cdlib.mrt.formatter
Methods in org.cdlib.mrt.formatter that throw TExceptionModifier and TypeMethodDescriptionprotected void
protected void
FormatterAbs.addLvl
(int lvl, PrintStream stream) Indent handling for output display streamprotected void
NSMap.buildReaderFile()
protected void
NSMap.buildResourceTable()
void
FormatterAbs.format
(StateInf state, PrintStream stream) void
FormatterInf.format
(StateInf state, PrintStream stream) Create ouput format.void
JSONFormatter.format
(StateInf stateFile, PrintStream stream) void
XHTMLFormatter.format
(StateInf stateFile, PrintStream stream) protected void
FormatterAbs.formatClass
(Class c, Object object, int lvl, PrintStream stream) Format this class.void
FormatterAbs.formatNamedNode
(String name, Object obj, boolean isFirst, int lvl, PrintStream stream) Format a node.void
FormatterAbs.formatNode
(Object obj, boolean isFirst, int lvl, PrintStream stream) protected void
FormatterAbs.formatObject
(Object object, int lvl, PrintStream stream) Use reflection to format this objectstatic ANVLFormatter
FormatterAbs.getANVLFormatter
(LoggerInf logger) get ANVL formatterstatic FormatterInf
FormatterAbs.getFormatter
(FormatterInf.Format formatType, LoggerInf logger) Get typped formatterreturn a header for the XML - this property is requiredXMLMapper.getIDName()
Get name of ID used for this namespacestatic JSONFormatter
FormatterAbs.getJSONFormatter
(String mapperName, LoggerInf logger) get JSON formatterstatic JSONFormatter
FormatterAbs.getJSONFormatter
(LoggerInf logger) get JSON formatterprotected String
FormatterAbs.getMethodName
(Method method) Standard name generator for elements.Get this name with namespace if supplied.XMLMapper.getNameSpacePrefix()
XMLMapper.getNameSpaceURI()
XMLMapper.getProperties
(String resourceName) Gets a resource using the class loaderXMLMapper.getResourceName()
Get name of ID used for this namespaceXMLMapper.getSemanticBase()
XMLMapper.getXHTML()
static XHTMLFormatter
FormatterAbs.getXHTMLFormatter
(String mapperName, LoggerInf logger) get XHTML formatterstatic XHTMLFormatter
FormatterAbs.getXHTMLFormatter
(LoggerInf logger) get XHTML formatterstatic XMLFormatter
FormatterAbs.getXMLFormatter
(String mapperName, LoggerInf logger) get XML formatterstatic XMLFormatter
FormatterAbs.getXMLFormatter
(LoggerInf logger) get XML formatterstatic XMLMapper
XMLMapper.getXMLMapper
(String resourceName, StateInf state) protected boolean
FormatterAbs.isDisplayableClass
(Class c) protected boolean
FormatterAbs.isDisplayMethod
(Method m) Critical routine to determine if a method should be displayed Must begin with get.protected void
ANVLFormatter.print
(String name, String value, boolean isFirst, boolean isNumeric, int lvl, PrintStream stream) protected abstract void
FormatterAbs.print
(String name, String value, boolean isFirst, boolean isNumeric, int lvl, PrintStream stream) Formatted entry valueprotected void
JSONFormatter.print
(String name, String value, boolean isFirst, boolean isNumeric, int lvl, PrintStream stream) protected void
XHTMLFormatter.print
(String name, String value, boolean isFirst, boolean isNumeric, int lvl, PrintStream stream) protected void
XMLFormatter.print
(String name, String value, boolean isFirst, boolean isNumeric, int lvl, PrintStream stream) protected int
ANVLFormatter.printBegin
(StateInf state, PrintStream stream) protected abstract int
FormatterAbs.printBegin
(StateInf state, PrintStream stream) Beginning of formattingprotected int
JSONFormatter.printBegin
(StateInf state, PrintStream stream) protected int
XHTMLFormatter.printBegin
(StateInf state, PrintStream stream) protected int
XMLFormatter.printBegin
(StateInf state, PrintStream stream) protected void
ANVLFormatter.printClose
(String name, int lvl, PrintStream stream) protected abstract void
FormatterAbs.printClose
(String name, int lvl, PrintStream stream) Closing element entry.protected void
JSONFormatter.printClose
(String name, int lvl, PrintStream stream) protected void
XHTMLFormatter.printClose
(String name, int lvl, PrintStream stream) protected void
XMLFormatter.printClose
(String name, int lvl, PrintStream stream) protected void
ANVLFormatter.printEnd
(PrintStream stream) protected abstract void
FormatterAbs.printEnd
(PrintStream stream) End of formattingprotected void
JSONFormatter.printEnd
(PrintStream stream) protected void
XHTMLFormatter.printEnd
(PrintStream stream) protected void
XMLFormatter.printEnd
(PrintStream stream) protected void
ANVLFormatter.printEnd_Concatenation
(PrintStream stream) Example of ANVL output using concatenation of identical keys using ;void
ANVLFormatter.printStart
(String name, boolean isFirst, int lvl, PrintStream stream) protected abstract void
FormatterAbs.printStart
(String name, boolean isFirst, int lvl, PrintStream stream) Beginning element entry.protected void
JSONFormatter.printStart
(String name, boolean isFirst, int lvl, PrintStream stream) protected void
XHTMLFormatter.printStart
(String name, boolean isFirst, int lvl, PrintStream stream) protected void
XMLFormatter.printStart
(String name, boolean isFirst, int lvl, PrintStream stream) void
FormatterAbs.processList
(Method mGetList, Object objList, boolean firstNode, int lvl, PrintStream stream) Using reflection, process a list of values.protected String
FormatterAbs.runStringMethod
(Method meth, String name, Object object) Runs toString() for this methodprotected File
protected File
protected void
NSMap.validate()
protected void
FormatterAbs.write
(String line, PrintStream stream) Used by formatter class to write to the display outputprotected void
FormatterAbs.writeln
(String line, PrintStream stream) Used by formatter class to write a line to the display outputprotected void
JSONFormatter.writeStream
(File formatFile, PrintStream stream) protected void
XHTMLFormatter.writeStream
(File formatFile, PrintStream stream) Constructors in org.cdlib.mrt.formatter that throw TExceptionModifierConstructorDescriptionANVLFormatter
(LoggerInf logger) FormatterAbs
(LoggerInf logger) ConstructorJSONFormatter
(String mapperName, LoggerInf logger) JSONFormatter
(LoggerInf logger) XHTMLFormatter
(String mapperName, LoggerInf logger) XHTMLFormatter
(LoggerInf logger) XMLFormatter
(String mapperName, LoggerInf logger) XMLFormatter
(LoggerInf logger) protected
State must be explicitly included match an instance to assign a type name The type name is used for matchin resource properties -
Uses of TException in org.cdlib.mrt.log.test
Methods in org.cdlib.mrt.log.test that throw TExceptionModifier and TypeMethodDescriptionvoid
TestElement.doTest()
void
TestLevel.doTest()
void
TestUse.doTest()
void
TestLevel.doTest2()
static void
static void
static void
Constructors in org.cdlib.mrt.log.test that throw TException -
Uses of TException in org.cdlib.mrt.log.utility
Methods in org.cdlib.mrt.log.utility that throw TExceptionModifier and TypeMethodDescriptionstatic void
Add one or more JSON entries in log4j2void
void
static void
AddStateEntryGen.addLogJson
(org.apache.logging.log4j.Level level, String logKey, org.json.JSONObject jsonState) static org.json.JSONObject
static org.json.JSONObject
void
AddStateEntryGen.addLogLevel
(org.apache.logging.log4j.Level logLevel, String logKey) void
AddStateEntry.addLogStateEntry
(String logKey) static void
AddStateEntry.addLogStateEntry
(String logKey, org.json.JSONObject jsonState) static void
AddStateEntry.addLogStateEntry
(org.apache.logging.log4j.Level level, String logKey, org.json.JSONObject jsonState) void
AddStateEntryGen.addLogStateEntry
(String logKey) void
AddStateEntryGen.addLogStateEntry
(String levelS, String logKey) static void
AddStateEntryGen.addLogStateEntry
(String levelS, String logKey, org.json.JSONObject jsonState) static void
AddStateEntryGen.addLogStateEntry
(String logKey, org.json.JSONObject jsonState) org.json.JSONObject
AddStateEntry.buildContent()
org.json.JSONObject
AddStateEntryGen.buildContent()
org.json.JSONObject
AddStateEntry.buildID()
org.json.JSONObject
AddStateEntryGen.buildID()
org.json.JSONObject
AddStateEntryGen.buildProperties()
org.json.JSONObject
AddStateEntry.buildService()
org.json.JSONObject
AddStateEntryGen.buildService()
org.json.JSONObject
AddStateEntry.buildStateJSON()
org.json.JSONObject
AddStateEntryGen.buildStateJSON()
static String
Log4j2Util.getRootLevel()
static void
Log4j2Util.setLoggerLevel
(String loggerName, String levelS) static void
Log4j2Util.setLoggerLevel
(String loggerName, org.apache.logging.log4j.Level level) static void
Log4j2Util.setRootLevel
(String levelS) static void
Log4j2Util.setRootLevel
(org.apache.logging.log4j.Level level) -
Uses of TException in org.cdlib.mrt.security
Methods in org.cdlib.mrt.security that throw TExceptionModifier and TypeMethodDescriptionstatic String
SecurityUtil.decodeBase64
(String str) static String
SecurityUtil.desDecrypt
(String text, String tkey) Use DES to decrypt a stringstatic String
SecurityUtil.desEncrypt
(String text, String tkey) Use DES to encrypt a stringstatic String
SecurityUtil.encodeBase64
(byte[] byteArray) static String
SecurityUtil.encodeBase64
(InputStream inputStream) static String
SecurityUtil.encodeBase64
(String str) static String
Do an MD5 encryption on a string
Note that the encryption does utf-8 conversion of password to byte arraystatic String
Do an MD5 encryption on a string
Note that the encryption does utf-8 conversion of password to byte arrayCertsLDAP.extractProfiles
(String user, String pwd, String searchId) LDAPUtil.extractProfiles
(String host, String uid, String password, String searchId) LDAPUtil.getClassNames
(String host, String uid, String password, String searchId) CertsLDAP.getProfile
(String user, String pwd, String mnemonic) static String
LDAPUtil.getProfile
(String host, String uid, String password, String className) static LinkedHashList<String,
String> LDAPUtil.getUserProperties
(String host, String uid, String password) boolean
CertsLDAP.isAuthorized
(String uid, String password, String className, String searchId) static LinkedHashList<String,
String> LDAPUtil.search
(String uid, String password, String host, String[] returnedAtts, String searchBase, String filter) Constructors in org.cdlib.mrt.security that throw TException -
Uses of TException in org.cdlib.mrt.test
Methods in org.cdlib.mrt.test that throw TExceptionModifier and TypeMethodDescriptionprotected static void
TestFileUtil.addTestFile
(File tempDir, String fileName) Add file at this directory level - ending with .txt Note that file content is name of file.static File
Return a temp copy of a passed filestatic void
TestFileUtil.copyDirectory
(File sourceLocation, File targetLocation) Copy all files in a directory to another directory (will overwrite)static void
Copy file from one directory to anotherstatic void
Copy files in one directory to another directory based on matchin a regular expression.static long
TestFileUtil.extractFileCnt
(File extFile, long dflt) static void
Copy one file to anotherstatic String
TestFileUtil.file2String
(File extractFile) Extract the value of file to a string (utf-8)static String
TestFileUtil.file2String
(File extractFile, String encType) Extract the value of file to a string (utf-8)static void
TestFileUtil.getDirectoryFiles
(File sourceLocation, Vector<File> files) Build list of files for a directorystatic String[]
TestFileUtil.getLinesFromFile
(File splitFile) Return array of nonempty lines from a filestatic String[]
TestFileUtil.getLinesFromURL
(LoggerInf logger, String urlS) Return array of nonempty lines from url contentstatic File
TestFileUtil.getTempDir
(String directoryPrefix) Get a temporary directorystatic File
TestFileUtil.getTempDir
(String directoryPrefix, LoggerInf logger) Get a temporary directorystatic File
TestFileUtil.getTempFile
(String prefix, String suffix) Create a temp file using prefix and suffix (THREAD SAFE)static void
Increment a stored file value and save back to filestatic void
TestFileUtil.populateTest
(File tempDir, String name, int lvl, int maxlvl) Create a test directory of form: A AA AB AC ...static void
TestFileUtil.stream2File
(InputStream inStream, File outFile) Create a file from a streamstatic void
TestFileUtil.stream2Stream
(InputStream inStream, OutputStream outStream) Copy input stream to output streamstatic void
TestFileUtil.string2File
(File createFile, String fileContent) Create a file containing this string value (utf-8)static void
TestFileUtil.updateDirectory
(File sourceLocation, File targetLocation) Copy all files in a directory to another directory (will not overwrite)static void
Get content referenced by a url and save in a filestatic void
Get content referenced by a url and save in a filestatic void
Get content referenced by a url and save in a filestatic void
Get content referenced by a url and save in a filestatic void
TestFileUtil.url2OutputStream
(String urlS, OutputStream outStream, int retry) Move url response to output streamstatic File
TestFileUtil.url2TempFile
(LoggerInf m_logger, String urlS) get remote file -
Uses of TException in org.cdlib.mrt.tools
Methods in org.cdlib.mrt.tools that throw TExceptionModifier and TypeMethodDescriptionDefaultConfigResolver.getResolvedStorageNode
(long num) UC3ConfigResolver.getResolvedStorageNode
(long num) abstract String
DefaultConfigResolver.getResolvedValue
(String parameterName) MockConfigResolver.getResolvedValue
(String parameterName) SSMConfigResolver.getResolvedValue
(String parameterName) UC3ConfigResolver.getResolvedValue
(String parameterName) -
Uses of TException in org.cdlib.mrt.tools.loader
Methods in org.cdlib.mrt.tools.loader that throw TExceptionModifier and TypeMethodDescriptionLoaderManifest.addManifestRow
(File file, String checksumType, String fileURLS, File sourceDir) Build a POST manifestStoreLoader.addVersion
(int nodeID, Identifier objectID, String localContext, String localID, File manifest, Long size, MessageDigest manifestMessageDigest) int
BatchManifest.buildBatchManifest()
protected FileComponent
LoaderManifest.buildBatchManifestRow()
Build the METS component to be added to the component list for an individual object manifestprotected int
BatchManifest.buildContentManifests()
protected LoaderManifest
BatchManifest.buildLoaderManifest
(int item) int
LoaderManifest.buildManifest
(ManifestRowAbs.ManifestType manifestType) void
BatchLoader.end()
void
StoreLoader.end()
protected Properties
BatchLoader.getDummyIngestStatus()
protected Properties
BatchLoader.getIngestStatus
(org.apache.http.HttpResponse response) protected void
BatchLoader.initialize
(TFrame fw) protected void
StoreLoader.initialize
(TFrame fw) protected void
BatchLoader.initializeBatchLoader()
protected void
StoreLoader.initializeStoreLoader()
void
BatchLoader.process
(String line, Properties processProp) Process an incoming line which contains 1) ark 2) sequence number Use the ark for issuing an addVersion to a storage servicevoid
StoreLoader.process
(String line, Properties processProp) Process an incoming line which contains 1) ark 2) sequence number Use the ark for issuing an addVersion to a storage serviceprotected LoaderManifest
StoreLoader.processManifest
(String dirName, FileComponent batchComponent, File extractDirectory, String localID, String primaryID) void
BatchManifest.run()
static BatchManifest
BatchManifest.run
(String checksumType, Vector<LoaderInfo> extractDirectories, File outputManifestDirectory, URL outputManifestBaseURL, URL componentURLBase, LoggerInf logger) void
LoaderManifest.run
(ManifestRowAbs.ManifestType manifestType) static LoaderManifest
LoaderManifest.run
(ManifestRowAbs.ManifestType manifestType, String checksumType, FileComponent batchComponent, File dataDir, File loaderManifestFile, URL componentURLBase, LoggerInf logger) protected Properties
BatchLoader.sendIngest
(URL ingestURL, String profile, File manifestFile) Send constructed request to ingestprotected org.apache.http.HttpResponse
BatchLoader.sendIngestMultipart
(String ingestID, URL url, File ingestPackage, String profileIn, String type) Send ingest requestlong
LoaderManifest.setComponents()
Build a POST manifestConstructors in org.cdlib.mrt.tools.loader that throw TExceptionModifierConstructorDescriptionBatchLoader
(TFrame framework) BatchManifest
(String checksumType, Vector<LoaderInfo> extractDirectories, File outputManifestDirectory, URL outputManifestBaseURL, URL componentURLBase, LoggerInf logger) LoaderManifest
(String checksumType, FileComponent batchComponent, File dataDir, File loaderManifest, URL componentURLBase, LoggerInf logger) StoreLoader
(TFrame framework) -
Uses of TException in org.cdlib.mrt.tools.loader.test
Methods in org.cdlib.mrt.tools.loader.test that throw TExceptionModifier and TypeMethodDescriptionvoid
BatchLoaderTest.testBatchLoader()
void
StoreLoaderTest.testStoreLoader()
-
Uses of TException in org.cdlib.mrt.utility
Subclasses of TException in org.cdlib.mrt.utilityModifier and TypeClassDescriptionstatic class
CONCURRENT_UPDATE subclass See TExceptionEnum value for descriptionstatic class
EXTERNAL_SERVICE_UNAVAILABLE subclass See TExceptionEnum value for descriptionstatic class
FIXITY_CHECK_FAILS subclass See TExceptionEnum value for descriptionstatic class
SQL_EXCEPTION subclass See TExceptionEnum value for descriptionstatic class
GENERAL_EXCEPTION subclass See TExceptionEnum value for descriptionstatic class
INVALID_ARCHITECTURE subclass See TExceptionEnum value for descriptionstatic class
INVALID_CONFIGURATION subclass See TExceptionEnum value for descriptionstatic class
INVALID_DATA_FORMAT subclass See TExceptionEnum value for descriptionstatic class
INVALID_OR_MISSING_PARM subclass See TExceptionEnum value for descriptionstatic class
LOCKING_ERROR subclass See TExceptionEnum value for descriptionstatic class
SQL_EXCEPTION subclass See TExceptionEnum value for descriptionstatic class
Attempt to read or write to remote external IO service failsstatic class
REQUEST_ELEMENT_UNSUPPORTED subclass See TExceptionEnum value for descriptionstatic class
REQUEST_INVALID subclass See TExceptionEnum value for descriptionstatic class
REQUEST_ITEM_EXISTS subclass See TExceptionEnum value for descriptionstatic class
REQUESTED_ITEM_NOT_FOUND subclass See TExceptionEnum value for descriptionstatic class
SQL_EXCEPTION subclass See TExceptionEnum value for descriptionstatic class
UNIMPLEMENTED_CODE subclass See TExceptionEnum value for descriptionstatic class
USER_NOT_AUTHENTICATED subclass See TExceptionEnum value for descriptionstatic class
USER_NOT_AUTHORIZED subclass See TExceptionEnum value for descriptionMethods in org.cdlib.mrt.utility that return TExceptionModifier and TypeMethodDescriptionprotected TException
MessageDigestValue.makeTException
(String header, Exception ex) Methods in org.cdlib.mrt.utility that throw TExceptionModifier and TypeMethodDescriptionprotected void
Recursive method for finding files and adding to archiveprotected void
Recursive method for finding files and adding to archiveprotected abstract void
ArchiveBuilder.addItemFile
(File entry, LoggerInf logger) Call back routinte to write an archive entry to archive output.protected void
ArchiveBuilder.Tar.addItemFile
(File entry, LoggerInf logger) write a archive entry to archive outputprotected void
ArchiveBuilder.Zip.addItemFile
(File entry, LoggerInf logger) write a archive entry to archive outputprotected abstract void
ArchiveBuilderBase.addItemFile
(File entry, LoggerInf logger) Call back routinte to write an archive entry to archive output.protected void
ArchiveBuilderBase.Tar.addItemFile
(File entry, LoggerInf logger) write a archive entry to archive outputprotected void
ArchiveBuilderBase.Zip.addItemFile
(File entry, LoggerInf logger) write a archive entry to archive outputvoid
MProperties.addProperties
(String resource) protected static void
FileUtil.addTestFile
(File tempDir, String fileName) Add file at this directory level - ending with .txt Note that file content is name of file.static boolean
Test if passed value is a "true" value Used to validate that an argument means "true" or "yes"void
HttpGet.build()
protected void
ArchiveBuilder.buildArchive()
Create archive from constructor supplied valuesvoid
ArchiveBuilderBase.buildArchive
(boolean includeBase) Create archive from constructor supplied valuesvoid
HttpGet.buildContentLength
(org.apache.http.HttpEntity entity) This routine will perform multiple calls to fix broken connection when content-length existsprotected void
HttpGet.buildNoContentLength
(org.apache.http.HttpEntity entity) This routine is called only when Content-Length not provided on GET responsestatic File
PairtreeUtil.buildPairDirectory
(File baseDirectory, String name) Build if necessary directories down to object levelstatic Properties[]
SQLUtil.cmd
(String sqlQuery, Connection connection, LoggerInf logger) Return a row from a tablestatic File
Return a temp copy of a passed filestatic void
FileUtil.copyDirectory
(File sourceLocation, File targetLocation) Copy all files in a directory to another directory (will overwrite)static void
Copy file from one directory to anotherstatic void
Copy files in one directory to another directory based on matchin a regular expression.static String
Replace quote and escape in JSON stringstatic String
Replace Entity references with XML special charactersstatic Properties
ZooCodeUtil.decodeItem
(byte[] bytes) static Object
ZooCodeUtil.decodeItem
(InputStream inStream) static void
FileTrans.deleteEmpty
(File testFile, File stopDir) Remove empty directoriesstatic org.apache.http.HttpResponse
HTTPUtil.deleteHttpResponse
(String requestURL, int timeout) Perform a DELETE operationstatic InputStream
HTTPUtil.deleteObject
(String requestURL, int timeout) Deletestatic InputStream
HTTPUtil.deleteObject
(String requestURL, int timeout, int retry) getObject with timeout and retryprotected static boolean
PairtreeUtil.deletePairPath
(File baseDirectory, Vector<String> lvls) Delete a constructed pair path if path is emptystatic Serializable
SerializeUtil.deserialize
(File inFile) Take file and build object from itstatic Serializable
SerializeUtil.deserialize
(InputStream inStream) Build serializable object from input streamstatic Document
DOMParser.doParse
(InputStream istream, LoggerInf logger) parse xml contained from input stream InputStream Contains logger param Logger Logger to receive messages, if anystatic Document
DOMParser.doParse
(InputStream istream, LoggerInf logger, boolean validate, boolean nsAware, boolean expandEntities) parse xml contained from input stream InputStream Contains loggerstatic String
Replace XML special characters with Entity referencesstatic void
ZooCodeUtil.encodeItem
(Object object, OutputStream outStream) static byte[]
ZooCodeUtil.encodeItem
(Properties row) static String
XMLUtil.encodeName
(String xmlString) Replace XML special characters with Entity referencesstatic String
XMLUtil.encodeValue
(String xmlString) Replace XML special characters with Entity referencesvoid
ListProcessorSimple.end()
Process on EnrichmentList itemstatic long
FileUtil.extractFileCnt
(File extFile, long dflt) protected TLockFile.LockContent
TLockFile.extractLockContent
(File localExtractFile) Lock info extracted from filestatic void
Copy one file to anotherstatic String
FileUtil.file2String
(File extractFile) Extract the value of file to a string (utf-8)static String
FileUtil.file2String
(File extractFile, String encType) Extract the value of file to a string (utf-8)static String
ListProcessorThreads.file2String
(File extractFile, String encoding) Extract the value of file to a string (utf-8)static void
Checksums.finishDigest
(Checksums.Digest inDigest) static String
GetProp.get
(Properties prop, String key) static ArchiveBuilder
ArchiveBuilder.getArchiveBuilder
(File fromDir, File toArchive, LoggerInf logger, ArchiveBuilder.ArchiveType archiveType) Factory routine to get specific ArchiveBuilder for supplied ArchiveTypestatic ArchiveBuilder
ArchiveBuilder.getArchiveBuilder
(File fromDir, OutputStream outputStream, LoggerInf logger, ArchiveBuilder.ArchiveType archiveType) Factory routine to get specific ArchiveBuilder for supplied ArchiveTypestatic ArchiveBuilderBase
ArchiveBuilderBase.getArchiveBuilderBase
(File fromDir, File toArchive, LoggerInf logger, ArchiveBuilderBase.ArchiveType archiveType) Factory routine to get specific ArchiveBuilder for supplied ArchiveTypestatic ArchiveBuilderBase
ArchiveBuilderBase.getArchiveBuilderBase
(File fromDir, OutputStream outputStream, LoggerInf logger, ArchiveBuilderBase.ArchiveType archiveType) Factory routine to get specific ArchiveBuilder for supplied ArchiveTypestatic Boolean
GetProp.getBool
(Properties prop, String key) Checksums.getChecksum
(String checksumType) static Checksums
Checksums.getChecksums
(String[] types, File inFile) static Checksums
Checksums.getChecksums
(String[] types, InputStream inStream) static void
FileUtil.getDirectoryFiles
(File sourceLocation, Vector<File> files) Build list of files for a directoryprotected String
ArchiveBuilder.getEntryName
(File addFile) Normalize archive entry nameprotected String
ArchiveBuilderBase.getEntryName
(File addFile) Normalize archive entry namestatic String
GetProp.getEx
(Properties prop, String key) static int
GetProp.getExNumInt
(Properties prop, String key) static void
static void
static Element
DOMParser.getFirstNode
(Element elem, String name) Stub method: Return first decendant element matching a specific string name (xpath=name[1]static Element
DOMParser.getFirstNode
(Element elem, String name, LoggerInf logger) Return first decendant element matching a specific string name (xpath=name[1] Contains loggerstatic InputStream
HTTPUtil.getFTPInputStream
(String ftpURLS, int timeout) static HttpGet
HttpGet.getHttpGet
(URL contentURL, File outFile, long testSize, int timeout, LoggerInf logger) static org.apache.http.HttpResponse
HTTPUtil.getHttpResponse
(String requestURL, int timeout) Perform a GET operationstatic org.apache.http.HttpResponse
HTTPUtil.getHttpResponse
(String requestURL, int timeout, long startByte, long endByte) Perform a GET operationstatic org.apache.http.HttpResponse
HTTPUtil.getHttpResponse
(URL hrefURL, int timeout, int retry) static String[]
FileUtil.getLinesFromFile
(File splitFile) Return array of nonempty lines from a filestatic String[]
FileUtil.getLinesFromURL
(LoggerInf logger, String urlS) Return array of nonempty lines from url contentprotected File
TLockFile.getLockFile
(File base, String lockName) get requested lock filestatic MrtConnectionPool
MrtConnectionPool.getMrtConnectionPool
(String url, String user, String password) static NodeList
DOMParser.getNodeList
(Node node, String expression, LoggerInf logger) Same as above, fewer parameters Logging routine not added since the original code for this method did no have a "throw" in the catch (TransformerException te) which indicates that it may not be worth logging.static Long
GetProp.getNumLong
(Properties prop, String key) static long
GetProp.getNumLongEx
(Properties prop, String key) static InputStream
Send this manifestFile to mrt storestatic InputStream
getObject with timeout and retrystatic InputStream
HTTPUtil.getObject404
(String requestURL, int timeout, int retry) getObject with timeout and retrystatic org.apache.http.HttpEntity
HTTPUtil.getObjectEntity
(String requestURL, int timeout) Send this manifestFile to mrt storestatic org.apache.http.HttpEntity
HTTPUtil.getObjectEntity
(String requestURL, int timeout, long startByte, long endByte) Send this manifestFile to mrt storestatic Properties
HTTPUtil.getObjectProperties
(String requestURL, int timeout, int retry) Get structured properties from a Get requeststatic org.apache.http.HttpResponse
HTTPUtil.getObjectResponse
(String requestURL, int timeout, int retry) Get structured properties from a Get requeststatic File
PairtreeUtil.getPairDirectory
(File baseDirectory, String name) Return a file that may not be resolved for pair pathPairtreeUtil.getPairLevels
(String name) Get a List of String pairtree elementsstatic String
PairtreeUtil.getPairName
(String name) Get a pairtree path based on input namestatic TLockFile
TLockFile.getReplaceStaleTLockFile
(File base, String lockName, int staleTimeSeconds) Factory method - will replace lock if exceeds stale agestatic TLockFile
TLockFile.getReplaceTLockFile
(File base, String lockName, int staleTimeSeconds, int replaceTimeSeconds, int matchAttempts, int waitTimeSeconds) Factory method - will replace lock if exceeds certain age if does not exceed age then it attempts to build lockTFrame.getResource
(String resourceName) Gets a resource using the class loaderstatic Properties[]
Return a row from a tablestatic Serializable
SerializeUtil.getSerializeObject
(String requestURL) build Serializable object from a remote service using a request URLstatic String
DOMParser.getSimpleElementText
(Node node, LoggerInf logger) Return concatinated string text values for all text nodes that are children of this node Contains loggerTFrame.getSingleInstance
(String registryKey) Gets the single instance of a 'singleton' patterned class.TFrame.getSingleInstances
(String registryKey) Gets the single instance of each class associated with a registry key.static InputStream
static InputStream
static File
FileUtil.getTempDir
(String directoryPrefix) Get a temporary directorystatic File
FileUtil.getTempDir
(String directoryPrefix, LoggerInf logger) Get a temporary directorystatic File
FileUtil.getTempFile
(String prefix, String suffix) Create a temp file using prefix and suffix (THREAD SAFE)static TFileLogger
LoggerAbs.getTFileLogger
(String mFrameID, int messageMaxValue, int errorMaxValue) Factory class for sysout default using explicit numeric levelsstatic TFileLogger
LoggerAbs.getTFileLogger
(String mFrameID, String filePath, Properties prop) Factory class for file output defined by prop valuesstatic TFileLogger
LoggerAbs.getTFileLogger
(String mFrameID, LoggerInf.LogLevel messageLogLevel, LoggerInf.LogLevel errorLogLevel) Factory class for sysout default using explicit verbose levelsstatic InputStream
HTTPUtil.getTimeoutInputStream
(URL sourceURL, int timeout) Make a connection using URL and perform timeout test using threadsstatic TLockFile
TLockFile.getTLockFile
(File base, String lockName) Factory methodstatic TLockFile
TLockFile.getTLockFile
(File base, String lockName, int staleTimeSeconds) Factory methodstatic TLockFile
TLockFile.getTLockFile
(File base, String lockName, int matchAttempts, int waitTimeSeconds) Factory method - this form allows multiple retry attempts on the lockprotected ZipEntry
ArchiveBuilderBase.Zip.getZipEntry
(File inFile) static void
Increment a stored file value and save back to fileprotected void
ListProcessorSimple.initialize
(TFrame framework) void
TFileLogger.initialize
(String mFrameID, String filePath, Properties prop) Initialize the logger inside of a framework.TFrame.instantiate
(String registryKey) Creates an instance of a registered class.TFrame.instantiateAll
(String registryKey) Creates instances of all registered classes sharing a common registry keyprotected void
TFrameInit.instantiateTFrame
(String[] propertyFiles, String serviceName) Instantiat TFrame objectvoid
MProperties.load
(InputStream input) static Properties
PropertiesUtil.loadFileProperties
(File loadFile) Loads properties from a properties files.protected LoggerInf
TFrame.loadLogger
(String logPath) Loads the registered logger.void
MProperties.loadProperties
(LoggerInf logger, String[] propertiesFileNames) Loads properties from one or more properties files.static Properties
PropertiesUtil.loadProperties
(String propertiesFileName) Loads properties from one or more properties files.static Properties
PropertiesUtil.loadPropertiesFileName
(String propertiesFileName) Loads properties from one or more properties files.protected void
TFrame.loadServiceProperties
(String servicePathName) Load properties from an optional supplied path.void
Load tally count from filestatic void
static void
FileUtil.populateTest
(File tempDir, String name, int lvl, int maxlvl) Create a test directory of form: A AA AB AC ...static org.apache.http.HttpResponse
HTTPUtil.postHttpResponse
(String requestURL, Properties prop, int timeout) Send this manifestFile to mrt storestatic org.apache.http.HttpResponse
HTTPUtil.postMultipartHeader
(String requestURL, Properties mainHeaders, Properties stringParts, Map<String, File> fileParts, int timeout) Do multipart poststatic org.apache.http.HttpResponse
HTTPUtil.postMultipartHttpResponse
(String requestURL, Properties stringParts, Map<String, File> fileParts, int timeout) Do multipart poststatic org.apache.http.HttpResponse
HTTPUtil.postMultipartHttpResponse2
(String requestURL, Properties stringParts, Map<String, File> fileParts, int timeout) Do multipart poststatic InputStream
HTTPUtil.postMultipartObject
(String requestURL, Properties stringParts, Map<String, File> fileParts, int timeout) Return InputStream from multipart requeststatic InputStream
HTTPUtil.postMultipartObject2
(String requestURL, Properties stringParts, Map<String, File> fileParts, int timeout) Return InputStream from multipart requeststatic InputStream
HTTPUtil.postObject
(String requestURL, Properties prop, int timeout) Send this manifestFile to mrt storevoid
void
Checksums.process
(InputStream inputStream) void
ListProcessor.process
(String item, Properties processProp) Process on EnrichmentList itemvoid
ListProcessorSimple.process
(String item, Properties processProp) Process on EnrichmentList itemvoid
ListProcessorThreads.process
(String item, Properties processProp) Process on EnrichmentList itemvoid
TimerUtil.process()
void
ListProcessorSimple.processList()
Find list to process and sequentially process the list Note properties: start - beginning offset of list to process last - last offset of list to processprotected void
ListProcessorThreads.processList()
Find list to process and sequentially process the list Note properties: start - beginning offset of list to process last - last offset of list to processstatic void
PropertiesUtil.prop2File
(Properties prop, String header, File outFile) static org.apache.http.HttpResponse
HTTPUtil.putMultipartHttpResponse
(String requestURL, Properties stringParts, Map<String, File> fileParts, int timeout) Do multipart poststatic InputStream
HTTPUtil.putMultipartObject
(String requestURL, Properties stringParts, Map<String, File> fileParts, int timeout) Return InputStream from multipart requestprotected String
ListProcessorThreads.read()
Find list to process and sequentially process the list Note properties: start - beginning offset of list to process last - last offset of list to processboolean
TLockFile.remove()
delete lockstatic boolean
PairtreeUtil.removePairDirectory
(File deleteDirectory) Remove pair directory and remove a parent directory to baseDirectory, but not including base directorystatic String
XMLUtil.removeXMLHeader
(String xml) void
TLockFile.replaceLock
(int seconds) replace existing lock with this lock if existing lock exceeds the number of seconds provided.void
TLockFile.replaceStaleLock()
replace existing lock with this lock if existing lock stale time exceeds current timeprotected void
ListProcessorBase.requiredProp
(Properties inProp, Properties outProp, String key) copy property from one Properties to another and throw exception if not foundstatic Properties
HTTPUtil.response2Property
(org.apache.http.HttpResponse response) void
TLockFile.retryLock
(int noMatchAttempts, int matchAttempts, int waitTimeSeconds) Retry setting lock - Issue several threads waiting on same lock.void
static void
SerializeUtil.serialize
(Serializable serialObject, File outFile) Write serialized object to filestatic void
SerializeUtil.serialize
(Serializable serialObject, OutputStream outStream) Take serializable object and output to streamprotected void
ArchiveBuilder.setEntry
(OutputStream out, File entry) Move file to archiveprotected void
ArchiveBuilderBase.setEntry
(OutputStream out, File entry) Move file to archiveprotected void
TLockFile.setLock()
set the lock - attempt to write lock file - reread lock - if my lock then lock is active - otherwise lock is inactiveprotected abstract void
ArchiveBuilder.setOutputStream
(OutputStream baseOutputStream) Call back routine for setting archive output stream type: tar, tar.gz, zipprotected void
ArchiveBuilder.Tar.setOutputStream
(OutputStream baseOutputStream) protected void
ArchiveBuilder.TarGZ.setOutputStream
(OutputStream baseOutputStream) protected void
ArchiveBuilder.Zip.setOutputStream
(OutputStream baseOutputStream) protected abstract void
ArchiveBuilderBase.setOutputStream
(OutputStream baseOutputStream) Call back routine for setting archive output stream type: tar, tar.gz, zipprotected void
ArchiveBuilderBase.Tar.setOutputStream
(OutputStream baseOutputStream) protected void
ArchiveBuilderBase.TarGZ.setOutputStream
(OutputStream baseOutputStream) protected void
ArchiveBuilderBase.Zip.setOutputStream
(OutputStream baseOutputStream) protected void
MessageDigestValue.setSizeChecksum
(InputStream inputStream, String checksumType) Get size and checksum for newer checksum typesprotected void
MessageDigestValue.setSizeChecksum32
(Checksum checksum32, InputStream inputStream) Create checksums for older types: CRC32 and Adler32static DeleteOnCloseFileInputStream
HttpGet.setTempGet
(URL contentURL, long testLength, int timeout, LoggerInf logger) static DocumentBuilder
get parser Contains loggerstatic void
FileUtil.stream2File
(InputStream inStream, File outFile) Create a file from a streamstatic void
HttpGet.stream2File
(InputStream inStream, File outFile, boolean append) Create a file from a streamstatic void
FileUtil.stream2Stream
(InputStream inStream, OutputStream outStream) Copy input stream to output streamstatic void
FileUtil.string2File
(File createFile, String fileContent) Create a file containing this string value (utf-8)static String
protected LoggerInf
Throw exception if log is nullvoid
FileTrans.translate()
static void
FileUtil.updateDirectory
(File sourceLocation, File targetLocation) Copy all files in a directory to another directory (will not overwrite)static void
Get content referenced by a url and save in a filestatic void
Get content referenced by a url and save in a filestatic void
Get content referenced by a url and save in a filestatic void
Get content referenced by a url and save in a filestatic void
FileUtil.url2OutputStream
(String urlS, OutputStream outStream, int retry) Move url response to output streamHttpGet.url2Stream
(String urlS, long startByte, long endByte) static File
FileUtil.url2TempFile
(LoggerInf m_logger, String urlS) get remote fileFixityTests.validateSizeChecksum
(String passedChecksum, String passedChecksumTypeS, long passedFileSize) Get the download size and checksum for this filestatic String
XSLTUtil.xslConvert
(InputStream xmlIS, InputStream xslIS, Hashtable parmTable, LoggerInf logger) Convert xml using an xslt stylesheetstatic String
XSLTUtil.xslConvert
(InputStream xmlIS, String idXSL, Hashtable parmTable, LoggerInf logger) Convert xml using an xslt stylesheetstatic String
XSLTUtil.xslConvert
(String xml, String idXSL, Hashtable parmTable, LoggerInf logger) static String
XSLTUtil.xslConvert
(StreamSource sourceXML, StreamSource sourceXSL, Hashtable parmTable, LoggerInf logger) Convert xml using an xslt stylesheetConstructors in org.cdlib.mrt.utility that throw TExceptionModifierConstructorDescriptionArchiveBuilder
(File fromDir, File toArchive, LoggerInf logger, ArchiveBuilder.ArchiveType archiveType) Contructor used as build method for this classArchiveBuilder
(File fromDir, OutputStream outputStream, LoggerInf logger, ArchiveBuilder.ArchiveType archiveType) Contructor used as build method for this classArchiveBuilderBase
(File fromDir, File toArchive, LoggerInf logger, ArchiveBuilderBase.ArchiveType archiveType) Contructor used as build method for this classArchiveBuilderBase
(File fromDir, OutputStream outputStream, LoggerInf logger, ArchiveBuilderBase.ArchiveType archiveType) Contructor used as build method for this classFile name normalization using default translation MapFile name normalization using provided translation MapFixityTests
(File file, String checksumType, LoggerInf inLogger) Constructur - primary form Performs checksum creation on file and extacts file sizeFixityTests
(InputStream ioStream, String checksumType, LoggerInf inLogger) Constructer - primary form Performs checksum creation on file and extacts file sizeListProcessorSimple
(TFrame framework) protected
LockContent
(String lockContent) Lock info extracted from stringMessageDigestValue
(File file, String checksumTypeS, LoggerInf inLogger) Constructur - primary form Performs checksum creation on file and extacts file sizeMessageDigestValue
(InputStream inputStream, String checksumTypeS, LoggerInf inLogger) Constructer - primary form Performs checksum creation on file and extacts file sizeTar
(File fromDir, File toArchive, LoggerInf logger, ArchiveBuilder.ArchiveType archiveType) Tar
(File fromDir, OutputStream outputStream, LoggerInf logger) Tar
(File fromDir, OutputStream outputStream, LoggerInf logger, ArchiveBuilder.ArchiveType archiveType) Tar
(File fromDir, File toArchive, LoggerInf logger, ArchiveBuilderBase.ArchiveType archiveType) Tar
(File fromDir, OutputStream outputStream, LoggerInf logger) Tar
(File fromDir, OutputStream outputStream, LoggerInf logger, ArchiveBuilderBase.ArchiveType archiveType) TarGZ
(File fromDir, OutputStream outputStream, LoggerInf logger) TarGZ
(File fromDir, OutputStream outputStream, LoggerInf logger) TFileLogger
(String mFrameID, String filePath, Properties prop) Constructs a framework, loading properties from one or more property files.Constructs a framework, loading properties from one or more property files.Constructs a framework, loading properties from one or more property files.TFrameInit
(javax.servlet.ServletConfig servletConfig, String serviceName) Check InitParameters from web.xml to discover Properties files then build TFrame properties resolverConstructorZip
(File fromDir, File toArchive, LoggerInf logger, ArchiveBuilder.ArchiveType archiveType) Zip
(File fromDir, OutputStream outputStream, LoggerInf logger) Zip
(File fromDir, File toArchive, LoggerInf logger, ArchiveBuilderBase.ArchiveType archiveType) Zip
(File fromDir, OutputStream outputStream, LoggerInf logger)