Examples of BasicParserPool


Examples of org.opensaml.xml.parse.BasicParserPool

  protected SecurityPolicyResolver securityPolicyResolver() {
    return new StaticSecurityPolicyResolver(securityPolicy());
  }

  protected SAMLMessageDecoder samlMessageDecoder() {
    final BasicParserPool basicParserPool = new BasicParserPool();
    basicParserPool.setMaxPoolSize(maxParserPoolSize);

    return new HTTPPostSimpleSignDecoder(basicParserPool);
  }
View Full Code Here

Examples of org.opensaml.xml.parse.BasicParserPool

   {
      FileInputStream fis = null;
     
      try
      {
         BasicParserPool parser = new BasicParserPool();
         parser.setNamespaceAware(true);
         fis = new FileInputStream(xmlFile);
         return parser.parse(fis);
     }
     catch (Exception e)
     {
         throw e;
     }
View Full Code Here

Examples of org.opensaml.xml.parse.BasicParserPool

     *
     * @deprecated this method will be removed once {@link Configuration} no longer has the option to store the XML configuration fragements
     */
    public XMLConfigurator(boolean retainXML) throws ConfigurationException {
        retainXMLConfiguration = retainXML;
        parserPool = new BasicParserPool();
        SchemaFactory factory = SchemaFactory.newInstance(javax.xml.XMLConstants.W3C_XML_SCHEMA_NS_URI);
        Source schemaSource = new StreamSource(XMLConfigurator.class
                .getResourceAsStream(XMLConstants.XMLTOOLING_SCHEMA_LOCATION));
        try {
            configurationSchema = factory.newSchema(schemaSource);
View Full Code Here

Examples of org.opensaml.xml.parse.BasicParserPool

        resolverCriteria = null;
        kekResolverCriteria = null;

        // Note: this is hopefully only temporary, until Xerces implements DOM 3 LSParser.parseWithContext().
        parserPool = new BasicParserPool();
        parserPool.setNamespaceAware(true);

        // Note: this is necessary due to an unresolved Xerces deferred DOM issue/bug
        HashMap<String, Boolean> features = new HashMap<String, Boolean>();
        features.put("http://apache.org/xml/features/dom/defer-node-expansion", Boolean.FALSE);
View Full Code Here

Examples of org.opensaml.xml.parse.BasicParserPool

     *
     * @deprecated this method will be removed once {@link Configuration} no longer has the option to store the XML configuration fragements
     */
    public XMLConfigurator(boolean retainXML) throws ConfigurationException {
        retainXMLConfiguration = retainXML;
        parserPool = new BasicParserPool();
        SchemaFactory factory = SchemaFactory.newInstance(javax.xml.XMLConstants.W3C_XML_SCHEMA_NS_URI);
        Source schemaSource = new StreamSource(XMLConfigurator.class
                .getResourceAsStream(XMLConstants.XMLTOOLING_SCHEMA_LOCATION));
        try {
            configurationSchema = factory.newSchema(schemaSource);
View Full Code Here

Examples of org.opensaml.xml.parse.BasicParserPool

    /** Parser pool used to deserialize the message. */
    private ParserPool parserPool;

    /** Constructor. */
    public BaseMessageDecoder() {
        parserPool = new BasicParserPool();
    }
View Full Code Here

Examples of org.opensaml.xml.parse.BasicParserPool

    /** Parser pool used to deserialize the message. */
    private ParserPool parserPool;

    /** Constructor. */
    public BaseMessageDecoder() {
        parserPool = new BasicParserPool();
    }
View Full Code Here

Examples of org.opensaml.xml.parse.BasicParserPool

     *
     * @deprecated this method will be removed once {@link Configuration} no longer has the option to store the XML configuration fragements
     */
    public XMLConfigurator(boolean retainXML) throws ConfigurationException {
        retainXMLConfiguration = retainXML;
        parserPool = new BasicParserPool();
        SchemaFactory factory = SchemaFactory.newInstance(javax.xml.XMLConstants.W3C_XML_SCHEMA_NS_URI);
        Source schemaSource = new StreamSource(XMLConfigurator.class
                .getResourceAsStream(XMLConstants.XMLTOOLING_SCHEMA_LOCATION));
        try {
            configurationSchema = factory.newSchema(schemaSource);
View Full Code Here

Examples of org.opensaml.xml.parse.BasicParserPool

        resolverCriteria = null;
        kekResolverCriteria = null;

        // Note: this is hopefully only temporary, until Xerces implements DOM 3 LSParser.parseWithContext().
        parserPool = new BasicParserPool();
        parserPool.setNamespaceAware(true);

        // Note: this is necessary due to an unresolved Xerces deferred DOM issue/bug
        HashMap<String, Boolean> features = new HashMap<String, Boolean>();
        features.put("http://apache.org/xml/features/dom/defer-node-expansion", Boolean.FALSE);
View Full Code Here

Examples of org.opensaml.xml.parse.BasicParserPool

     * @throws XMLObjectParserException if the XML parsing fails.
     */
    private static Document readDocument(InputStream inputStream) {
        Document doc;
        try {
            BasicParserPool ppMgr = new BasicParserPool();
            ppMgr.setNamespaceAware(true);
            doc = ppMgr.parse(inputStream);
        } catch (XMLParserException e) {
            throw new XMLObjectParserException(e);
        }

        return doc;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.