You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2016/01/23 10:14:39 UTC

[jira] [Commented] (AXIOM-268) StAX Filter [ Data conversion, extraction, or do something between XMLStreamReader and StAXBuilder]

    [ https://issues.apache.org/jira/browse/AXIOM-268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15113663#comment-15113663 ] 

Hudson commented on AXIOM-268:
------------------------------

SUCCESS: Integrated in axiom-trunk #2438 (See [https://builds.apache.org/job/axiom-trunk/2438/])
Remove the BuilderAwareReader API introduced by AXIOM-268. (veithen: rev 1726356)
* axiom/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/BuilderAwareReader.java
* axiom/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXOMBuilder.java
* axiom/src/site/apt/roadmap.apt
* axiom/src/site/markdown/release-notes/1.3.0.md


> StAX Filter [ Data conversion, extraction, or do something between XMLStreamReader and StAXBuilder]
> ---------------------------------------------------------------------------------------------------
>
>                 Key: AXIOM-268
>                 URL: https://issues.apache.org/jira/browse/AXIOM-268
>             Project: Axiom
>          Issue Type: New Feature
>         Environment: windows
>            Reporter: Takahide Nogayama
>            Assignee: Rich Scheuerle
>         Attachments: ASF.LICENSE.NOT.GRANTED--StAX_filter_architecture.ppt, ASF.LICENSE.NOT.GRANTED--patchAXIOM_to_moduleaxiom-apisrcmainjava.txt, ASF.LICENSE.NOT.GRANTED--patchAXIS2_to_moduleskernelsrc.txt, src_demo.zip, unitTestForBuilderAwareReader.patch.txt, ver2_patch_to_axiom_modules_axiom-api_src_main_java_org_apache_axiom_om_impl_builder.txt, ver2_patch_to_axis2_modules_kernel_src_org_apache_axis2_transport.txt, ver3_patch_to_axiom_modules_axiom-api_src_main_java.txt, ver3_src_demo.zip, ver4_patch_to_axiom_modules_axiom-api_src_main_java.txt, ver4_patch_to_axis2_modules_kernel_src_org_apache_axis2_transport.txt, ver4_src_demo.zip, ver8_patch_to_axis2_modules.txt
>
>
> Filter is interface and extends XMLStreamReader. Filter wraps XMLStreamReader. And XMLStreamReader of StAXBuilder is replaced by Filter.
> In building phase, next() method must be invoked on each event. filter get result of next() from XMLStreamReader, and do some process, then return the result to StAXBuilder.
> We can set Object on filter. Filter get some information from it and set result on it to transfer the result.
> We can set StAXBuilder on filter. Filter get OMDocument from the builder. If filter want to know past information, the OMDocument has it.
> If StAXBuilder has lastNode() method, Filter can make reference list to OMNode. this is commneted in http://issues.apache.org/jira/browse/WSCOMMONS-75 .
> Example1)
> SOAP header has some child elements. and they has actor Attribute. it indicates which intermediary should process the element.
> ExtractMyActorSOAPHeaderFilter.java is implementation of Filter for this example. The filter monitors locaName at first,
> If START_ELEMENT whose actor does not equals myactor is found, The filter invokes next() until the element's END_ELEMENT.
> Thus, The soap header elements which has other's actor are not transfered to StAXBuilder. We can ommit creating fruitness OM.
> Example2)
> If StAXBuilder has lastNode() method, Filter can make reference list. The list has OMNode whose actor indicates myactor.
> After building, If we want to access Security header elements which has myactor, we can access the element directry by using the reference list.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org