Package org.apache.axiom.c14n.exceptions

Examples of org.apache.axiom.c14n.exceptions.CanonicalizationException


            if (namespaceIsRelative(attr)) {
                String parentName = attr.getOwnerElement().getTagName();
                String attrValue = attr.getValue();
                Object exArgs[] = {parentName, nodeAttrName, attrValue};

                throw new CanonicalizationException(
                        "c14n.Canonicalizer.RelativeNamespace", exArgs);
            }
        }
    }
View Full Code Here


            for (int i = 0; i < attributes.getLength(); i++) {
                C14nHelper.assertNotRelativeNS((Attr) attributes.item(i));
            }
        } else {
            throw new CanonicalizationException(
                    "Called checkForRelativeNamespace() on null");
        }
    }
View Full Code Here

            if (ns.addMapping(NName, NNodeValue, N)) {
                //New definition check if it is relative.
                if (C14nHelper.namespaceIsRelative(NNodeValue)) {
                    Object exArgs[] = {E.getTagName(), NName,
                            N.getNodeValue()};
                    throw new CanonicalizationException(
                            "c14n.Canonicalizer.RelativeNamespace", exArgs);
                }
            }
        }
        String prefix;
View Full Code Here

            if (n != null) {
                //Render the ns definition
                result.add(n);
                if (C14nHelper.namespaceIsRelative(N)) {
                    Object exArgs[] = {E.getTagName(), NName, N.getNodeValue()};
                    throw new CanonicalizationException(
                            "c14n.Canonicalizer.RelativeNamespace", exArgs);
                }
            }
        }
View Full Code Here

     *
     */
    public byte[] engineCanonicalizeSubTree(Node rootNode, String inclusiveNamespaces)
            throws CanonicalizationException {

        throw new CanonicalizationException("All Namespaces are Included by Default");
    }
View Full Code Here

        ByteArrayInputStream bais = new ByteArrayInputStream(inputBytes);
        StAXOMBuilder builder = null;
        try {
            builder = new StAXOMBuilder(bais);
        } catch (XMLStreamException e) {
            throw new CanonicalizationException(e);
        }
        byte [] result = this.engineCanonicalizeSubTree(
                new WrapperFactory().getNode(builder.getDocument()));
        return result;
    }
View Full Code Here

        ByteArrayInputStream bais = new ByteArrayInputStream(inputBytes);
        StAXOMBuilder builder = null;
        try {
            builder = new StAXOMBuilder(bais);
        } catch (XMLStreamException e) {
            throw new CanonicalizationException(e);
        }
        byte [] result = this.engineCanonicalizeSubTree(
                new WrapperFactory().getNode(builder.getDocument()));
        return result;
    }
View Full Code Here

                return result;
            }
            return null;

        } catch (UnsupportedEncodingException ex) {
            throw new CanonicalizationException("empty", ex);
        } catch (IOException ex) {
            throw new CanonicalizationException("empty", ex);
        }
    }
View Full Code Here

                case Node.ENTITY_NODE :
                case Node.NOTATION_NODE :
                case Node.ATTRIBUTE_NODE :
                    // illegal node type during traversal
                    throw new CanonicalizationException("empty");

                case Node.DOCUMENT_FRAGMENT_NODE :
                case Node.DOCUMENT_NODE :
                    ns.outputNodePush();
                    sibling = currentNode.getFirstChild();
View Full Code Here

            if (namespaceIsRelative(attr)) {
                String parentName = attr.getOwnerElement().getTagName();
                String attrValue = attr.getValue();
                Object exArgs[] = {parentName, nodeAttrName, attrValue};

                throw new CanonicalizationException(
                        "c14n.Canonicalizer.RelativeNamespace", exArgs);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.axiom.c14n.exceptions.CanonicalizationException

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.