Package org.apache.slide.projector.value

Examples of org.apache.slide.projector.value.ObjectValue


            for ( int i = 0; i < ((String[])value).length; i++ ) {
                elements[i] = new StringValue(((String [])value)[i]);                               
            }
            return new ArrayValue(elements);
        } else {
          return new ObjectValue(value);
        }
    }
View Full Code Here


    public final static String DETAILS = "details";
    public final static String LOCALE = "locale";

    public Result process(Map parameter, Context context) throws Exception {
        Locale locale = (((LocaleValue)parameter.get(LOCALE)).getLocale());
        ObjectValue exception = (ObjectValue)parameter.get(EXCEPTION);
        Throwable throwable = (Throwable)exception.getObject();
        Result result = new Result(OK);
        String title = null, text = null, summary = null;
        StringBuffer details = new StringBuffer();
        if ( throwable instanceof ProcessException ) {
            try {
View Full Code Here

                result = ProcessorManager.process(processor, new HashMap(requestParameters), context);
            } catch ( Exception exception ) {
                logger.log(Level.SEVERE, "Exception while processing processor with URI="+uri+"", exception);
                processor = ProcessorManager.getInstance().getProcessor(DEFAULT_EXCEPTION_PROCESSOR);
                Map exceptionParameters = new HashMap();
                exceptionParameters.put(ExceptionRenderer.EXCEPTION, new ObjectValue(exception));
                result = ProcessorManager.process(processor, exceptionParameters, context);
            }
            Value presentableResource = ((HttpContext)context).getPresentableResource();
            if (presentableResource == null) {
                // check for 'output' resource in processor result
View Full Code Here

TOP

Related Classes of org.apache.slide.projector.value.ObjectValue

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.