Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.ProtocolException


       
        // Write JavaScript content to DOM.
        try {
            getJavaScriptWriter().write(scriptBuffer.toString());
        } catch (IOException e) {
            throw new ProtocolException(e);
        }
    }
View Full Code Here


        addUsedWidgetId(blockContentAttributes.getId());
       
        try {
            getJavaScriptWriter().write(buffer.toString());
        } catch (IOException e) {
            throw new ProtocolException(e);
       
    }
View Full Code Here

        }               

        String mapId = protocol.getWidgetModule().getMapRenderer().getCurrentMapId();
       
        if (mapId == null) {
            throw new ProtocolException("widget:map-location-markers element "
                    + "placed outside widget:map element");
        }
       
        MapLocationMarkersAttributes mapLocationMarkersAttributes
                = (MapLocationMarkersAttributes)attributes;
View Full Code Here

       
        // Write JavaScript Container to DOM.
        try {
            getJavaScriptWriter().write(buffer.toString());
        } catch (IOException e) {
            throw new ProtocolException(e);
        }
    }
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);
                }

            }
        }
    }
View Full Code Here

            // Parse the XML.
            StringReader stringReader = new StringReader(s);
            InputSource source = new InputSource(stringReader);
            saxParser.parse(source);
        } catch(SAXException e) {
            throw new ProtocolException(
                        exceptionLocalizer.format("parse-error", s), e);
        } catch(IOException e) {
            // NOTE: we are currently reading from a string, so this ought
            // never to happen anyway.
            throw new ProtocolException(
                        exceptionLocalizer.format("parse-error", s), e);
        }

        // Add the parsed nodeValue into the dom, minus the root element.
        Document document = domParser.getDocument();
View Full Code Here

        String textToScript = "Widget.getInstance(" + createJavaScriptString(attrs.getWidgetId())
                + ").registerLauncher(" + createJavaScriptString(attrs.getId()) + ");";           
        try {
            writeScriptElement(currentBuffer,textToScript);
        } catch (IOException e) {
            throw new ProtocolException();               
        }
    }
View Full Code Here

            }

            // And flush buffered Javascript string into page.
            writeJavaScript(currentBuffer, scriptWriter.toString());
        } catch (IOException e) {
            throw new ProtocolException();
        }

        // Close <script> element
        closeScriptElement(currentBuffer);
    }
View Full Code Here

       
        // Write JavaScript Container to DOM.
        try {
            getJavaScriptWriter().write(buffer.toString());
        } catch (IOException e) {
            throw new ProtocolException(e);
        }
    }
View Full Code Here

        scriptWriter.write("})");
       
        try {
            writeScriptElement(getCurrentBuffer(protocol), scriptWriter.toString());
        } catch (IOException e) {
            throw new ProtocolException(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.