|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.archive.webinterface.BatchGUI
public final class BatchGUI
Utility class for creating the web page content for the batchjob pages.
Method Summary | |
---|---|
static void |
execute(javax.servlet.jsp.PageContext context)
Method for executing a batchjob. |
static java.io.File |
getBatchDir()
Retrieves the directory for the batchDir (defined in settings). |
static void |
getBatchOverviewPage(javax.servlet.jsp.PageContext context)
Method for creating the batchjob overview page. |
static java.io.File |
getJarFile(java.lang.String classPath)
Method for retrieving and validating the arc-file for a given DOOM! |
static java.lang.String |
getJobName(java.lang.String classPath)
Method for extracting the name of the batchjob from the batchjob path. |
static void |
getPageForClass(javax.servlet.jsp.PageContext context)
Method for creating the page for a batchjob. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void getBatchOverviewPage(javax.servlet.jsp.PageContext context) throws ArgumentNotValid, java.io.IOException
context
- The context of the page. Contains the locale for the
language package.
ArgumentNotValid
- If the PageContext is null.
java.io.IOException
- If it is not possible to write to the JspWriter.public static void getPageForClass(javax.servlet.jsp.PageContext context) throws UnknownID, ArgumentNotValid, IllegalState, ForwardedToErrorPage, IOFailure
context
- The context of the page. Must contains a class name of
the batchjob.
UnknownID
- If the class cannot be found.
ArgumentNotValid
- If the context is null.
IllegalState
- If the class is not an instance of FileBatchJob.
ForwardedToErrorPage
- If the context does not contain the
required information.
IOFailure
- If there is problems with the JspWriter.public static void execute(javax.servlet.jsp.PageContext context)
context
- The page context containing the needed information for
executing the batchjob.public static java.lang.String getJobName(java.lang.String classPath) throws ArgumentNotValid
classPath
- The complete path for class (retrieve by
class.getName()).
ArgumentNotValid
- If the classPath is either null or empty.public static java.io.File getBatchDir()
public static java.io.File getJarFile(java.lang.String classPath) throws ArgumentNotValid, IOFailure
classPath
- The path to the file.
ArgumentNotValid
- If the classPath argument is null or the empty
string.
IOFailure
- If the file does not exist, or it is not a valid file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |