Package org.apache.ws.commons.util

Examples of org.apache.ws.commons.util.NamespaceContextImpl


  /** Creates a new instance, which parses a clients request.
   * @param pConfig The client configuration.
   * @param pTypeFactory The type factory.
   */
  public XmlRpcRequestParser(XmlRpcStreamConfig pConfig, TypeFactory pTypeFactory) {
    super(pConfig, new NamespaceContextImpl(), pTypeFactory);
  }
View Full Code Here


   * @param pTypeFactory The type factory for creating instances of
   * {@link TypeParser}.
   */
  public XmlRpcResponseParser(XmlRpcStreamRequestConfig pConfig,
                TypeFactory pTypeFactory) {
    super(pConfig, new NamespaceContextImpl(), pTypeFactory);
  }
View Full Code Here

  /** Creates a new instance, which parses a clients request.
   * @param pConfig The client configuration.
   * @param pTypeFactory The type factory.
   */
  public XmlRpcRequestParser(XmlRpcStreamConfig pConfig, TypeFactory pTypeFactory) {
    super(pConfig, new NamespaceContextImpl(), pTypeFactory);
  }
View Full Code Here

   * @param pTypeFactory The type factory for creating instances of
   * {@link TypeParser}.
   */
  public XmlRpcResponseParser(XmlRpcStreamRequestConfig pConfig,
                TypeFactory pTypeFactory) {
    super(pConfig, new NamespaceContextImpl(), pTypeFactory);
  }
View Full Code Here

  /** Creates a new instance, which parses a clients request.
   * @param pConfig The client configuration.
   * @param pTypeFactory The type factory.
   */
  public XmlRpcRequestParser(XmlRpcStreamConfig pConfig, TypeFactory pTypeFactory) {
    super(pConfig, new NamespaceContextImpl(), pTypeFactory);
  }
View Full Code Here

   * @param pTypeFactory The type factory for creating instances of
   * {@link TypeParser}.
   */
  public XmlRpcResponseParser(XmlRpcStreamRequestConfig pConfig,
                TypeFactory pTypeFactory) {
    super(pConfig, new NamespaceContextImpl(), pTypeFactory);
  }
View Full Code Here

        assertNotNull(xpath.evaluate("//saml2:NameID/@NameQualifier", doc, XPathConstants.NODE));
    }

    private void initXpath() {
        factory = XPathFactory.newInstance();
        namespaceContext = new NamespaceContextImpl();
        namespaceContext.startPrefixMapping("saml1", "urn:oasis:names:tc:SAML:1.0:assertion");
        namespaceContext.startPrefixMapping("saml2", "urn:oasis:names:tc:SAML:2.0:assertion");
        namespaceContext.startPrefixMapping("ds", "http://www.w3.org/2000/09/xmldsig#");
        xpath = factory.newXPath();
        xpath.setNamespaceContext(namespaceContext);
View Full Code Here

        assertEquals("1", xpath.evaluate("//saml1:Assertion/@MinorVersion", doc, XPathConstants.STRING));
    }

    private void initXpath() {
        factory = XPathFactory.newInstance();
        namespaceContext = new NamespaceContextImpl();
        namespaceContext.startPrefixMapping("saml1", "urn:oasis:names:tc:SAML:1.0:assertion");
        xpath = factory.newXPath();
        xpath.setNamespaceContext(namespaceContext);
    }
View Full Code Here

    }


    private void initXpath() {
        XPathFactory factory = XPathFactory.newInstance();
        NamespaceContextImpl namespaceContext = new NamespaceContextImpl();
        namespaceContext.startPrefixMapping("wsse", WSConstants.WSSE_NS);
        namespaceContext.startPrefixMapping("ds", WSConstants.SIG_NS);
        xpath = factory.newXPath();
        xpath.setNamespaceContext(namespaceContext);
    }
View Full Code Here

TOP

Related Classes of org.apache.ws.commons.util.NamespaceContextImpl

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.