Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.ProtocolException


                .append("}));})");

        try {
            writeScriptElement(currentBuffer, textToScript.toString());
        } catch (IOException e) {
            throw new ProtocolException();
        }
    }
View Full Code Here


            textToScript += ")";

            try {
                writeJavaScript(currentBuffer, textToScript);
            } catch (IOException e) {
                throw new ProtocolException();
            }
            closeScriptElement(currentBuffer);
        }
    }
View Full Code Here

                        if (isNumber) {
                            elems.put(String.valueOf(j), number.toString());
                            j++;
                        } else {
                            //nither special char nor number after '%'
                            throw new ProtocolException(
                                    "nither special char nor number after '%': "
                                    + dateTime);
                        }     
                    }
                } else {
                    //no more chars after '%'
                    throw new ProtocolException(
                            "missed char after '%': " + dateTime);
                }
            } else {
                //literal separator
                StringBuffer str = new StringBuffer();
View Full Code Here

                .append(" }));");

            try {
                writeStartupScriptElement(currentBuffer, textToScript.toString());
            } catch (IOException e) {
                throw new ProtocolException();
            }
        }

    }
View Full Code Here

        addCreatedWidgetId(attributes.getId());
       
        try {
            getJavaScriptWriter().write(scriptBuffer.toString());
        } catch (IOException e) {
            throw new ProtocolException();
        }

        // save launch button if exists
        if (currentBuffer.hasInsertionPoint()) {
            currentBuffer.restoreInsertionPoint();
View Full Code Here

        Format rootFormat = getMarinerPageContext().getDeviceLayout().
                getRootFormat();
        try {
            rootFormat.visit(visitor, dom);
        } catch (FormatVisitorException e) {           
            throw new ProtocolException(
                        exceptionLocalizer.format("error-rendering-regions"),
                        e);
        }
        dom.closeElement("layout");
        dom.closeElement("head");
View Full Code Here

            // Render the shard link menu.
            MenuRenderer menuRenderer = getShardLinkMenuModule().
                getMenuRendererSelector().selectMenuRenderer(menu);
            menuRenderer.render(menu);
        } catch (RendererException e) {
            throw new ProtocolException(e.getMessage(), e);
        }

        context.popOutputBuffer(dom);
/*
        todo: delete when we clean up all the old menu code.
View Full Code Here

            throws ProtocolException {

        // Ensure that the fragment contained a pane with the special
        // destination area for the fragment links.
        if (fragmentLinksPane == null) {
            throw new ProtocolException("No pane with destination area of " +
                    VDXMLVersion2_0.FRAGMENT_LINKS_DESTINATION +
                    " was found for fragment " + fragmentName);
        }

        // Return the output buffer for that special pane.
View Full Code Here

            }

            buffer = getExtraBuffer(PAGE_LINKS_BUFFER_NAME, false);

            if (buffer == null) {
                throw new ProtocolException("No canvas has been created for" +
                        "targetting the nativemarkup");
            }
        } else {
            buffer = super.getNativeMarkupOutputBuffer(attributes);
        }
View Full Code Here

        }

        try {
            writeStartupScriptElement(mainBuffer, textToScript.toString());
        } catch (IOException e) {
            throw new ProtocolException(exceptionLocalizer
                    .format("write-failed"), e);
        }
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.ProtocolException

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.