fedora.client.utility.export
Class AutoExporter

java.lang.Object
  extended by fedora.client.utility.export.AutoExporter

public class AutoExporter
extends java.lang.Object

Title: AutoExporter.java

Description: Utility class to make API-M SOAP calls to a repository.

Version:
$Id: AutoExporter.java 5166 2006-10-25 11:05:45Z eddie $
Author:
cwilper@cs.cornell.edu

Constructor Summary
AutoExporter(FedoraAPIA apia, FedoraAPIM apim)
           
 
Method Summary
static void export(FedoraAPIA apia, FedoraAPIM apim, java.lang.String pid, java.lang.String format, java.lang.String exportContext, java.io.OutputStream outStream)
           
 void export(java.lang.String pid, java.lang.String format, java.lang.String exportContext, java.io.OutputStream outStream)
           
static void getObjectXML(FedoraAPIA apia, FedoraAPIM apim, java.lang.String pid, java.io.OutputStream outStream)
           
 void getObjectXML(java.lang.String pid, java.io.OutputStream outStream)
           
static void validateFormat(java.lang.String format)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoExporter

public AutoExporter(FedoraAPIA apia,
                    FedoraAPIM apim)
             throws java.net.MalformedURLException,
                    javax.xml.rpc.ServiceException
Throws:
java.net.MalformedURLException
javax.xml.rpc.ServiceException
Method Detail

export

public void export(java.lang.String pid,
                   java.lang.String format,
                   java.lang.String exportContext,
                   java.io.OutputStream outStream)
            throws java.rmi.RemoteException,
                   java.io.IOException
Throws:
java.rmi.RemoteException
java.io.IOException

export

public static void export(FedoraAPIA apia,
                          FedoraAPIM apim,
                          java.lang.String pid,
                          java.lang.String format,
                          java.lang.String exportContext,
                          java.io.OutputStream outStream)
                   throws java.rmi.RemoteException,
                          java.io.IOException
Throws:
java.rmi.RemoteException
java.io.IOException

getObjectXML

public void getObjectXML(java.lang.String pid,
                         java.io.OutputStream outStream)
                  throws java.rmi.RemoteException,
                         java.io.IOException
Throws:
java.rmi.RemoteException
java.io.IOException

getObjectXML

public static void getObjectXML(FedoraAPIA apia,
                                FedoraAPIM apim,
                                java.lang.String pid,
                                java.io.OutputStream outStream)
                         throws java.rmi.RemoteException,
                                java.io.IOException
Throws:
java.rmi.RemoteException
java.io.IOException

validateFormat

public static void validateFormat(java.lang.String format)
                           throws java.io.IOException
Throws:
java.io.IOException