Class FileServer

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class FileServer
    extends FileServerType
    This class describes a file server that can be used to stage data to and from a site.
    Author:
    Karan Vahi
    • Constructor Detail

      • FileServer

        public FileServer()
        The default constructor.
      • FileServer

        public FileServer​(java.lang.String protocol,
                          java.lang.String urlPrefix,
                          java.lang.String mountPoint)
        Overloaded constructor.
        Parameters:
        protocol - protocol employed by the File Server.
        urlPrefix - the url prefix
        mountPoint - the mount point for the server.
    • Method Detail

      • getURL

        public java.lang.String getURL()
        Returns the externally accessible URL composed of url prefix and the mount point
        Returns:
      • toXML

        public void toXML​(java.io.Writer writer,
                          java.lang.String indent)
                   throws java.io.IOException
        Writes out the xml description of the object.
        Specified by:
        toXML in class AbstractSiteData
        Parameters:
        writer - is a Writer opened and ready for writing. This can also be a StringWriter for efficient output.
        indent - the indent to be used.
        Throws:
        java.io.IOException - if something fishy happens to the stream.
      • accept

        public void accept​(SiteDataVisitor visitor)
                    throws java.io.IOException
        Description copied from class: AbstractSiteData
        Accept method for the SiteData classes that accepts a visitor
        Specified by:
        accept in class AbstractSiteData
        Parameters:
        visitor -
        Throws:
        java.io.IOException - if something fishy happens to the stream.
      • getProfiles

        public Profiles getProfiles()
        Returns the associated profiles
        Returns: