Examples of XDIMEException


Examples of com.volantis.mcs.xdime.XDIMEException

        try {
            protocol.writeOpenTableRow((TableRowAttributes)protocolAttributes);
        } catch (ProtocolException e) {
            logger.error("rendering-error", getTagName(), e);

            throw new XDIMEException(exceptionLocalizer.format(
                "rendering-error", getTagName()), e);
        }
        return XDIMEResult.PROCESS_ELEMENT_BODY;       
    }
View Full Code Here

Examples of com.volantis.mcs.xdime.XDIMEException

        try {
            protocol.writeOpenSpan((SpanAttributes)protocolAttributes);
        } catch (ProtocolException e) {
            logger.error("rendering-error", getTagName(), e);

            throw new XDIMEException(exceptionLocalizer.format(
                "rendering-error", getTagName()), e);
        }
        return XDIMEResult.PROCESS_ELEMENT_BODY;
    }
View Full Code Here

Examples of com.volantis.mcs.xdime.XDIMEException

                    transferContentsFrom(containedContent);
   
                protocol.writeCloseObject(objectAttribute);           
            }
        } catch (ProtocolException e) {
            throw new XDIMEException(exceptionLocalizer.format(
                    "rendering-error", "object"), e);
        }
    }       
View Full Code Here

Examples of com.volantis.mcs.xdime.XDIMEException

           
        } else if (srcType.startsWith("audio/")) {
            doAudioRequest(context, objectAttribute);
           
        } else if (srcType.equals("application/x-shockwave-flash")) {
            throw new XDIMEException(exceptionLocalizer
                    .format("media-not-transcodable", srcType));
        }       
    }
View Full Code Here

Examples of com.volantis.mcs.xdime.XDIMEException

            MediaAgent mediaAgent = pageContext.getMediaAgent(true);

            mediaAgent.requestURL(request, callback);
           
        } catch (URISyntaxException e) {
            throw new XDIMEException(e);
        } catch (RepositoryException e) {
            throw new XDIMEException(e);
        } catch (MalformedURLException e) {
            throw new XDIMEException(e);
        }
    }
View Full Code Here

Examples of com.volantis.mcs.xdime.XDIMEException

                ObjectParameter.MCS_ASPECT_RATIO_HEIGHT);
        final boolean containsWidth = parameters.containsKey(
                ObjectParameter.MCS_ASPECT_RATIO_WIDTH);
        if (containsHeight && !containsWidth ||
                !containsHeight && containsWidth) {
            throw new XDIMEException(exceptionLocalizer.format(
                "missing-parameter-both-must-be-set",
                new Object[]{ObjectParameter.MCS_ASPECT_RATIO_HEIGHT,
                             ObjectParameter.MCS_ASPECT_RATIO_WIDTH}));
        }
View Full Code Here

Examples of com.volantis.mcs.xdime.XDIMEException

            protocol.writeOpenParagraph(
                (ParagraphAttributes)protocolAttributes);
        } catch (ProtocolException e) {
            logger.error("rendering-error", getTagName(), e);

            throw new XDIMEException(exceptionLocalizer.format(
                "rendering-error", getTagName()), e);
        }
        return XDIMEResult.PROCESS_ELEMENT_BODY;       
    }
View Full Code Here

Examples of com.volantis.mcs.xdime.XDIMEException

            protocol.writeOpenTableDataCell(
                (TableCellAttributes)protocolAttributes);
        } catch (ProtocolException e) {
            logger.error("rendering-error", getTagName(), e);

            throw new XDIMEException(exceptionLocalizer.format(
                "rendering-error", getTagName()), e);
        }
        return XDIMEResult.PROCESS_ELEMENT_BODY;       
    }
View Full Code Here

Examples of com.volantis.mcs.xdime.XDIMEException

            }           
            wizardRenderer.renderOpen(getProtocol(context), (WidgetAttributes)protocolAttributes);           
        } catch (ProtocolException e) {
            logger.error("rendering-error", getTagName(), e);
   
            throw new XDIMEException(exceptionLocalizer.format(
                "rendering-error", getTagName()), e);
        }   
        return XDIMEResult.PROCESS_ELEMENT_BODY;      
    }   
View Full Code Here

Examples of com.volantis.mcs.xdime.XDIMEException

        String eventAttributeValue = attributes.getValue("", "event");
       
        String actionAttributeValue = attributes.getValue("", "action");
       
        if (eventAttributeValue == null) {
            throw new XDIMEException("No event attribute.");
        }
       
        if (actionAttributeValue == null) {
            throw new XDIMEException("No action attribute.");
        }
       
        HandlerAttributes handlerAttributes = (HandlerAttributes) protocolAttributes;

        handlerAttributes.setEventReference(new EventReferenceImpl(eventAttributeValue));
        handlerAttributes.setActionReference(new ActionReferenceImpl(actionAttributeValue));
       
        // Initialize isEnabled attribute.
        String isEnabledAttribute = attributes.getValue("", "is-enabled");
       
        if (isEnabledAttribute != null
                && !isEnabledAttribute.equals("yes")
                && !isEnabledAttribute.equals("no")) {
            throw new XDIMEException("Invalid value for is-enabled attribute.");
        }

        handlerAttributes.setEnabled(isEnabledAttribute == null || isEnabledAttribute.equals("yes"));
    }
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.