@Override
    public void administer(PortletRequest request, PortletResponse response) {
        final String listenerKey = (String) request.getAttribute(this.listenerKeyAttribute);
        if (this.logger.isDebugEnabled()) {
            this.logger.debug(
                    "Found key '"
                            + listenerKey
                            + "' from PortletRequest attribute '"
                            + this.listenerKeyAttribute
                            + "'");
        }

        if (listenerKey == null) {
            if (this.failOnKeyNotFound) {
                this.logger.error(
                        "Failed to find PortletRequest attribute '"
                                + this.listenerKeyAttribute
                                + "'");
                throw new IllegalArgumentException(
                        "Failed to find PortletRequest attribute '"
                                + this.listenerKeyAttribute
                                + "'");
            }

            this.logger.warn(
                    "Failed to find PortletRequest attribute '" + this.listenerKeyAttribute + "'");
            return;
        }

        final AdministrativeRequestListener administrativeRequestListener =
                this.listeners.get(listenerKey);
        if (this.logger.isDebugEnabled()) {
            this.logger.debug(
                    "Found AdministrativeRequestListener '"
                            + administrativeRequestListener
                            + "' for key '"
                            + listenerKey
                            + "'");
        }

        if (administrativeRequestListener == null) {
            if (this.failOnListenerNotFound) {
                this.logger.error(
                        "Failed to find AdministrativeRequestListener for key '"
                                + listenerKey
                                + "'");
                throw new IllegalArgumentException(
                        "Failed to find AdministrativeRequestListener for key '"
                                + listenerKey
                                + "'");
            }

            this.logger.warn(
                    "Failed to find AdministrativeRequestListener for key '" + listenerKey + "'");
            return;
        }

        administrativeRequestListener.administer(request, response);
    }
@ Override public void administer ( PortletRequest request , PortletResponse response ) { final String listenerKey = ( String ) request . getAttribute ( this . listenerKeyAttribute ) ; if ( this . logger . isDebugEnabled ( ) ) { this . logger . debug ( "Found key '" + listenerKey + "' from PortletRequest attribute '" + this . listenerKeyAttribute + "'" ) ; } if ( listenerKey == null ) { if ( this . failOnKeyNotFound ) { this . logger . error ( "Failed to find PortletRequest attribute '" + this . listenerKeyAttribute + "'" ) ; throw new IllegalArgumentException ( "Failed to find PortletRequest attribute '" + this . listenerKeyAttribute + "'" ) ; } this . logger . warn ( "Failed to find PortletRequest attribute '" + this . listenerKeyAttribute + "'" ) ; return ; } final AdministrativeRequestListener administrativeRequestListener = this . listeners . get ( listenerKey ) ; if ( this . logger . isDebugEnabled ( ) ) { this . logger . debug ( "Found AdministrativeRequestListener '" + administrativeRequestListener + "' for key '" + listenerKey + "'" ) ; } if ( administrativeRequestListener == null ) { if ( this . failOnListenerNotFound ) { this . logger . error ( "Failed to find AdministrativeRequestListener for key '" + listenerKey + "'" ) ; throw new IllegalArgumentException ( "Failed to find AdministrativeRequestListener for key '" + listenerKey + "'" ) ; } this . logger . warn ( "Failed to find AdministrativeRequestListener for key '" + listenerKey + "'" ) ; return ; } administrativeRequestListener . administer ( request , response ) ; }
@see
org.apache.pluto.spi.optional.AdministrativeRequestListener#administer(javax.portlet.PortletRequest,
javax.portlet.PortletResponse)