Package org.apache.axis2.om

Examples of org.apache.axis2.om.OMAttribute


    protected void processServiceModuleConfig(Iterator moduleConfigs ,
                                              ParameterInclude parent, ServiceGroupDescription service)
            throws DeploymentException {
        while (moduleConfigs.hasNext()) {
            OMElement moduleConfig = (OMElement) moduleConfigs.next();
            OMAttribute moduleName_att = moduleConfig.getAttribute(
                    new QName(ATTNAME));
            if(moduleName_att == null){
                throw new DeploymentException("Invalid module configuration");
            } else {
                String module = moduleName_att.getValue();
                ModuleConfiguration moduleConfiguration =
                        new ModuleConfiguration(new QName(module),parent);
                Iterator paramters=  moduleConfig.getChildrenWithName(new QName(PARAMETERST));
                processParameters(paramters,moduleConfiguration,parent);
                service.addModuleConfig(moduleConfiguration);
View Full Code Here


    protected void processModuleRefs(Iterator moduleRefs ,ServiceGroupDescription serviceGroup)
            throws DeploymentException {
        try {
            while (moduleRefs.hasNext()) {
                OMElement moduleref = (OMElement) moduleRefs.next();
                OMAttribute moduleRefAttribute = moduleref.getAttribute(
                        new QName(REF));
                if(moduleRefAttribute !=null){
                    String refName = moduleRefAttribute.getValue();
                    if(engine.getModule(new QName(refName)) == null) {
                        throw new DeploymentException(Messages.getMessage(
                                DeploymentErrorMsgs.MODEULE_NOT_FOUND, refName));
                    } else {
                        serviceGroup.addModuleref(new QName(refName));
View Full Code Here

        // now we have a child to check. If its an OMElement and matches the criteria, then we are done
        while (needToMoveForward) {

            // check the current node for the criteria
            if (currentChild instanceof OMElement) {
                OMAttribute attr =
                        ((OMElement) currentChild).getFirstAttribute(
                                attributeName);
                if ((attr != null)
                        && attr.getValue().equalsIgnoreCase(attributeValue)) {
                    isMatchingNodeFound = true;
                    needToMoveForward = false;
                } else {
                    currentChild = currentChild.getNextSibling();
                    needToMoveForward = !(currentChild == null);
View Full Code Here

            Iterator msgRecives = config_element.getChildrenWithName(new QName(MESSAGERECEIVER));
            while (msgRecives.hasNext()) {
                OMElement msgRev = (OMElement) msgRecives.next();
                MessageReceiver msgrecivere= loadMessageReceiver(
                        Thread.currentThread().getContextClassLoader(),msgRev);
                OMAttribute mepAtt = msgRev.getAttribute(new QName(MEP));
                ((AxisConfigurationImpl)axisConfiguration).addMessageReceiver(
                        mepAtt.getValue(),msgrecivere);
            }

            //processing Dispatching Order
            OMElement dispatch_order = config_element.getFirstChildWithName(
                    new QName(DIPSTCH_ORDER));
View Full Code Here

    }

    private void processAxisStorage(OMElement storageElement) throws DeploymentException {
        AxisStorage axisStorage;
        if(storageElement !=null){
            OMAttribute className =  storageElement.getAttribute(new QName(CLASSNAME));
            if(className== null){
                throw new DeploymentException("Invalid Storage Class defintion , class name missing");
            else {
                String classNameStr =className.getValue();
                Class stoarge ;
                if (classNameStr != null &&!"".equals(classNameStr)) {
                    try {
                        stoarge = Class.forName(classNameStr,true,
                                Thread.currentThread().getContextClassLoader());
View Full Code Here

        while (trs_senders.hasNext()) {
            TransportOutDescription transportout;
            OMElement transport = (OMElement) trs_senders.next();

            // getting trsnport Name
            OMAttribute trsName = transport.getAttribute(
                    new QName(ATTNAME));
            if(trsName !=null){
                String name = trsName.getValue();
                transportout = new TransportOutDescription(new QName(name));

                //tranport impl class
                OMAttribute trsClas = transport.getAttribute(
                        new QName(CLASSNAME));
                if(trsClas == null){
                    throw new DeploymentException("TransportSEnder Implementation class is required " +
                            "for the transport" + name);
                }
                String clasName = trsClas.getValue();
                Class sender;
                try {
                    sender =Class.forName(clasName,true,
                            Thread.currentThread()
                                    .getContextClassLoader());
View Full Code Here

        while (trs_senders.hasNext()) {
            TransportInDescription transportIN;
            OMElement transport = (OMElement) trs_senders.next();

            // getting trsnport Name
            OMAttribute trsName = transport.getAttribute(
                    new QName(ATTNAME));
            if(trsName !=null){
                String name = trsName.getValue();
                transportIN = new TransportInDescription(new QName(name));

                //tranport impl class
                OMAttribute trsClas = transport.getAttribute(new QName(CLASSNAME));
                if(trsClas !=null) {
                    try {
                        String clasName = trsClas.getValue();
                        Class receiverClass =Class.forName(clasName,true,
                                Thread.currentThread()
                                        .getContextClassLoader());
                        TransportListener receiver = (TransportListener) receiverClass.newInstance();
                        transportIN.setReceiver(receiver);
View Full Code Here

     */
    private void processObservers(Iterator oservers) throws DeploymentException {
        while (oservers.hasNext()) {
            OMElement observerelement = (OMElement) oservers.next();
            AxisObserver observer;
            OMAttribute trsClas = observerelement.getAttribute(
                    new QName(CLASSNAME));
            String clasName;
            if (trsClas !=null) {
                clasName = trsClas.getValue();
            } else {
                throw new DeploymentException("Observer Implementation Class is requird");
            }
            try {
                Class observerclass = Class.forName(clasName, true, Thread.currentThread().
View Full Code Here

     * @param moduleRefs  <code>java.util.Iterator</code>
     */
    protected void processModuleRefs(Iterator moduleRefs) {
        while (moduleRefs.hasNext()) {
            OMElement moduleref = (OMElement) moduleRefs.next();
            OMAttribute moduleRefAttribute = moduleref.getAttribute(
                    new QName(REF));
            String refName = moduleRefAttribute.getValue();
            engine.addModule(new QName(refName));
        }
    }
View Full Code Here

    protected void processModuleConfig(Iterator moduleConfigs ,
                                       ParameterInclude parent, AxisConfiguration config)
            throws DeploymentException {
        while (moduleConfigs.hasNext()) {
            OMElement moduleConfig = (OMElement) moduleConfigs.next();
            OMAttribute moduleName_att = moduleConfig.getAttribute(
                    new QName(ATTNAME));
            if(moduleName_att == null){
                throw new DeploymentException("Invalid module configuration");
            } else {
                String module = moduleName_att.getValue();
                ModuleConfiguration moduleConfiguration =
                        new ModuleConfiguration(new QName(module),parent);
                Iterator paramters=  moduleConfig.getChildrenWithName(new QName(PARAMETERST));
                processParameters(paramters,moduleConfiguration,parent);
                ((AxisConfigurationImpl)config).addModuleConfig(moduleConfiguration);
View Full Code Here

TOP

Related Classes of org.apache.axis2.om.OMAttribute

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.