All Downloads are FREE. Search and download functionalities are using the official Maven repository.

grizzly.protocolEdit.jsf Maven / Gradle / Ivy









   
    $page{configName} default="server-config");
        getRequestValue(key="name" value="#{pageSession.Name}");
        urlencode(value="#{pageSession.Name}" encoding="UTF-8" result="#{pageSession.encodedName}");
        getRequestValue(key="cancelTo" value="#{pageSession.cancelTo}" default="web/grizzly/protocols.jsf");
        setPageSessionAttribute(key="parentPage" value="#{request.contextPath}/#{pageSession.cancelTo}");
        setPageSessionAttribute(key="selfPage" value="#{request.contextPath}/web/grizzly/protocolEdit.jsf?name=#{pageSession.encodedName}&cancelTo=#{pageSession.cancelTo}&configName=#{pageSession.configName}");
        setPageSessionAttribute(key="childType" value="protocol");
        setPageSessionAttribute(key="parentUrl", value="#{sessionScope.REST_URL}/configs/config/#{pageSession.configName}/network-config/protocols");
        setPageSessionAttribute(key="selfUrl", value="#{pageSession.parentUrl}/#{pageSession.childType}/#{pageSession.Name}");
        setPageSessionAttribute(key="rest-api" value="true");
        gf.getEntityAttrs(endpoint="#{pageSession.selfUrl}", valueMap="#{pageSession.valueMap}");
        setPageSessionAttribute(key="convertToFalseList" value={"securityEnabled"});
        setSessionAttribute(key="protocolTabs" value="protocolGeneral");
        //set the following for including buttons.inc
        setPageSessionAttribute(key="edit" value="#{true}" );
        setPageSessionAttribute(key="showDefaultButton" value="#{true}" );
        setPageSessionAttribute(key="showCancelButton" value="#{true}" );
        setPageSessionAttribute(key="hasPropertySheet" value="#{true}" );
        setPageSessionAttribute(key="hasPropertyTable" value="#{false}" );
        setSessionAttribute(key="secureCancelUrl" value="#{pageSession.selfPage}")
        //If secure admin is enabled, we will not show the other tabs since GUI doesn't have support for handling low level grizzly config yet.
        setPageSessionAttribute(key="showSSLTab" value="#{true}");
        setPageSessionAttribute(key="showHttpTab" value="#{true}");
        setPageSessionAttribute(key="showFileCacheTab" value="#{true}");
        if (#{sessionScope.secureAdminEnabled}){
            gf.getEntityAttrs(endpoint="#{sessionScope.REST_URL}/configs/config/#{pageSession.configName}/http-service/virtual-server/__asadmin" valueMap="#{requestScope.tvp}");
            setAttribute(key="listenerName" value="#{requestScope.tvp['networkListeners']}");
            gf.getEntityAttrs(endpoint="#{sessionScope.REST_URL}/configs/config/#{pageSession.configName}/network-config/network-listeners/network-listener/#{requestScope.listenerName}" valueMap="#{requestScope.tmpVP}");
            if("#{pageSession.Name}=#{requestScope.tmpVP.protocol}"){
                setPageSessionAttribute(key="showSSLTab" value="#{false}");
                setPageSessionAttribute(key="showHttpTab" value="#{false}");
                setPageSessionAttribute(key="showFileCacheTab" value="#{false}");
            }
            //TODO: hardcoding this 2 protocol name. Should obtain through the protocol-finder.
            if (" (#{pageSession.Name}=sec-admin-listener) || (#{pageSession.Name}=admin-http-redirect)"){
                setPageSessionAttribute(key="showSSLTab" value="#{false}");
                setPageSessionAttribute(key="showHttpTab" value="#{false}");
                setPageSessionAttribute(key="showFileCacheTab" value="#{false}");
            }
        }
        // If protocol is sec-admin-listener or admin-listener, then save button and security enabled checkbox is disabled
        setPageSessionAttribute(key="readOnly" value="#{false}" );
        setPageSessionAttribute(key="disableSaveButton" value="#{false}");
        if (" (#{pageSession.Name}=$constant{com.sun.enterprise.config.serverbeans.ServerTags.SEC_ADMIN_LISTENER_PROTOCOL_NAME}) 
                                        || (#{pageSession.Name}=$constant{com.sun.enterprise.config.serverbeans.ServerTags.ADMIN_LISTENER_ID})"){
                setPageSessionAttribute(key="disableSaveButton" value="#{true}");
                setPageSessionAttribute(key="readOnly" value="#{true}" );
        }
        />
    
            
#include "/web/grizzly/protocolTabs.inc"
#include "/common/shared/alertMsg.inc"
                
                

        
            
                
            
            
                
            
        
    


    
#include "/common/shared/configNameSection.inc"

        
            
        

        
            
        

        
            
        

        
            
        

    
"





© 2015 - 2024 Weber Informatics LLC | Privacy Policy