gov.noaa.gdsg.xmldbremote.commandLine
Class ResourceManager

java.lang.Object
  extended by gov.noaa.gdsg.xmldbremote.commandLine.ResourceManager

public class ResourceManager
extends java.lang.Object

Inserts the specified file into the specified database.

Version:
$Id: ResourceManager.java,v 1.1 2004/10/29 17:47:04 mrxtravis Exp $
Author:
tns

Constructor Summary
ResourceManager()
          Creates a new instance of InsertResource
 
Method Summary
static CollectionManager createCollectionManager(org.apache.commons.cli.CommandLine cl)
          Create the collection manager with command line args
static void doDelete(org.apache.commons.cli.CommandLine cl)
           
static void doInsert(org.apache.commons.cli.CommandLine cl)
           
static org.xmldb.api.base.Database getDatabase(org.apache.commons.cli.CommandLine cl)
          If l is specified use that as an endpoint, otherwise use the default
static org.w3c.dom.Node isToNode(java.io.InputStream is)
          Input Stream To Node
static void main(java.lang.String[] args)
           
static void queryResource(org.apache.commons.cli.CommandLine cl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceManager

public ResourceManager()
Creates a new instance of InsertResource

Method Detail

main

public static void main(java.lang.String[] args)
Parameters:
args - the command line arguments

doDelete

public static void doDelete(org.apache.commons.cli.CommandLine cl)
                     throws java.lang.Exception
Throws:
java.lang.Exception

queryResource

public static void queryResource(org.apache.commons.cli.CommandLine cl)
                          throws java.lang.Exception
Throws:
java.lang.Exception

doInsert

public static void doInsert(org.apache.commons.cli.CommandLine cl)
                     throws java.lang.Exception
Throws:
java.lang.Exception

isToNode

public static org.w3c.dom.Node isToNode(java.io.InputStream is)
                                 throws java.lang.Exception
Input Stream To Node

Throws:
java.lang.Exception

createCollectionManager

public static CollectionManager createCollectionManager(org.apache.commons.cli.CommandLine cl)
                                                 throws java.lang.Exception
Create the collection manager with command line args

Throws:
java.lang.Exception

getDatabase

public static org.xmldb.api.base.Database getDatabase(org.apache.commons.cli.CommandLine cl)
                                               throws java.lang.Exception
If l is specified use that as an endpoint, otherwise use the default

Parameters:
cl - The command line.
Throws:
java.lang.Exception


Copyright © 2004-2005 DOC > NOAA > NGDC > EDSD. All Rights Reserved.