Class MetacatHandler

java.lang.Object
edu.ucsb.nceas.metacat.MetacatHandler

public class MetacatHandler extends Object
General entry point for the Metacat server which is called from various mechanisms such as the standard MetacatServlet class and the various web service servlets such as RestServlet class. All application logic should be encapsulated in this class, and the calling classes should only contain parameter marshaling and unmarshalling code, delegating all else to this MetacatHandler instance.
Author:
Matthew Jones
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    read(String localId, String dataType)
    Read a document from metacat and return the InputStream.
    read(org.dataone.service.types.v1.Identifier pid)
    Read the object input stream for a given pid
    protected String
    registerToDB(org.dataone.service.types.v1.Identifier pid, MetacatHandler.Action action, DBConnection conn, String user, String docType, org.dataone.service.types.v1.Identifier prePid)
    Register the dataone identifier into database (the xml_documents/revisions, identifier tables).
    save(org.dataone.service.types.v2.SystemMetadata sysmeta, boolean changeModificationDate, MetacatHandler.Action action, String docType, InputStream object, org.dataone.service.types.v2.SystemMetadata preSys, String user)
    Save the object into disk
    protected void
    sendNotSupportMessage(javax.servlet.http.HttpServletResponse response)
    Send back the not-support message
    protected void
    validateSciMeta(org.dataone.service.types.v1.Identifier pid, org.dataone.service.types.v1.ObjectFormatIdentifier formatId)
    Validate a scientific metadata object.
    protected void
    validateXmlSciMeta(org.dataone.service.types.v1.Identifier pid, String formatId)
    Validate an XML object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait