Package org.picketlink.identity.federation.core.parsers

Examples of org.picketlink.identity.federation.core.parsers.ParserNamespaceSupport


                } else {
                    QName qname = subEvent.getName();

                    logger.trace("Looking for parser for element: " + qname);
                   
                    ParserNamespaceSupport parser = ParserController.get(qname);
                    if (parser == null)
                        throw logger.parserUnknownTag(qname.getLocalPart(), subEvent.getLocation());

                    Object parsedObject = parser.parse(xmlEventReader);
                    if (parsedObject instanceof AppliesTo) {
                        responseToken.setAppliesTo((AppliesTo) parsedObject);
                    }
                }
            } catch (URISyntaxException e) {
View Full Code Here


                    // Now we do not do anything to the applies to element. We go further
                    startElement = StaxParserUtil.peekNextStartElement(xmlEventReader);

                    QName qname = startElement.getName();
                    ParserNamespaceSupport parser = ParserController.get(qname);
                    if (parser == null)
                        throw new RuntimeException(ErrorCodes.UNKNOWN_TAG + qname);

                    Object parsedObject = parser.parse(xmlEventReader);
                    appliesTo.addAny(parsedObject);

                    EndElement endElement = StaxParserUtil.getNextEndElement(xmlEventReader);
                    StaxParserUtil.validate(endElement, WSPolicyConstants.APPLIES_TO);
                    return appliesTo;
View Full Code Here

                } else {
                    QName qname = subEvent.getName();
                   
                    logger.trace("Looking for parser for element: " + qname);
                   
                    ParserNamespaceSupport parser = ParserController.get(qname);
                    if (parser == null)
                        throw logger.parserUnknownTag(qname.getLocalPart(), subEvent.getLocation());

                    Object parsedObject = parser.parse(xmlEventReader);
                    if (parsedObject instanceof AppliesTo) {
                        requestToken.setAppliesTo((AppliesTo) parsedObject);
                    }
                }
            } catch (URISyntaxException e) {
View Full Code Here

TOP

Related Classes of org.picketlink.identity.federation.core.parsers.ParserNamespaceSupport

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.