Examples of InterceptorConfig


Examples of com.opensymphony.xwork2.config.entities.InterceptorConfig

             *    <param name="interceptorStack1.interceptor1.param1">someValue</param>
             *    ...
             *  </interceptor-ref>
             */
            if (interceptorCfgObj instanceof InterceptorConfig) {  //  interceptor-ref param refer to an interceptor
                InterceptorConfig cfg = (InterceptorConfig) interceptorCfgObj;
                Interceptor interceptor = objectFactory.buildInterceptor(cfg, map);

                InterceptorMapping mapping = new InterceptorMapping(key, interceptor);
                if (result != null && result.contains(mapping)) {
                    // if an existing interceptor mapping exists,
View Full Code Here

Examples of com.opensymphony.xwork2.config.entities.InterceptorConfig

        if (referencedConfig == null) {
            throw new ConfigurationException("Unable to find interceptor class referenced by ref-name " + refName, location);
        } else {
            if (referencedConfig instanceof InterceptorConfig) {
                InterceptorConfig config = (InterceptorConfig) referencedConfig;
                Interceptor inter = null;
                try {

                    inter = objectFactory.buildInterceptor(config, refParams);
                    result.add(new InterceptorMapping(refName, inter));
                } catch (ConfigurationException ex) {
                    if (LOG.isWarnEnabled()) {
                      LOG.warn("Unable to load config class #0 at #1 probably due to a missing jar, which might be fine if you never plan to use the #2 interceptor",
                            config.getClassName(), ex.getLocation().toString(), config.getName());
                    }
                    LOG.error("Actual exception", ex);
                }

            } else if (referencedConfig instanceof InterceptorStackConfig) {
View Full Code Here

Examples of com.opensymphony.xwork2.config.entities.InterceptorConfig

             *    <param name="interceptorStack1.interceptor1.param1">someValue</param>
             *    ...
             *  </interceptor-ref>
             */
            if (interceptorCfgObj instanceof InterceptorConfig) {  //  interceptor-ref param refer to an interceptor
                InterceptorConfig cfg = (InterceptorConfig) interceptorCfgObj;
                Interceptor interceptor = objectFactory.buildInterceptor(cfg, map);

                InterceptorMapping mapping = new InterceptorMapping(key, interceptor);
                if (result != null && result.contains(mapping)) {
                    // if an existing interceptor mapping exists,
View Full Code Here

Examples of namespaces.ifaces.InterceptorConfig

                System.out.println();
                System.out.println( "  Registered interceptors: " );
                System.out.println();
                for ( int j = 0; j < interceptorConfigs.length; j++ )
                {
                    final InterceptorConfig ic = interceptorConfigs[ j ];
                    System.out.println( "    Name: " + ic.getName() );
                    System.out.println( "    Class: " + ic.getClassName() );
                    System.out.println( "    Direction: " + ic.getDirection() );
                    System.out.println();
                }
            }

            if ( transportConfigs.length > 0 )
View Full Code Here

Examples of org.apache.beehive.netui.util.config.bean.InterceptorConfig

        if(list == null || list.size() == 0)
            return null;

        InterceptorConfig[] interceptorConfigs = new InterceptorConfig[list.size()];
        for(int i = 0; i < list.size(); i++) {
            interceptorConfigs[i] = new InterceptorConfig(
                DomUtils.getChildElementText((Element)list.get(i), "interceptor-class"),
                parseCustomProperties( ((Element)list.get(i)).getElementsByTagName("custom-property"))
            );
        }
        return interceptorConfigs;
View Full Code Here

Examples of org.apache.beehive.netui.util.config.bean.InterceptorConfig

        if(list == null || list.size() == 0)
            return null;

        InterceptorConfig[] interceptorConfigs = new InterceptorConfig[list.size()];
        for(int i = 0; i < list.size(); i++) {
            interceptorConfigs[i] = new InterceptorConfig(
                DomUtils.getChildElementText((Element)list.get(i), "interceptor-class"),
                parseCustomProperties( ((Element)list.get(i)).getElementsByTagName("custom-property"))
            );
        }
        return interceptorConfigs;
View Full Code Here

Examples of org.apache.beehive.netui.util.config.bean.InterceptorConfig

        if(list == null || list.size() == 0)
            return null;

        InterceptorConfig[] interceptorConfigs = new InterceptorConfig[list.size()];
        for(int i = 0; i < list.size(); i++) {
            interceptorConfigs[i] = new InterceptorConfig(
                DomUtils.getChildElementText((Element)list.get(i), "interceptor-class"),
                parseCustomProperties( ((Element)list.get(i)).getElementsByTagName("custom-property"))
            );
        }
        return interceptorConfigs;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.