org.jboss.soa.esb.actions.soap
Class SchemaLocationParser

java.lang.Object
  extended by org.jboss.soa.esb.actions.soap.SchemaLocationParser

public class SchemaLocationParser
extends java.lang.Object


Constructor Summary
SchemaLocationParser(SchemaDeployer deployer)
          The constructor for this class takes a deployer which is used deploy the XSD file given a filename.
 
Method Summary
 java.lang.String deployXSD(java.lang.String location)
          Call the deployer to deploy the XSD.
 void getImport(org.w3c.dom.Element element)
          Extract an import element.
static java.lang.String getLocalPart(org.w3c.dom.Node child)
          Utility method for parsing local part of a QName.
 void getPort(org.w3c.dom.Element element)
          Extract the port.
 void getSchema(org.w3c.dom.Element element)
          Extract the schema from an element.
 java.lang.String getSoapAddress()
           
 void getSOAPAddress(org.w3c.dom.Element element)
          Get the SOAP Adddress.
 void getSOAPAddress(java.lang.String wsdl)
          Get the SOAP Address attribute from the WSDL.
 java.lang.String parse(java.lang.String wsdl)
          Parse the wsdl for any specified schemaLocations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaLocationParser

public SchemaLocationParser(SchemaDeployer deployer)
                     throws javax.xml.parsers.ParserConfigurationException
The constructor for this class takes a deployer which is used deploy the XSD file given a filename.

Parameters:
deployer -
Throws:
javax.xml.parsers.ParserConfigurationException
Method Detail

getSoapAddress

public java.lang.String getSoapAddress()

getSOAPAddress

public void getSOAPAddress(java.lang.String wsdl)
                    throws org.xml.sax.SAXException,
                           java.io.IOException,
                           javax.xml.transform.TransformerException
Get the SOAP Address attribute from the WSDL.

Parameters:
wsdl -
Throws:
org.xml.sax.SAXException
java.io.IOException
javax.xml.transform.TransformerException

parse

public java.lang.String parse(java.lang.String wsdl)
                       throws org.xml.sax.SAXException,
                              java.io.IOException,
                              javax.xml.transform.TransformerException
Parse the wsdl for any specified schemaLocations.

Parameters:
wsdl -
Returns:
Throws:
org.xml.sax.SAXException
java.io.IOException
javax.xml.transform.TransformerException

getSchema

public void getSchema(org.w3c.dom.Element element)
Extract the schema from an element.

Parameters:
element -

getPort

public void getPort(org.w3c.dom.Element element)
Extract the port.

Parameters:
element -

getImport

public void getImport(org.w3c.dom.Element element)
Extract an import element.

Parameters:
element -

getSOAPAddress

public void getSOAPAddress(org.w3c.dom.Element element)
Get the SOAP Adddress.

Parameters:
element -

deployXSD

public java.lang.String deployXSD(java.lang.String location)
Call the deployer to deploy the XSD.

Parameters:
location -
Returns:

getLocalPart

public static java.lang.String getLocalPart(org.w3c.dom.Node child)
Utility method for parsing local part of a QName.

Parameters:
child -
Returns: