|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ucsb.nceas.metacat.util.MetacatUtil
public class MetacatUtil
A suite of utility classes for the metadata catalog server
| Field Summary | |
|---|---|
static AbstractDatabase |
dbAdapter
|
static java.lang.String |
XMLFORMAT
|
| Constructor Summary | |
|---|---|
MetacatUtil()
|
|
| Method Summary | |
|---|---|
static void |
copyFile(java.lang.String sourceName,
java.lang.String destName)
Copy a file between two locations specified as strings. |
static java.lang.String |
getLocalReplicationServerName()
Method to get the name of local replication server |
static java.util.Vector<java.lang.String> |
getOptionList(java.lang.String optiontext)
|
static java.lang.String |
normalize(java.lang.String s)
Normalizes a string read from DB. |
static java.util.Hashtable<java.lang.String,java.lang.String> |
parseQuery(java.lang.String query)
Utility method to parse the query part of a URL into parameters. |
static java.lang.String |
replaceWhiteSpaceForURL(java.lang.String urlHasWhiteSpace)
A method to replace whitespace in url |
static void |
writeDebugToDelimiteredFile(java.lang.String debugInfo,
boolean newLine)
Writes debug information into a file in delimitered format |
static void |
writeDebugToFile(java.lang.String debugInfo)
Writes debug information into a file. |
static java.lang.String |
writeTempUploadFile(com.oreilly.servlet.multipart.FilePart filePart,
java.lang.String fileName)
Write the uploaded file to disk for temporary storage before moving it to its final Metacat location. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String XMLFORMAT
public static AbstractDatabase dbAdapter
| Constructor Detail |
|---|
public MetacatUtil()
| Method Detail |
|---|
public static java.util.Hashtable<java.lang.String,java.lang.String> parseQuery(java.lang.String query)
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic static java.util.Vector<java.lang.String> getOptionList(java.lang.String optiontext)
public static java.lang.String normalize(java.lang.String s)
public static java.lang.String getLocalReplicationServerName()
public static java.lang.String replaceWhiteSpaceForURL(java.lang.String urlHasWhiteSpace)
public static void writeDebugToFile(java.lang.String debugInfo)
public static void writeDebugToDelimiteredFile(java.lang.String debugInfo,
boolean newLine)
debugInfo - the debug informationnewLine - append the debug info to a line or not
public static java.lang.String writeTempUploadFile(com.oreilly.servlet.multipart.FilePart filePart,
java.lang.String fileName)
throws java.io.IOException
filePart - the FilePart object containing the file form elementfileName - the name of the file to be written to disk
java.io.IOException
public static void copyFile(java.lang.String sourceName,
java.lang.String destName)
throws java.io.IOException
sourceName - the source file to read from diskdestName - the destination file on disk
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||