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

grizzly.http.layout Maven / Gradle / Ivy

The newest version!








   
    $page{configName} default="server-config");
        getRequestValue(key="name" value="#{pageSession.Name}");
        getRequestValue(key="listenerName" value="#{pageSession.listenerName}"   default="");
        setPageSessionAttribute(key="protocolName" value="#{pageSession.Name}");
        getRequestValue(key="cancelTo" value="#{pageSession.cancelTo}");
        urlencode(value="#{pageSession.Name}" encoding="UTF-8" result="#{pageSession.encodedName}");
        setPageSessionAttribute(key="encodedProtocolName" value="#{pageSession.encodedName}");
        urlencode(value="#{pageSession.listenerName}" encoding="UTF-8" result="#{pageSession.encodedListenerName}");

        setPageSessionAttribute(key="parentPage", value="#{request.contextPath}/#{pageSession.cancelTo}")
        setPageSessionAttribute(key="childType" value="http");
        setPageSessionAttribute(key="parentUrl", value="#{sessionScope.REST_URL}/configs/config/#{pageSession.configName}/network-config/protocols/protocol/#{pageSession.Name}");
        setPageSessionAttribute(key="selfUrl", value="#{pageSession.parentUrl}/#{pageSession.childType}");
        setPageSessionAttribute(key="rest-api" value="true");
        gf.checkIfEndPointExist(endpoint="#{pageSession.selfUrl}" exists="#{requestScope.exist}");
        setPageSessionAttribute(key="httpEndPointExist" value="#{requestScope.exist}");
        gf.getChildrenNamesList(endpoint="#{sessionScope.REST_URL}/configs/config/#{pageSession.configName}/http-service/virtual-server" result="#{pageSession.vsList}");
        if (#{pageSession.httpEndPointExist}){
            gf.getEntityAttrs(endpoint="#{pageSession.selfUrl}", valueMap="#{pageSession.httpMap}");
            setPageSessionAttribute(key="previousVSName" value="#{pageSession.httpMap['defaultVirtualServer']}" );
            setPageSessionAttribute(key="edit" value="#{true}" );
        }
        if (! #{pageSession.httpEndPointExist}){
            setPageSessionAttribute(key="edit" value="#{false}" )
            gf.getDefaultValues(endpoint="#{pageSession.selfUrl}", valueMap="#{pageSession.httpMap}");
            mapPut(map="#{pageSession.httpMap}" key="defaultVirtualServer"  value="server")
            setPageSessionAttribute(key="previousVSName" value="" );
        }

        setPageSessionAttribute(key="valueMap" value="#{pageSession.httpMap}");
        setPageSessionAttribute(key="convertToFalseList" 
            value={"uploadTimeoutEnabled", "cometSupportEnabled", "dnsLookupEnabled", "rcmSupportEnabled", "traceEnabled", "authPassThroughEnabled", 
            "chunkingEnabled", "encodedSlashEnabled", "websocketsSupport", "xpoweredBy" });

        //set the following for including buttons.inc
        
        setPageSessionAttribute(key="showDefaultButton" value="#{true}" );
        setPageSessionAttribute(key="showCancelButton" value="#{true}" );
        setPageSessionAttribute(key="hasPropertySheet" value="#{true}" );
        setPageSessionAttribute(key="hasPropertyTable" value="#{false}" );

        setPageSessionAttribute(key="additionalSaveHandler" value="changeNetworkListenersInVS");
    />
    
            



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

                
                
#include "/web/grizzly/httpSaveButtons.inc"
                
    
#include "/common/shared/configNameSection.inc"
#include "/web/grizzly/httpAttr.inc"
    
"





© 2015 - 2024 Weber Informatics LLC | Privacy Policy