|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.ucsb.nceas.metacat.RemoteDocument
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 |
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
Method Detail |
public java.lang.String getDocIdWithoutRevsion()
public java.lang.String getRevision()
public java.lang.String getDocType()
public void readDocumentFromRemoteServer(javax.servlet.ServletOutputStream outPut) throws java.lang.Exception
java.lang.Exception
public void readDocumentFromRemoteServerByZip(java.util.zip.ZipOutputStream outPut) throws java.lang.Exception
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |