Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.ProtocolException


           
            ScriptLibraryManager libraryManager =
                protocol.getMarinerPageContext().getScriptLibraryManager();
            libraryManager.addScript(scriptAssetReference);
        } catch (MarinerContextException e) {
            throw new ProtocolException(e);
        }
    }
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

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

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

        if (separators.size() > 0) {
            for (int i = 0; i < separators.size() ; i++) {
                // '+1' because page author defines separators beg. with 1
                String id = (String)separators.get(String.valueOf(i+1));
                if (id == null) {
                    throw new ProtocolException(
                            "value for a separator must be a number");
                } else {
                    tmp[i] = id;
                }
            }
View Full Code Here

            if (value.equals("am")) {
                ampm[0] = id;
            } else if (value.equals("pm")) {
                ampm[1] = id;
            } else {
                throw new ProtocolException(
                        "unknown value for AM/PM marker: " + value);
            }
        } else if (type.equals("separator")) {
            try {
                Integer.parseInt(value);
            } catch (NumberFormatException nfe) {
                throw new ProtocolException(
                        "unknown value for AM/PM marker: " + value);
            }              
            separators.put(value, id);
        } else {
            throw new ProtocolException("unknown type: " + type);  
        }
    }
View Full Code Here

        } else if (type.equals("ampm")) {
            ret = getIds(ampm, defaultAMPM);
        } else if (type.equals("separators")) {
            ret = getSeparatorsIds();
        } else {
            throw new ProtocolException("unknown type: " + type);  
        }      
        return ret;    
    }
View Full Code Here

            .addItemId(itemId);
       
        try {
            getJavaScriptWriter().write(buffer.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

            .append("}));")
            .toString();
        try {
            writeScriptElement(currentBuffer, textToScript);
        } 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.