Package org.apache.beehive.netui.script

Examples of org.apache.beehive.netui.script.IllegalExpressionException


            return ImplicitObjectUtil.getSharedFlow(_request);
        else if(name.equals("requestScope")) {
            if(!_requestParameter)
                return new RequestAttributeMapFacade(_request);
            else
                throw new IllegalExpressionException("The request data binding context can not be updated from a request parameter.");
        } else if(name.equals("sessionScope")) {
            if(!_requestParameter)
                return new SessionAttributeMapFacade(((HttpServletRequest)_request).getSession());
            else throw new IllegalExpressionException("The session data binding context can not be updated from a request parameter.");
        }
        // @bug: need to get the ServletContext from somewhere
        else if(name.equals("applicationScope")) {
            if(!_requestParameter)
                return null;
            else throw new IllegalExpressionException("The application data binding context can not be updated from a request parameter.");
        }
        else {
            String msg = "Could not resolve variable named \"" + name + "\" for an expression update.";
            LOGGER.error(msg);
            throw new IllegalExpressionException(msg);
        }
    }
View Full Code Here


    public Object resolveVariable(String name) {

        try {
            return _vr.resolveVariable(name);
        } catch(javax.servlet.jsp.el.ELException ele) {
            RuntimeException re = new RuntimeException("Could not resolve variable named \"" + name + "\"", new IllegalExpressionException());

            if(LOGGER.isErrorEnabled())
                LOGGER.error("", re);

            throw re;
View Full Code Here

                    ParseUtils.getRootCause(e).toString(), e);

            if(e instanceof IllegalExpressionException)
                throw (IllegalExpressionException)e;
            else if(e instanceof ExpressionParseException)
                throw new IllegalExpressionException(e);
            else
                return false;
        }
    }
View Full Code Here

        if(isExpression(expression)) {
            ParsedExpression pe = ParseUtils.parse(expression);
            assert pe != null;
            return pe.getAtomicExpressionTerm();
        } else
            throw new IllegalExpressionException("The expression \"" + expression + "\" can not be parsed as it is not an atomic expression.");
    }
View Full Code Here

            return getSharedFlow(_request, _response);
        else if(name.equals("requestScope")) {
            if(_requestParameter == false)
                return new RequestAttributeMap(_request);
            else
                throw new IllegalExpressionException("The request data binding context can not be updated from a request parameter.");
        } else if(name.equals("sessionScope")) {
            if(_requestParameter == false)
                return new SessionAttributeMap(((HttpServletRequest)_request).getSession());
            else
                throw new IllegalExpressionException("The session data binding context can not be updated from a request parameter.");
        }
        // @bug: need to get the ServletContext from somewhere
        else if(name.equals("applicationScope")) {
            if(_requestParameter == false)
                return null;
            else
                throw new IllegalExpressionException("The application data binding context can not be updated from a request parameter.");
        } else {
            String msg = "Could not resolve variable named \"" + name + "\" for an expression update.";
            if(LOGGER.isErrorEnabled())
                LOGGER.error(msg);

            throw new IllegalExpressionException(msg);
        }
    }
View Full Code Here

                ParseUtils.getRootCause(e).toString(), e);

            if(e instanceof IllegalExpressionException)
                throw (IllegalExpressionException)e;
            else if(e instanceof ExpressionParseException)
                throw new IllegalExpressionException(e);
            else return false;
        }
    }
View Full Code Here

        if(isExpression(expression)) {
            ParsedExpression pe = ParseUtils.parse(expression);
            assert pe != null;
            return pe.getAtomicExpressionTerm();
        }
        else throw new IllegalExpressionException("The expression \"" +
            expression +
            "\" can not be parsed as it is not an atomic expression.");
    }
View Full Code Here

TOP

Related Classes of org.apache.beehive.netui.script.IllegalExpressionException

Copyright © 2018 www.massapicom. 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.