Package com.sun.enterprise.ee.admin.lbadmin.reader.api

Examples of com.sun.enterprise.ee.admin.lbadmin.reader.api.WebModuleReader


    /**
     * Visit reader class
     */
    public void visit(BaseReader br) {
        // FIXME, make as assert here about no class cast exception
        WebModuleReader wRdr = (WebModuleReader) br;

        try {
            _w.setContextRoot(wRdr.getContextRoot());
        } catch (LbReaderException le) {
            // XXX ignore
        }

        try {
            String url = wRdr.getErrorUrl();
            if (( url != null) && ( !"".equals(url))) {
                // XXX start of bug fix for 6171814
                _c.createAttribute(Cluster.WEB_MODULE,"error-url", "ErrorUrl",
            AttrProp.CDATA,
            null, "");
                // XXX end of bug fix for 6171814
                _w.setErrorUrl(wRdr.getErrorUrl());
            }
        } catch (LbReaderException le) {
            // XXX ignore
        }

        try {
            _w.setEnabled(Boolean.toString(wRdr.getLbEnabled()));
        } catch (LbReaderException le) {
            // XXX ignore
        }

        try {
            _w.setDisableTimeoutInMinutes(wRdr.getDisableTimeoutInMinutes());
        } catch (LbReaderException le) {
            // XXX ignore
        }

        IdempotentUrlPatternReader[] iRdrs = null;
        try {
            iRdrs = wRdr.getIdempotentUrlPattern();
        } catch (LbReaderException le) {
            // XXX ignore
        }

        if ((iRdrs != null) &&  (iRdrs.length > 0 ) ){
View Full Code Here


                WebModule wMod = (WebModule) bean;
                if ( ( wMod != null) &&
                    ( wMod.getObjectType().equals( IAdminConstants.USER))) {
                   
                    String l =lhelper.getSunWebXmlPathForModule(wMod.getName());
                    WebModuleReader wr = new WebModuleReaderImpl(_configCtx,
                        refs[i], bean, createSunWebApp(l));
                    list.add(wr);
                }
            }else if(bean instanceof EjbModule) {
                    List l1 = lhelper.getSunEjbJarXmlPathForApplication(
                                name);
                    int size1 = l1.size();
                    for (int j=0; j<size1; j++) {
                        List<WebserviceEndpoint> wsepList =
                           createWebserviceEndpoint((String)l1.get(j));
                        for(WebserviceEndpoint wsep: wsepList){
                            WebModuleReader wr = new EjbJarModuleReaderImpl(
                                    _configCtx, refs[i], wsep );
                            list.add(wr);
                         }
                     }
            } else if (bean instanceof J2eeApplication) {
                J2eeApplication app = (J2eeApplication) bean;
                if ( (app != null) &&
                    (app.getObjectType().equals( IAdminConstants.USER))) {
                   
                    // get all the web modules inside application
                    List l = lhelper.getSunWebXmlPathForApplication(
                                app.getName());
                    int size = l.size();
                    for (int j=0; j<size; j++) {
                        WebModuleReader wr = new WebModuleReaderImpl(_configCtx,
                            refs[i], null,
                            createSunWebApp((String)l.get(j)));
                        list.add(wr);
                    }
                    List l1 = lhelper.getSunEjbJarXmlPathForApplication(
                                app.getName());
                    int size1 = l1.size();
                    for (int j=0; j<size1; j++) {
                        List<WebserviceEndpoint> wsepList = createWebserviceEndpoint((String)l1.get(j));
                        for(WebserviceEndpoint wsep: wsepList){
                            WebModuleReader wr = new EjbJarModuleReaderImpl(_configCtx,
                                refs[i], wsep );
                            list.add(wr);
                        }
                    }
                }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.ee.admin.lbadmin.reader.api.WebModuleReader

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.