protected void handleSSLChange() {

        String toBeReplaced = "http:";
        String newString = "https:";
        CmsSSLMode mode = (CmsSSLMode)m_simpleFieldEncryption.getValue();
        if (mode == null) {
            // mode is null if this is triggered by setContainerDataSource
            return;
        }
        if (mode.equals(CmsSSLMode.NO) | mode.equals(CmsSSLMode.SECURE_SERVER)) {
            toBeReplaced = "https:";
            newString = "http:";
        }
        m_simpleFieldServer.setValue(m_simpleFieldServer.getValue().replaceAll(toBeReplaced, newString));
        m_fieldSecureServer.setVisible(mode.equals(CmsSSLMode.SECURE_SERVER));
        m_fieldExclusiveError.setVisible(mode.equals(CmsSSLMode.SECURE_SERVER));
        m_fieldExclusiveURL.setVisible(mode.equals(CmsSSLMode.SECURE_SERVER));

    }
protected void handleSSLChange ( ) { String toBeReplaced = "http:" ; String newString = "https:" ; CmsSSLMode mode = ( CmsSSLMode ) m_simpleFieldEncryption . getValue ( ) ; if ( mode == null ) { return ; } if ( mode . equals ( CmsSSLMode . NO ) | mode . equals ( CmsSSLMode . SECURE_SERVER ) ) { toBeReplaced = "https:" ; newString = "http:" ; } m_simpleFieldServer . setValue ( m_simpleFieldServer . getValue ( ) . replaceAll ( toBeReplaced , newString ) ) ; m_fieldSecureServer . setVisible ( mode . equals ( CmsSSLMode . SECURE_SERVER ) ) ; m_fieldExclusiveError . setVisible ( mode . equals ( CmsSSLMode . SECURE_SERVER ) ) ; m_fieldExclusiveURL . setVisible ( mode . equals ( CmsSSLMode . SECURE_SERVER ) ) ; }
Handles SSL changes.<p>