edu.ucsb.nceas.metacat
Class RemoteDocument

java.lang.Object
  extended byedu.ucsb.nceas.metacat.RemoteDocument

public class RemoteDocument
extends java.lang.Object

A class represents a document in remote metacat server. During the replication between two metacats, metadata (xml documents) might be replicated from Metacat A to Metacat B. But data file didn't. Sometime, user in Metacat B might query the data file which doesn't riside in Metacat B. We need to download it from remote metacat server A and output it to user. But it still doesn't reside in Metacat B.


Constructor Summary
RemoteDocument(java.lang.String myDocIdWithoutRevision, java.lang.String myRevision, java.lang.String myUserName, java.lang.String myPassWord, java.lang.String myZipEntryPath)
          Constructor of RemoteDcoument
 
Method Summary
 java.lang.String getDocIdWithoutRevsion()
          Method to get docidWithout revision
 java.lang.String getDocType()
          Method to get docType
 java.lang.String getRevision()
          Method to get revsion
 void readDocumentFromRemoteServer(javax.servlet.ServletOutputStream outPut)
          Method to read both xml and data file from remote server and put the output into the given output stream
 void readDocumentFromRemoteServerByZip(java.util.zip.ZipOutputStream outPut)
          Method to read both xml and data file from remote server by zip output and put the output into the given output stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteDocument

public RemoteDocument(java.lang.String myDocIdWithoutRevision,
                      java.lang.String myRevision,
                      java.lang.String myUserName,
                      java.lang.String myPassWord,
                      java.lang.String myZipEntryPath)
               throws java.lang.Exception
Constructor of RemoteDcoument

Method Detail

getDocIdWithoutRevsion

public java.lang.String getDocIdWithoutRevsion()
Method to get docidWithout revision


getRevision

public java.lang.String getRevision()
Method to get revsion


getDocType

public java.lang.String getDocType()
Method to get docType


readDocumentFromRemoteServer

public void readDocumentFromRemoteServer(javax.servlet.ServletOutputStream outPut)
                                  throws java.lang.Exception
Method to read both xml and data file from remote server and put the output into the given output stream

Throws:
java.lang.Exception

readDocumentFromRemoteServerByZip

public void readDocumentFromRemoteServerByZip(java.util.zip.ZipOutputStream outPut)
                                       throws java.lang.Exception
Method to read both xml and data file from remote server by zip output and put the output into the given output stream

Throws:
java.lang.Exception


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.