psdi.iface.webservices

Class WebServicesUtil

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


  • public class WebServicesUtil
    extends java.lang.Object
    Web Services Utility class.
    • Constructor Summary

      Constructors 
      Constructor and Description
      WebServicesUtil() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static byte[] convertToBytes(org.apache.axiom.om.OMElement element) 
      static org.jdom2.Document convertToJDOM(org.apache.axiom.om.OMElement element)
      Utility method to convert W3C DOM Document to JDOM Document
      static org.apache.axiom.om.OMElement convertToOMElement(byte[] data)
      Utility method to convert JDOM Document to W3C DOM Document
      static org.apache.axiom.om.OMElement convertToOMElement(org.jdom2.Document doc)
      Utility method to convert JDOM Document to W3C DOM Document
      static org.apache.axiom.om.OMElement convertToOMElement(java.io.InputStream is)
      Utility method to convert JDOM Document to W3C DOM Document
      static java.lang.String getMEAWebAPPURL()
      Get the MEA Web Application URL
      static java.lang.String getResourceURL(java.lang.String contextURL, java.lang.String resourceName)
      Helper method to return the Resource URL given the context URL and the resource name
      static java.lang.String getSchema(java.lang.String resReq) 
      protected static boolean isAppServerContainerDeployment() 
      static boolean isDynamicWSDLAndSchema() 
      protected static boolean isVerifyWebAppUrl() 
      static void verifyWebAppURL()
      Verify the MEA web app url.
      • Methods inherited from class java.lang.Object

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

      • WebServicesUtil

        public WebServicesUtil()
    • Method Detail

      • isVerifyWebAppUrl

        protected static boolean isVerifyWebAppUrl()
                                            throws java.rmi.RemoteException,
                                                   MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • isDynamicWSDLAndSchema

        public static boolean isDynamicWSDLAndSchema()
                                              throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • verifyWebAppURL

        public static void verifyWebAppURL()
                                    throws java.rmi.RemoteException,
                                           MXException
        Verify the MEA web app url. Will ping the VerificationServlet for validating the url.
        Throws:
        MXException
        java.rmi.RemoteException
      • getSchema

        public static java.lang.String getSchema(java.lang.String resReq)
                                          throws MXException,
                                                 java.rmi.RemoteException
        Parameters:
        resReq - the requested schema.
        Returns:
        the schema file content for the requested schema resReq
        Throws:
        MXException
        java.rmi.RemoteException
      • getMEAWebAPPURL

        public static java.lang.String getMEAWebAPPURL()
                                                throws MXException
        Get the MEA Web Application URL
        Returns:
        the MEA Web Application URL
        Throws:
        MXException - Maximo Exception
      • getResourceURL

        public static java.lang.String getResourceURL(java.lang.String contextURL,
                                                      java.lang.String resourceName)
                                               throws MXException
        Helper method to return the Resource URL given the context URL and the resource name
        Parameters:
        contextURL - the context URL
        resourceName - the resource name
        Returns:
        Resource URL
        Throws:
        MXException - Maximo Exception
      • convertToOMElement

        public static org.apache.axiom.om.OMElement convertToOMElement(org.jdom2.Document doc)
                                                                throws MXException
        Utility method to convert JDOM Document to W3C DOM Document
        Parameters:
        doc - JDOM Document
        Returns:
        W3C DOM Document
        Throws:
        org.jdom2.JDOMException - JDOM Exception
        MXException
      • convertToOMElement

        public static org.apache.axiom.om.OMElement convertToOMElement(java.io.InputStream is)
                                                                throws MXException
        Utility method to convert JDOM Document to W3C DOM Document
        Parameters:
        is - the xml doc as a stream
        Returns:
        the xml doc as an OMElement
        Throws:
        org.jdom2.JDOMException - JDOM Exception
        MXException
      • convertToOMElement

        public static org.apache.axiom.om.OMElement convertToOMElement(byte[] data)
                                                                throws MXException
        Utility method to convert JDOM Document to W3C DOM Document
        Parameters:
        data -
        Returns:
        W3C DOM Document
        Throws:
        org.jdom2.JDOMException - JDOM Exception
        MXException
      • convertToJDOM

        public static org.jdom2.Document convertToJDOM(org.apache.axiom.om.OMElement element)
                                                throws MXException
        Utility method to convert W3C DOM Document to JDOM Document
        Parameters:
        element - xml document
        Returns:
        JDOM Document
        Throws:
        org.jdom2.JDOMException - JDOM Exception
        MXException
      • convertToBytes

        public static byte[] convertToBytes(org.apache.axiom.om.OMElement element)
                                     throws MXException
        Throws:
        MXException