psdi.iface.webservices

Class JAXWSMerge

  • java.lang.Object
    • psdi.iface.webservices.JAXWSMerge


  • public class JAXWSMerge
    extends java.lang.Object
    Manage merging deployment and undeployment artifacts of Web Services to the Application Server
    • Constructor Summary

      Constructors 
      Constructor and Description
      JAXWSMerge()
      Default Constructor
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void merge(java.lang.String depModuleDir, java.lang.String targetDir)
      Merge Web Service definition in web.xml and webservices.xml
      byte[] readXMLFile(java.lang.String filepath)
      Read XML file to process data.
      void writeBytesToXMLFile(byte[] in, java.lang.String filepath)
      Write byte array to the file
      static void writeDocumentToXMLFile(org.jdom2.Document doc, java.lang.String filepath)
      Write document to the file
      void writeStreamToXMLFile(java.io.InputStream inputStream, java.lang.String filepath)
      Write byte array to the file
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEPLOYMENT_MODULE_BACKUP

        public static final java.lang.String DEPLOYMENT_MODULE_BACKUP
        See Also:
        Constant Field Values
    • Constructor Detail

      • JAXWSMerge

        public JAXWSMerge()
        Default Constructor
    • Method Detail

      • merge

        public void merge(java.lang.String depModuleDir,
                          java.lang.String targetDir)
                   throws java.lang.Exception
        Merge Web Service definition in web.xml and webservices.xml
        Parameters:
        depModuleDir - deployment module directory
        targetDir - target directory
        Throws:
        java.lang.Exception - Exception
      • writeBytesToXMLFile

        public void writeBytesToXMLFile(byte[] in,
                                        java.lang.String filepath)
                                 throws java.lang.Exception
        Write byte array to the file
        Parameters:
        in - Data to write.
        filepath - Give path of the file.
        Throws:
        java.lang.Exception - Exception
      • writeStreamToXMLFile

        public void writeStreamToXMLFile(java.io.InputStream inputStream,
                                         java.lang.String filepath)
                                  throws java.lang.Exception
        Write byte array to the file
        Parameters:
        inputStream - Data to write.
        filepath - Give path of the file.
        Throws:
        java.lang.Exception - Exception
      • writeDocumentToXMLFile

        public static void writeDocumentToXMLFile(org.jdom2.Document doc,
                                                  java.lang.String filepath)
                                           throws java.lang.Exception
        Write document to the file
        Parameters:
        doc - Data to write.
        filepath - Give path of the file.
        Throws:
        java.lang.Exception - Exception
      • readXMLFile

        public byte[] readXMLFile(java.lang.String filepath)
                           throws java.lang.Exception
        Read XML file to process data.
        Parameters:
        filepath - Give path of the file.
        Returns:
        byte representataion of the data
        Throws:
        MXSystemException - MAXIMO exception
        java.lang.Exception